summaryrefslogtreecommitdiffstats
path: root/doc/makecommon.sh
blob: f38eabdb80c0f921c2b7dc08b334844268161511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

if [ "x$1" = "x" ]; then
   echo "No source"
   exit 0
fi
if [ "x$2" = "x" ]; then
   echo "No target"
   exit 0
fi

if [ ! -h $1 ]; then
 echo "linking $2 -> $1"
 ln -fs "$2" "$1"
fi