summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-02-07 16:19:20 +0000
committerV3n3RiX <venerix@rogentos.ro>2016-02-07 16:19:20 +0000
commit0b12e794450ae1fcffc11159325a993e2ccb8051 (patch)
treeb2a62b04da11f462a8548da8671cff33d917b860
parenta299245ad4b5e0df7047ec0cf282f465a2358497 (diff)
remove last hardcoded variables and enable vasile to autoadjust for Kogaion or Argent
-rwxr-xr-xvasile19
1 files changed, 16 insertions, 3 deletions
diff --git a/vasile b/vasile
index 7f76b70..2abb326 100755
--- a/vasile
+++ b/vasile
@@ -6,9 +6,22 @@
#
# generic variables
-export local releasename="kogaion"
-export local releasetarget="desktop"
-export local releaseversion="3"
+
+read -e "basename"
+if [[ "$basename" = "Kogaion" ]] ; then
+ echo -e "Adjusting variables for Kogaion Desktop 3"
+ export releasename="kogaion"
+ export releasetarget="desktop"
+ export releaseversion="3"
+elif [[ "$basename" = "Argent" ]] ; then
+ echo -e "Adjusting variables for Argent Server 2"
+ export releasename="argent"
+ export releasetarget="server"
+ export releaseversion="2"
+else
+ echo -e "Ooops, wrong basename "$basename"...it must be Kogaion or Argent...bye bye"
+ exit 1
+fi
# arch independent build variables