Move VERSION and VOLNAME initialization to a point after ARCH has been defined
authorW. Trevor King <wking@drexel.edu>
Tue, 23 Mar 2010 16:50:54 +0000 (12:50 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 23 Mar 2010 16:50:54 +0000 (12:50 -0400)
buildscripts/recreate-iso.sh

index 9bffc438314844d8ed4dd59d24f2b575d3b37e38..5fdb80df860fd63d33a8a545bb4e82a4ba276c4d 100755 (executable)
@@ -12,8 +12,6 @@ DESTDIR=/home/sysresccdiso
 REPOSRC=/worksrc/sysresccd-src
 REPOBIN=/worksrc/sysresccd-bin
 MYDATE=$(date +%Y%m%d-%Hh%M)
-VERSION=$(cat ${REPOSRC}/overlay-squashfs-${ARCH}/root/version)
-VOLNAME="sysrcd-${VERSION}" 
 
 usage()
 {
@@ -60,6 +58,8 @@ else
        usage  # handles --help
        exit 1
 fi
+VERSION=$(cat ${REPOSRC}/overlay-squashfs-${ARCH}/root/version)
+VOLNAME="sysrcd-${VERSION}" 
 
 ## ERROR HANDLING
 #####################################