Projects : gbw-signer : gbw-signer_usrbin
1 | #!/bin/sh |
2 | set -e |
3 | |
4 | P=gbw-signer |
5 | V=2 |
6 | cd /package/$P-$V |
7 | |
8 | # Versioned path duplicated in: |
9 | # README |
10 | # command/gbw-signer |
11 | # library/gbw-signer.scm |
12 | |
13 | echo 'Generating public elliptic curve precomputation cache...' |
14 | sh command/gbw-signer make-cache |
15 | |
16 | echo "Creating symlink $P -> $P-$V..." |
17 | rm -f $P |
18 | ln -s $P-$V $P |
19 | mv -f $P /package/ |
20 | |
21 | echo 'Making command links in /usr/bin...' |
22 | mkdir -p /usr/bin |
23 | for i in `cat package/commands` ; do |
24 | chmod 755 command/$i |
25 | rm -f /usr/bin/$i'{new}' |
26 | ln -s /package/$P/command/$i /usr/bin/$i'{new}' |
27 | mv -f /usr/bin/$i'{new}' /usr/bin/$i |
28 | done |