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