Projects : gscm : gscm_genesis

package/install

Dir - Raw

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