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