From cde778848f13e384e55e66117754578d12a5b1e2 Mon Sep 17 00:00:00 2001 From: kergoth Date: Fri, 08 Feb 2002 22:06:07 +0000 Subject: update. --- (limited to 'scripts/mksymlinks') diff --git a/scripts/mksymlinks b/scripts/mksymlinks index a9050b4..ebe346e 100755 --- a/scripts/mksymlinks +++ b/scripts/mksymlinks @@ -3,11 +3,11 @@ 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 -- cgit v0.9.0.2