Skip to content

Commit ccf5838

Browse files
committed
Merge pull request #86 from jousch/bugfix/umlauts
Remove auto umlauts and update documentation
2 parents fcc4e76 + 31995bd commit ccf5838

File tree

9 files changed

+37
-21
lines changed

9 files changed

+37
-21
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CliTools Changelog
55
------------------
66
- Updated compile documentation
77
- Improved compile scripts
8-
- Added umlauts support for rsync under OSX
8+
- Added rsync.opts documentation
99
- Added rsync.opts section in `clisync.yml` for additional rsync options
1010
- No terminal title if stdout redirect is detected
1111
- Added `docker:cleanup` for cleanup of orphaned images and volumes

Documentation/COMMANDS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ All log commands are using a grep-filter (specified as optional argument)
7777
| | __ct mysql:restore typo3 dump.sql.xz__ -> xz'ed (lzma'ed) sql dump |
7878
| | __ct mysql:restore typo3 dump.sql --filter=typo3__ -> No TYPO3 cache tables in dump |
7979
| ct mysql:restore | Create (and drops if already exists) a database and restore from a dump |
80-
| | Dump file can be plaintext, gziped, bzip2 or lzma compressed |
80+
| | Dump file can be plaintext, gzip, bzip2 or lzma compressed |
8181
| | and will automatically detected |
8282
| | __ct mysql:restore typo3 dump.sql.bz2__ |
8383
| ct mysql:convert | Convert character set and collation of a database |

Documentation/Examples/clisync.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ GLOBAL:
5454
workdir: ""
5555

5656
# Additional options ("-rlptD --delete-after --progress --human-readable" is already set)
57-
# (" --iconv=UTF8-MAC,UTF8" is automatically set if OS is OSX to enable Umlauts support)
5857
opts: ""
5958

6059
# exclude list/patterns for files and directories

Documentation/INSTALL.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
q[<-- Back to main section](../README.md)
1+
[<-- Back to main section](../README.md)
22

33
# Installation
44

@@ -17,10 +17,13 @@ q[<-- Back to main section](../README.md)
1717
- sudo
1818
- moreutils (ifdata)
1919
- coreutils (grep, sort, uniq, awk, cat, df, ip, cut, lsb_release, wall)
20-
- rsync (to prevent bugs with umlauts you have to use rsync with version >= 3.0)
20+
- rsync (to prevent bugs with umlauts while you have to use rsync with version >= 3.0 (GNU version))
2121
- gnu-sed
2222
- docker and docker-compose (if you want to use docker)
2323
- mysql (if you want to use mysql)
24+
25+
When you're want to using clitools under OSX, you could use homebrew, an excellent package manager
26+
to easily install the above mentioned requirements.
2427

2528

2629
## Install clitools

Documentation/USAGE-DOCKER.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Docker creation
66

7-
You can easly create new docker instances (from my or a custom docker boilerplate) also with code intalization
7+
You can easily create new docker instances (from my or a custom docker boilerplate) also with code initialization
88
and Makefile running.
99

1010
```bash
@@ -32,8 +32,8 @@ ct docker:create foobar --code=git... --make=build --up
3232

3333
## Docker startup
3434

35-
The `docker:up` command will search the `docker-compose.yml` in the current parent directroy tree and
36-
execute `docker-compose` from this directroy - you don't have to change the current directroy.
35+
The `docker:up` command will search the `docker-compose.yml` in the current parent directory tree and
36+
execute `docker-compose` from this directory - you don't have to change the current directory.
3737

3838
Also the previous docker instance will be shut down to avoid port conflicts.
3939

@@ -45,7 +45,7 @@ ct docker:up
4545
## Custom docker commands
4646

4747
As `docker:up` the `docker:compose` will search the `docker-compose.yml` and will execute your command
48-
from this directroy.
48+
from this directory.
4949

5050
```bash
5151
# Stop docker instance
@@ -86,7 +86,7 @@ ct docker:exec ps
8686

8787
You can define a common CLI script entrypoint with the environment variable CLI_SCRIPT in your docker containers.
8888
The environment variable will be read by `ct docker:cli` and will be executed - you don't have to jump
89-
into your containers, you can start your CLI_SCRIPTs from the outide.
89+
into your containers, you can start your CLI_SCRIPTs from the outside.
9090

