summaryrefslogtreecommitdiffstats
path: root/win/tools/update_tdelibs_pro_files
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-16 16:06:07 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-16 16:06:07 -0600
commitb63b93fb56b967427b1e3ac1b8adb6d16c7d245f (patch)
tree4a3e013842336b7511f911586b23e45fadfdc9dd /win/tools/update_tdelibs_pro_files
parent0722ee612ec7e4364c7c604bdec429c35c3e0048 (diff)
downloadtdelibs-b63b93fb56b967427b1e3ac1b8adb6d16c7d245f.tar.gz
tdelibs-b63b93fb56b967427b1e3ac1b8adb6d16c7d245f.zip
Finish rename from prior commit
Diffstat (limited to 'win/tools/update_tdelibs_pro_files')
-rwxr-xr-xwin/tools/update_tdelibs_pro_files30
1 files changed, 30 insertions, 0 deletions
diff --git a/win/tools/update_tdelibs_pro_files b/win/tools/update_tdelibs_pro_files
new file mode 100755
index 000000000..92125fec1
--- /dev/null
+++ b/win/tools/update_tdelibs_pro_files
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+# Copies all used .pro (and a few shell) files from tdelibs/win/pro_files/ to tdelibs/
+# so they can be used to build tdelibs.
+# Note: only newer files are copied over older.
+# (c) 2005, Jaroslaw Staniek, js@iidea.pl
+
+.check_kde_env || exit 1
+
+src=win/pro_files
+dest=../..
+
+cd "$KDELIBS/$src"
+
+for pro in `find . -name \*.pro -o -name \*.sh` ; do
+ dir=`dirname "$pro"`
+ if [ ! -d "$KDELIBS/$dir" ] ; then
+ echo "no \$KDELIBS/$dir directory: creating it"
+ mkdir -p "$KDELIBS/$dir"
+ fi
+
+ if [ ! "$pro" -nt "$dest/$pro" ] ; then
+ true
+# echo "*SKIPPED* $pro is not newer than destination in $KDELIBS"
+ else
+ echo "UPDATING \$KDELIBS/$pro"
+ cp $pro $dest/$pro
+ fi
+done
+