123456789101112131415161718192021222324252627 |
- if [ $# -lt 1 ]; then
- echo "usage: theme <theme>"
- exit -1
- fi
- themes=`find NatureSDK -type d -name Themes`
- if [ -z "$themes/$1" ]; then
- echo "Theme not found"
- exit -1
- fi
- op=`pwd`
- cd "$themes"
- for file in `ls "$1"`; do
- if [[ -e "$file" ]]; then
- if [[ "`readlink "$file"`" = "$1/$file" ]]; then
- continue
- else
- rm "$file"
- fi
- fi
- ln -s "$1/$file" "$file"
- done
- cd "$op"
|