9191
```bash
9292
# Execute predefined cli command with argument "help" in "main" container
@@ -110,7 +110,7 @@ ct docker:sniff mysql
110110
```
111111

112112
## Docker cleanup
113-
Docker currently doesn't cleanup orphaned images or volumes so you have to cleanup your system regulary to get free disk space
113+
Docker currently doesn't cleanup orphaned images or volumes so you have to cleanup your system regularly to get free disk space
114114

115115
```bash
116116
ct docker:cleanup

Documentation/USAGE-MYSQL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ct mysql:list
1717

1818
# Debugging
1919

20-
The `ct mysql:querylog` and `ct mysql:slowlog` provides a convinent way to access the general query log
20+
The `ct mysql:querylog` and `ct mysql:slowlog` provides a convenient way to access the general query log
2121
and the slow log.
2222

2323
In the query log you can see all queries send and executed by the MySQL database.
@@ -67,7 +67,7 @@ Also the compression is automatically detected by file mime type.
6767
ct mysql:restore typo3 dump.sql
6868
```
6969

70-
# Datbase charset conversion
70+
# Database charset conversion
7171

7272
```bash
7373
# Convert database to UTF8

Documentation/USAGE-PHP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Composer (auto searching in path tree)
66

7-
Because you always need to jump into `composer.json` directroy `ct php:composer` will do this for you
7+
Because you always need to jump into `composer.json` directory `ct php:composer` will do this for you
88

99
```bash
1010
# Run composer install task

Documentation/USAGE-SYNC.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ct share:restore --rsync
6969

7070
With `sync:deploy` you can push your files to your production servers.
7171
Please keep in mind that this feature is just an wrapped rsync and should only be
72-
the simplest solution for deployment. For more advanced or centralized deployemnt try
72+
the simplest solution for deployment. For more advanced or centralized deployment try
7373
solutions build on Jenkis, Ansible and others.
7474

7575
```bash
@@ -80,9 +80,28 @@ ct deploy
8080
ct deploy staging
8181
```
8282

83+
## Rsync additional options (rsync.opts)
84+
85+
The rsync options `-rlptD --delete-after --progress --human-readable` are automatically added when using the sync
86+
features of clitools. In addition, it is possible to set more options by adding them via `rsync.opts` (available since
87+
version 2.3 of clitools). In the following example the option `--iconv=UTF8-MAC,UTF8` is added to enable rsync filename
88+
charset conversion between local and remote file system. You need this especially when using rsync between hosts where a
89+
charset conversion on filenames is necessary (see `man rsync` for further details; e.g.: you probably need this when
90+
you sync between mac and linux utf-8 filesystem).
91+
92+
```
93+
...
94+
# Enable filename charset conversion where local is UTF8-MAC (Mac OSX) and remote is UTF8 (e.g. Linux)
95+
rsync.opts: "--iconv=UTF8-MAC,UTF8"
96+
...
97+
```
98+
99+
If you run into problems with `--iconv` make shure you have a compatible version of rsync >= 3.0 (as already mentioned
100+
in the [install section](INSTALL.md) of this documentation).
101+
83102
## Advanced ssh options
84103

85-
If you need some advaned ssh options (eg. other ports) use your `~/.ssh/config` configuration file:
104+
If you need some advanced ssh options (eg. other ports) use your `~/.ssh/config` configuration file:
86105

87106
Host project-server
88107
Hostname project-server.example.com

src/app/CliTools/Console/Command/Sync/AbstractCommand.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -716,11 +716,6 @@ protected function createRsyncCommand(
716716
$command->addArgumentRaw($this->contextConfig->get('rsync.opts'));
717717
}
718718

719-
// Umlauts support for rsync
720-
if (PhpUtility::getOsName() === 'Darwin') {
721-
$command->addArgumentRaw('--iconv=UTF8-MAC,UTF8');
722-
}
723-
724719
// Add file list (external file with --include-from option)
725720
if (!empty($filelist)) {
726721
$this->rsyncAddFileList($command, $filelist);

0 commit comments

Comments
 (0)