diff --git a/SVN/import-from-svn.sh b/SVN/import-from-svn.sh index 836fa78..1987f1b 100644 --- a/SVN/import-from-svn.sh +++ b/SVN/import-from-svn.sh @@ -5,6 +5,7 @@ SVN_URL="" SVN_PROJECT_LOCAL_DIR="" GIT_REPOSITORY_DIRECTORY_NAME="" WORKSPACE=~/workspace +AUTHORS_OK=false POM_FILE=pom.xml OLD_MAVEN_PARENT_VERSION="1.0.0" @@ -23,7 +24,7 @@ function git_repository { GIT_OK=true; break;; No ) - echo "Please created it at https://code-repo.d4science.org/gCubeSystem/ and select yes to continue. See how to do it at https://wiki.gcube-system.org/gcube/Git_Repositories#Create_a_New_Repository" + echo "Please created it at https://code-repo.d4science.org/repo/create?org=5722 and select yes to continue. See how to do it at https://wiki.gcube-system.org/gcube/Git_Repositories#Create_a_New_Repository" GIT_OK=false break;; Abort ) @@ -35,9 +36,9 @@ function git_repository { } function authors { - local AUTHORS_OK=false - - read -p "By continuing you will be able to check the authors file with 'less' command (type ENTER to continue)." + if [ "$AUTHORS_OK" = false ]; then + read -p "By continuing you will be able to check the authors file with 'less' command (type ENTER to continue)." + fi while [ "$AUTHORS_OK" = false ] do @@ -175,16 +176,18 @@ function showhelp { echo " -p The path to the local project actually on SVN" echo " -u for git svn clone command e.g. luca.frosini" echo " -g " + echo " -a does not request to check the author file" echo -e " -h = shows this help.\n" } -while getopts ":s:p:u:h:g" opt; do +while getopts ":s:p:u:h:g:a" opt; do case $opt in i) INIT=true;; s) SVN_URL=$OPTARG;; p) SVN_PROJECT_LOCAL_DIR=$OPTARG;; u) USERNAME=$OPTARG;; g) GIT_REPOSITORY_DIRECTORY_NAME=$OPTARG;; + a) AUTHORS_OK=true;; h) showhelp exit 0 ;; \?) echo -e "\nERROR:invalid option: -$OPTARG";