Projects : gbw-signer : gbw-signer_genesis

package/install

Dir - Raw

1#!/bin/sh
2set -e
3
4V=1
5cd /package/gbw-signer-$V
6
7# Versioned path duplicated in:
8# package/README
9# command/gbw-signer
10# library/gbw-signer.scm
11
12echo 'Generating public elliptic curve precomputation cache...'
13sh command/gbw-signer make-cache
14
15echo "Creating symlink gbw-signer -> gbw-signer-$V..."
16rm -f gbw-signer
17ln -s gbw-signer-$V gbw-signer
18mv -f gbw-signer /package
19
20echo 'Making executable links in /command...'
21mkdir -p /command
22cd command
23for 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
28done