diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-02-07 16:19:20 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-02-07 16:19:20 +0000 |
commit | 0b12e794450ae1fcffc11159325a993e2ccb8051 (patch) | |
tree | b2a62b04da11f462a8548da8671cff33d917b860 | |
parent | a299245ad4b5e0df7047ec0cf282f465a2358497 (diff) |
remove last hardcoded variables and enable vasile to autoadjust for Kogaion or Argent
-rwxr-xr-x | vasile | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -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 |