aboutsummaryrefslogtreecommitdiff
path: root/externals/build/src
diff options
context:
space:
mode:
authorGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-12 18:18:29 +0000
committerGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-12 18:18:29 +0000
commitbc26e20657a3bb795147bd0e11768b97228d162f (patch)
treed8845298672e78e3b31b0e89902e473471a2dde0 /externals/build/src
parent84ff8ae7e6a27ce70e87301d0e5714cd2612660a (diff)
helper script to search for doubled externals
svn path=/trunk/; revision=7310
Diffstat (limited to 'externals/build/src')
-rwxr-xr-xexternals/build/src/search-doubled-externals.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/externals/build/src/search-doubled-externals.sh b/externals/build/src/search-doubled-externals.sh
new file mode 100755
index 00000000..f0b6f361
--- /dev/null
+++ b/externals/build/src/search-doubled-externals.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# run this script to see doubled externals in the
+# libdir and flatspace format
+#
+# these files can be removed from the flatspace
+#
+# (Georg Holzmann)
+
+# all files
+FILES=`ls *.c | sed s/"\.c"/"\.p\*"/g`
+
+# search dir
+# (should point to the directory where you build pd-extended)
+SEARCH_PATH=../lib/pd/extra
+
+for FILE in $FILES
+do
+
+ # this will also display the path (for debugging):
+ #find $SEARCH_PATH -name $FILE
+
+ # this will display the files, which can be deleted:
+ find $SEARCH_PATH -name $FILE | sed -e s/"\.\."/""/g -e s/"\/.*\/"/""/g -e s/"\.pd_linux"/"\.c"/g
+
+done
+