summaryrefslogtreecommitdiff
path: root/scripts/mksymlinks
authorkergoth <kergoth>2002-02-08 19:07:00 (UTC)
committer kergoth <kergoth>2002-02-08 19:07:00 (UTC)
commit03dfc010827b5f179575fd387b15bec2c788e69d (patch) (side-by-side diff)
tree9187aeb861dd9c62ce2e6a648c451eff97c426b8 /scripts/mksymlinks
parent4b9ec6a19874437bc896f0b427a85650ae823359 (diff)
downloadopie-03dfc010827b5f179575fd387b15bec2c788e69d.zip
opie-03dfc010827b5f179575fd387b15bec2c788e69d.tar.gz
opie-03dfc010827b5f179575fd387b15bec2c788e69d.tar.bz2
Fixed symlink generation for inputmethods and other deep dir structure items.
Diffstat (limited to 'scripts/mksymlinks') (more/less context) (show whitespace changes)
-rwxr-xr-xscripts/mksymlinks12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/mksymlinks b/scripts/mksymlinks
index a32298b..a9050b4 100755
--- a/scripts/mksymlinks
+++ b/scripts/mksymlinks
@@ -2,12 +2,12 @@
cd $OPIEDIR
for file in `make showcomponents`
-do if [ -d $file/pics ]
-then ln -sf $OPIEDIR/$file/pics $OPIEDIR/pics/$file
+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