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