diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-07 21:55:03 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-07 21:55:03 -0400 |
commit | b03497941655476dcd2898f586745764b27f90bf (patch) | |
tree | f0b9678a46e6b033ca662b311a4ed2e37ea186fb | |
parent | cf8410fb2cb47740865b8ba9ab5f4d42eb53cec2 (diff) |
better man page moving
-rwxr-xr-x | tools/move.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/move.sh b/tools/move.sh index 91da9c7c2b..57dd6ddb3e 100755 --- a/tools/move.sh +++ b/tools/move.sh @@ -341,9 +341,11 @@ move_files() ( ( mv -t src/libsystemd man/sd* cd man - for file in *.xml; do - if [[ -d ../src/"${file%.xml}" ]]; then - mv "$file" -t ../src/"${file%.xml}" + for file in *; do + if [[ -d ../src/"${file%%.*}" ]]; then + mv "$file" -t ../src/"${file%%.*}" + elif [[ -d ../src/"${file%%@*}" ]]; then + mv "$file" -t ../src/"${file%%@*}" fi done ) |