aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-27 16:24:39 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-27 16:24:39 +0000
commit173826c14eb3e5b241360783ae7e91f3b8805f34 (patch)
tree4d74f09929c06145e32eae4bfadca565f2594c45
parent9b95b23140281521fd61a9bbeb080d3a2a0b354e (diff)
actually makes symlinks now
svn path=/trunk/; revision=15666
-rwxr-xr-xscripts/make-objectname-alias-symlinks.sh32
1 files changed, 20 insertions, 12 deletions
diff --git a/scripts/make-objectname-alias-symlinks.sh b/scripts/make-objectname-alias-symlinks.sh
index 9e745b7e..da5bd15c 100755
--- a/scripts/make-objectname-alias-symlinks.sh
+++ b/scripts/make-objectname-alias-symlinks.sh
@@ -1,18 +1,21 @@
#!/bin/sh
-pd_app="$1"
-pd_app_guts="$pd_app/Contents/Resources/extra"
+pd_base="$1"
+pd_base_extra="$pd_base/extra"
-for file in `find "$pd_app_guts" -name '*0x*'`; do
+for file in `find "$pd_base_extra" -name '*0x*'`; do
cd `dirname $file`
- echo `dirname $file`
- /sw/bin/echo -e `basename $file`
- basename $file \
+ dir=`dirname $file`
+ if [ x$dir != x$olddir ]; then
+ echo $dir
+ fi
+ filename=`basename $file`
+ linkname=`basename $file \
| sed 's|0x20| |g' \
- | sed 's|0x21|!|g' \
- | sed 's|0x22|"|g' \
- | sed 's|0x23|#|g' \
- | sed 's|0x24|\$|g' \
+ | sed 's|0x21|\\!|g' \
+ | sed 's|0x22|\\"|g' \
+ | sed 's|0x23|\\#|g' \
+ | sed 's|0x24|\\$|g' \
| sed 's|0x25|%|g' \
| sed 's|0x26|\&|g' \
| sed 's|0x28|(|g' \
@@ -28,10 +31,15 @@ for file in `find "$pd_app_guts" -name '*0x*'`; do
| sed 's|0x3c|<|g' \
| sed 's|0x3d|=|g' \
| sed 's|0x3e|>|g' \
+ | sed 's|0x3f|?|g' \
+ | sed 's|0x40|@|g' \
| sed 's|0x5e|^|g' \
| sed 's/0x7c/|/g' \
- | sed 's|0x7e|~|g'
- echo ""
+ | sed 's|0x7e|~|g'`
+# | sed "s|\(.*\)|'\1'|g"`
+# echo "linkname == $linkname =="
+ ln -s $filename $linkname
+ olddir=$dir
cd ..
done