summaryrefslogtreecommitdiff
path: root/scripts/mksymlinks
authorkergoth <kergoth>2002-02-08 22:06:07 (UTC)
committer kergoth <kergoth>2002-02-08 22:06:07 (UTC)
commitcde778848f13e384e55e66117754578d12a5b1e2 (patch) (side-by-side diff)
tree22af144ad44528750f31d8b776dc5b81491ef7d1 /scripts/mksymlinks
parent03dfc010827b5f179575fd387b15bec2c788e69d (diff)
downloadopie-cde778848f13e384e55e66117754578d12a5b1e2.zip
opie-cde778848f13e384e55e66117754578d12a5b1e2.tar.gz
opie-cde778848f13e384e55e66117754578d12a5b1e2.tar.bz2
update.
Diffstat (limited to 'scripts/mksymlinks') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/mksymlinks8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/mksymlinks b/scripts/mksymlinks
index a9050b4..ebe346e 100755
--- a/scripts/mksymlinks
+++ b/scripts/mksymlinks
@@ -1,13 +1,13 @@
#!/bin/sh
cd $OPIEDIR
for file in `make showcomponents`
do
- if [ -d $file/pics ]
+ dir=`echo $file|sed -e 's#\(.*\)/##g'`
+ path=`echo $file|sed -e "s#\(.*\)$dir#\1#g"`
+ if [ -d $file/pics -a ! -e $OPIEDIR/pics/$dir ]
then
- dir=`echo $file|sed -e 's#\(.*\)/##g'`
- path=`echo $file|sed -e "s#\(.*\)$dir#\1#g"`
- ln -sf $OPIEDIR/$path$dir/pics $OPIEDIR/pics/$dir
+ ln -sf ../$path$dir/pics $OPIEDIR/pics/$dir
fi
done
exit 0