summaryrefslogtreecommitdiff
path: root/scripts/mksymlinks
Side-by-side diff
Diffstat (limited to 'scripts/mksymlinks') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/mksymlinks14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/mksymlinks b/scripts/mksymlinks
index a32298b..a9050b4 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 ]
-then ln -sf $OPIEDIR/$file/pics $OPIEDIR/pics/$file
-fi
+do
+ if [ -d $file/pics ]
+ 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
+ fi
done
-
-
-
-
exit 0