#!/bin/sh set -e V=1 cd /package/gbw-signer-$V # Versioned path duplicated in: # package/README # command/gbw-signer # library/gbw-signer.scm echo 'Generating public elliptic curve precomputation cache...' sh command/gbw-signer make-cache echo "Creating symlink gbw-signer -> gbw-signer-$V..." rm -f gbw-signer ln -s gbw-signer-$V gbw-signer mv -f gbw-signer /package echo 'Making executable links in /command...' mkdir -p /command cd command for i in * ; do chmod 755 $i rm -f /command/$i'{new}' ln -s ../package/gbw-signer/command/$i /command/$i'{new}' mv -f /command/$i'{new}' /command/$i done