Projects : gscm : gscm_genesis
1 | #!/bin/sh |
2 | set -e |
3 | |
4 | P=gscm |
5 | V=0.40.3 |
6 | cd /package/$P-$V |
7 | |
8 | # Versioned path duplicated in: |
9 | # package/README |
10 | # src/Makefile |
11 | |
12 | make -C src |
13 | |
14 | echo "Creating symlink $P -> $P-$V" |
15 | rm -f /package/$P'{new}' |
16 | ln -s $P-$V /package/$P'{new}' |
17 | mv -f /package/$P'{new}' /package/$P |
18 | |
19 | echo 'Making command links in /command' |
20 | mkdir -p /command |
21 | for i in `cat package/commands` ; do |
22 | rm -f /command/$i'{new}' |
23 | ln -s /package/$P/command/$i /command/$i'{new}' |
24 | mv -f /command/$i'{new}' /command/$i |
25 | done |