diff --git a/utils/buildCaseStatement.sh b/utils/buildCaseStatement.sh index 9d18ef3..cc4594a 100755 --- a/utils/buildCaseStatement.sh +++ b/utils/buildCaseStatement.sh @@ -12,7 +12,7 @@ downloadURL=${1?:"need to provide a download URL"} # create temporary working directory -tmpDir=$(dirname $0 ) +tmpDir=$(mktemp -d ) # change directory to temporary working directory echo "Changing directory to $tmpDir" @@ -122,6 +122,9 @@ elif [ "$archiveExt" = "zip" ] || [ "$archiveExt" = "tbz" ]; then fi +echo +echo "**********" +echo echo "Labels should be named in small caps, numbers 0-9, “-”, and “_”. No other characters allowed." echo echo "appNewVersion is often difficult to find. Can sometimes be found in the filename, but also on a web page. See archivePath above if link contains information about this." @@ -140,6 +143,9 @@ echo " appName=\"$appName\"" fi echo " ;;" echo +echo "Above should be saved in a file with exact same name as label, and given extension “.sh”." +echo "Put this file in folder “fragments/labels”." +echo if [ -e "${tmpDir}" ]; then #echo "deleting tmp dir"