diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-10-26 00:40:00 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-10-26 00:40:00 +0000 |
commit | 298df4b93445b1c680e1511f6aed9bf862a7afb4 (patch) | |
tree | 699801d4f7bbc1c4b9e735e8d2bc2c2bb49a30c1 | |
parent | 2d501ba19c493122c29671dadce342629bc984f6 (diff) |
sketch of script to make symlink aliases
svn path=/trunk/; revision=15653
-rwxr-xr-x | scripts/make-objectname-alias-symlinks.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/scripts/make-objectname-alias-symlinks.sh b/scripts/make-objectname-alias-symlinks.sh new file mode 100755 index 00000000..9e745b7e --- /dev/null +++ b/scripts/make-objectname-alias-symlinks.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +pd_app="$1" +pd_app_guts="$pd_app/Contents/Resources/extra" + +for file in `find "$pd_app_guts" -name '*0x*'`; do + cd `dirname $file` + echo `dirname $file` + /sw/bin/echo -e `basename $file` + basename $file \ + | sed 's|0x20| |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' \ + | sed 's|0x29|)|g' \ + | sed 's|0x2a|*|g' \ + | sed 's|0x2b|+|g' \ + | sed 's|0x2c|,|g' \ + | sed 's|0x2d|-|g' \ + | sed 's|0x2e|.|g' \ + | sed 's|0x2f|/|g' \ + | sed 's|0x3a|:|g' \ + | sed 's|0x3b|;|g' \ + | sed 's|0x3c|<|g' \ + | sed 's|0x3d|=|g' \ + | sed 's|0x3e|>|g' \ + | sed 's|0x5e|^|g' \ + | sed 's/0x7c/|/g' \ + | sed 's|0x7e|~|g' + echo "" + cd .. +done + + + |