Commit 4eb371ed authored by thomas.forbriger's avatar thomas.forbriger

[FIX] (workbench): make tolower.sh applicable

- use git rm instead of just rm
- convert all directory names first, since renaming directories effectively
  moves files
parent 9b6eb54b
......@@ -15,14 +15,33 @@
#
# ============================================================================
#
for d in $(find . -name '*[A-Z]*')
# directories first
n=$(find . -name '*[A-Z]*' -type d | wc -w)
while test $n -gt 0
do
for d in $(find . -name '*[A-Z]*' -type d)
do
echo rename $d to ${d,,?}
done
echo press enter to convert file names
read a
for d in $(find . -type d -name '*[A-Z]*')
do
git mv $d ${d,,?}
done
n=$(find . -name '*[A-Z]*' -type d | wc -w)
done
#
# files then
for d in $(find . -name '*[A-Z]*' -type f)
do
echo rename $d to ${d,,?}
done
echo press enter to convert file names
read a
for d in $(find . -name '*[A-Z]*')
for d in $(find . -type f -name '*[A-Z]*')
do
mv $d ${d,,?}
git mv $d ${d,,?}
done
#
# ----- END OF tolower.sh -----
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment