]> git.pld-linux.org Git - projects/distfiles.git/blob - make-src-symlinks.sh
- quoting
[projects/distfiles.git] / make-src-symlinks.sh
1 #!/bin/sh
2
3 SRCDIR="$HOME/ftp/src/"
4
5 cd $SRCDIR || exit 1
6
7 if [ "`echo *.link`" != "*.link" ] ; then
8   for f in *.link ; do
9     l=$(cat "$f")
10     rm -f "$f"
11     target=$(basename "$f" .link)
12     if [ "$l" = REMOVE ] ; then
13       rm -f "$target"
14     else
15       ln -s "..$l" "$target"
16     fi
17   done
18 fi
This page took 0.077575 seconds and 4 git commands to generate.