From 20ff9b7752f1de99a18e28660d901584cef20455 Mon Sep 17 00:00:00 2001 From: John McMaster Date: Tue, 23 Oct 2018 12:24:16 -0700 Subject: [PATCH] genheader: clean up variable name Signed-off-by: John McMaster --- utils/genheader.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/utils/genheader.sh b/utils/genheader.sh index 0cf4a25a..da35182e 100644 --- a/utils/genheader.sh +++ b/utils/genheader.sh @@ -9,11 +9,13 @@ set -ex # for some reason on sourced script set -e doesn't work test $# = 1 || exit 1 -test ! -e "$1" -mkdir "$1" -cd "$1" +test ! -e "$SPECN" +SPECN=$1 -export SEED="$(echo $1 | md5sum | cut -c1-8)" +mkdir "$SPECN" +cd "$SPECN" + +export SEED="$(echo $SPECN | md5sum | cut -c1-8)" function seed_vh () { echo '`define SEED 32'"'h${SEED}" > setseed.vh