version specific installation via scripts

pull/737/head
DJ2LS 2024-05-31 19:51:52 +02:00
parent 8f6bce9682
commit 2222058276
1 changed files with 21 additions and 7 deletions

View File

@ -19,6 +19,9 @@
#
#
# Changelog:
# 1.7 31 May 2024 ( DJ2LS )
# Add support for version specific setup
#
# 1.6: 22 May 2024
# Reflect directory name changes in prep for merging develop to main
#
@ -54,7 +57,10 @@ case $1 in
"develop")
args="develop"
;;
*)
v*)
args=$1
;;
*)
echo "Argument" $1 "not valid. Exiting."
exit 1
;;
@ -245,7 +251,20 @@ pip install --upgrade pip wheel
echo "*************************************************************************"
echo "Downloading the FreeDATA software from the git repo"
echo "*************************************************************************"
git clone https://github.com/DJ2LS/FreeDATA.git
if [ "$args" == "develop" ];
then
echo "Downloading development version"
git clone https://github.com/DJ2LS/FreeDATA.git -b develop
git checkout develop
elif [[ $args == v* ]];
then
echo "Downloading specific version: $args"
git clone https://github.com/DJ2LS/FreeDATA.git -b $args
else
echo "Downloading regular version"
git clone https://github.com/DJ2LS/FreeDATA.git
fi
echo "*************************************************************************"
echo "Changing Directory into FreeDATA"
@ -258,11 +277,6 @@ else
exit 1
fi
if [ "$args" == "develop" ];
then
git checkout develop
fi
echo "*************************************************************************"
echo "Installing required Python programs into the virtual environment"
echo "*************************************************************************"