aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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