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