Fixed -h option
This commit is contained in:
parent
619c9c8f2e
commit
68973b169b
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
USERNAME=luca.frosini
|
USERNAME=
|
||||||
AUTHORS_FILE=authors.txt
|
AUTHORS_FILE=authors.txt
|
||||||
SVN_URL=""
|
SVN_URL=""
|
||||||
SVN_PROJECT_LOCAL_DIR=""
|
SVN_PROJECT_LOCAL_DIR=""
|
||||||
|
@ -9,8 +9,8 @@ AUTHORS_OK=false
|
||||||
|
|
||||||
POM_FILE=pom.xml
|
POM_FILE=pom.xml
|
||||||
OLD_MAVEN_PARENT_VERSION="1.0.0"
|
OLD_MAVEN_PARENT_VERSION="1.0.0"
|
||||||
NEW_MAVEN_PARENT_VERSION="1.1.0-SNAPSHOT"
|
NEW_MAVEN_PARENT_VERSION="1.1.0"
|
||||||
GITEA_TOKEN=""
|
GITEA_TOKEN=
|
||||||
|
|
||||||
GIT_OK=false
|
GIT_OK=false
|
||||||
|
|
||||||
|
@ -216,10 +216,10 @@ function showhelp {
|
||||||
echo " -u <USERNAME> for git svn clone command e.g. luca.frosini"
|
echo " -u <USERNAME> for git svn clone command e.g. luca.frosini"
|
||||||
echo " -g <GIT_REPOSITORY_DIRECTORY_NAME>"
|
echo " -g <GIT_REPOSITORY_DIRECTORY_NAME>"
|
||||||
echo " -a does not request to check the author file"
|
echo " -a does not request to check the author file"
|
||||||
echo -e " -h = shows this help.\n"
|
echo -e " -h shows this help.\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
while getopts ":s:p:u:h:g:a" opt; do
|
while getopts ":i:s:p:u:g:a:h" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
i) INIT=true;;
|
i) INIT=true;;
|
||||||
s) SVN_URL=$OPTARG;;
|
s) SVN_URL=$OPTARG;;
|
||||||
|
@ -227,11 +227,10 @@ while getopts ":s:p:u:h:g:a" opt; do
|
||||||
u) USERNAME=$OPTARG;;
|
u) USERNAME=$OPTARG;;
|
||||||
g) GIT_REPOSITORY_DIRECTORY_NAME=$OPTARG;;
|
g) GIT_REPOSITORY_DIRECTORY_NAME=$OPTARG;;
|
||||||
a) AUTHORS_OK=true;;
|
a) AUTHORS_OK=true;;
|
||||||
h) showhelp
|
h) showhelp;
|
||||||
exit 0 ;;
|
exit ;;
|
||||||
\?) echo -e "\nERROR:invalid option: -$OPTARG";
|
?) echo -e "\nERROR:invalid option: -$OPTARG";
|
||||||
showhelp;
|
showhelp;
|
||||||
echo -e "\naborting.\n"
|
|
||||||
exit 1 >&2;;
|
exit 1 >&2;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
@ -313,4 +312,4 @@ rm -rf $MIGRATION_DIRECTORY
|
||||||
|
|
||||||
echo "Well Done"
|
echo "Well Done"
|
||||||
echo "Please configure the Jenkins Building system for your project at https://jenkins.d4science.org/ See how to do it at https://wiki.gcube-system.org/gcube/Jenkins_Projects_(aka_Jobs)"
|
echo "Please configure the Jenkins Building system for your project at https://jenkins.d4science.org/ See how to do it at https://wiki.gcube-system.org/gcube/Jenkins_Projects_(aka_Jobs)"
|
||||||
echo "Please Add Webhhoks on Gitea at https://code-repo.d4science.org/gCubeSystem/${GIT_REPOSITORY_DIRECTORY_NAME} See hot to do it at https://wiki.gcube-system.org/gcube/Gitea/Jenkins:_Setting_up_Webhooks#Webhook_on_the_Gitea_repository"
|
echo "Please Add Webhhoks on Gitea at https://code-repo.d4science.org/gCubeSystem/${GIT_REPOSITORY_DIRECTORY_NAME} See how to do it at https://wiki.gcube-system.org/gcube/Gitea/Jenkins:_Setting_up_Webhooks#Webhook_on_the_Gitea_repository"
|
||||||
|
|
Loading…
Reference in New Issue