summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-09-07 21:55:03 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-09-07 21:55:03 -0400
commitb03497941655476dcd2898f586745764b27f90bf (patch)
treef0b9678a46e6b033ca662b311a4ed2e37ea186fb
parentcf8410fb2cb47740865b8ba9ab5f4d42eb53cec2 (diff)
better man page moving
-rwxr-xr-xtools/move.sh8
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
)