genheader: export SPECDIR

Signed-off-by: John McMaster <johndmcmaster@gmail.com>
This commit is contained in:
John McMaster 2018-12-05 19:51:45 -08:00
parent 2bea69402e
commit 20db34836f
1 changed files with 6 additions and 6 deletions

View File

@ -10,14 +10,14 @@ set -ex
# for some reason on sourced script set -e doesn't work
# Scripts may have additional arguments, but first is reserved for build directory
test $# -ge 1 || exit 1
test ! -e "$SPECN"
SPECN=$1
test ! -e "$SPECDIR"
export SPECDIR=$1
rm -rf "$SPECN"
mkdir -p "$SPECN"
cd "$SPECN"
rm -rf "$SPECDIR"
mkdir -p "$SPECDIR"
cd "$SPECDIR"
export SEED="$(echo $SPECN | md5sum | cut -c1-8)"
export SEED="$(echo $SPECDIR | md5sum | cut -c1-8)"
export SEEDN="$(basename $(pwd) |sed s/specimen_0*//)"
function seed_vh () {