Projects : gbw-signer : gbw-signer_usrbin

gbw-signer/package/install

Dir - Raw

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