summaryrefslogtreecommitdiffstats
path: root/conversions/qt3-tqt3/rename_other_files
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-04-05 00:23:54 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-04-05 00:23:54 +0900
commita7c35253fa86ccaba568822a967af03ea263bbc0 (patch)
tree95de61c9fac1dc45624f731377ebf44cdd1b26da /conversions/qt3-tqt3/rename_other_files
parent428c2d88b4ac80df001d25973a1511d6a3d424c6 (diff)
downloadscripts-a7c35253fa86ccaba568822a967af03ea263bbc0.tar.gz
scripts-a7c35253fa86ccaba568822a967af03ea263bbc0.zip
Moved conversion scripts from experimental repository.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'conversions/qt3-tqt3/rename_other_files')
-rwxr-xr-xconversions/qt3-tqt3/rename_other_files36
1 files changed, 36 insertions, 0 deletions
diff --git a/conversions/qt3-tqt3/rename_other_files b/conversions/qt3-tqt3/rename_other_files
new file mode 100755
index 0000000..0e89403
--- /dev/null
+++ b/conversions/qt3-tqt3/rename_other_files
@@ -0,0 +1,36 @@
+#!/bin/bash
+#
+# (c) 2013 Timothy Pearson
+# All Rights Reserved
+#
+# Use like this:
+# find ./ -type d -exec /rename_other_files {} \;
+
+cd $1
+
+BASEDIR=${PWD##*/}
+
+if [[ "$BASEDIR" == ".git" ]]; then
+ echo "Ignoring .git directory"
+ exit 0
+fi
+
+ls -d * | sed 's/\(.*\)qm2ts\(.*\)$/git mv "&" "\1tqm2ts\2"/' | grep mv | sh
+ls -d * | sed 's/\(.*\)mergetr\(.*\)$/git mv "&" "\1tqtmergetr\2"/' | grep mv | sh
+ls -d * | sed 's/\(.*\)msg2qm\(.*\)$/git mv "&" "\1msg2tqm\2"/' | grep mv | sh
+ls -d * | sed 's/\(.*\)makeqpf\(.*\)$/git mv "&" "\1maketqpf\2"/' | grep mv | sh
+ls -d * | sed 's/\(.*\)qvfb\(.*\)$/git mv "&" "\1tqvfb\2"/' | grep mv | sh
+ls -d * | sed 's/\(.*\)createcw\(.*\)$/git mv "&" "\1tqtcreatecw\2"/' | grep mv | sh
+ls -d * | sed 's/\(.*\)conv2ui\(.*\)$/git mv "&" "\1tqtconv2ui\2"/' | grep mv | sh
+
+ls -d * | sed 's/\(.*\)findtr\(.*\)$/git mv "&" "\1tqtfindtr\2"/' | grep mv | sh
+ls -d * | sed 's/\(.*\)qtrename140\(.*\)$/git mv "&" "\1tqtrename140\2"/' | grep mv | sh
+ls -d * | sed 's/\(.*\)qt20fix\(.*\)$/git mv "&" "\1tqt20fix\2"/' | grep mv | sh
+
+# Clean up unintended renames
+ls -d * | sed 's/\(.*\)ttqvfb\(.*\)$/git mv "&" "\1tqvfb\2"/' | grep mv | sh
+
+# Rename little-used libraries
+ls -d * | sed 's/\(.*\)libeditor\(.*\)$/git mv "&" "\1libtqteditor\2"/' | grep mv | sh
+ls -d * | sed 's/\(.*\)libdesignercore\(.*\)$/git mv "&" "\1libtqtdesignercore\2"/' | grep mv | sh
+ls -d * | sed 's/\(.*\)libqassistantclient\(.*\)$/git mv "&" "\1libtqassistantclient\2"/' | grep mv | sh