From 03dfc010827b5f179575fd387b15bec2c788e69d Mon Sep 17 00:00:00 2001 From: kergoth Date: Fri, 08 Feb 2002 19:07:00 +0000 Subject: Fixed symlink generation for inputmethods and other deep dir structure items. --- (limited to 'scripts/mksymlinks') 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 -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 -- cgit v0.9.0.2