diff --git a/build.sh b/build.sh index 6a544d8..0ab1d77 100755 --- a/build.sh +++ b/build.sh @@ -1,14 +1,14 @@ #!/bin/bash function usage { - echo "Usage: ${0} " + echo "Usage: ${0} " exit } AppPath=${1} -CvttpyVersion=${2} +Project=${2} -if [ "${AppPath}" == "" ] +if [ "${Project}" == "" ] then usage fi @@ -24,7 +24,9 @@ ImageName=${AppName} ImageDir=${HOME}/docker_images mkdir -p ${ImageDir} -Version=$(cat ${RootDir}/cvttpy/release_version.txt | awk -F, '{print $1}') + +Version=$(cat ${RootDir}/${Project}/release_version.txt | awk -F, '{print $1}') +# Version=${ProjectVersion} cd ${RootDir} diff --git a/release_version.txt b/release_version.txt new file mode 100644 index 0000000..92392cb --- /dev/null +++ b/release_version.txt @@ -0,0 +1 @@ +0.1.3,testing building docker images \ No newline at end of file