Projects : gbw-node : gbw-node_genesis

package/install

Dir - Raw

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