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