From: Roland Häder Date: Tue, 14 Jan 2020 23:11:01 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=765aabf009e5568e4711a8755907c9cd2a103d25;p=jprojects-scripts.git Continued: - removed jtrainings (company-related project) - added clone-jprojects.sh to clone all Java-based projects Signed-off-by: Roland Häder --- diff --git a/.jprojects.sh b/.jprojects.sh index f531f7d..feca852 100644 --- a/.jprojects.sh +++ b/.jprojects.sh @@ -24,7 +24,7 @@ LIBRARIES="jcore-utils jcore jcoreee \ jshop-receipt-core jshop-receipt-lib" # Base application names (all) -BASE_APPLICATION_NAMES="addressbook jfinancials jjobs jtrainings jjobboards pizzaservice" +BASE_APPLICATION_NAMES="addressbook jfinancials jjobs jjobboards pizzaservice" # Applications and their special libs/EJBs APPLICATIONS="pizzaservice-core pizzaservice-lib pizzaservice-mailer-ejb pizzaservice-mailer-lib pizzaservice-ejb pizzaservice-swing \ @@ -33,11 +33,10 @@ APPLICATIONS="pizzaservice-core pizzaservice-lib pizzaservice-mailer-ejb pizzase addressbook-core addressbook-lib addressbook-mailer-ejb addressbook-mailer-lib addressbook-ejb addressbook-war addressbook addressbook-uml" # Company-specific projects -COMPANY_APPS="jtrainings-core jtrainings-lib jtrainings-mailer-ejb jtrainings-mailer-lib jtrainings-ejb jtrainings-war jtrainings -jjobboards-core jjobboards-lib jjobboards-mailer-ejb jjobboards-mailer-lib jjobboards-ejb jjobboards-war jjobboards" +COMPANY_APPS="jjobboards-core jjobboards-lib jjobboards-mailer-ejb jjobboards-mailer-lib jjobboards-ejb jjobboards-war jjobboards" # Broken (needs fixing) -BROKEN="addressbook-swing jfinancials-swing jtrainings-swing jjobboards-swing pizzaservice-war pizzaservice" +BROKEN="addressbook-swing jfinancials-swing jjobboards-swing pizzaservice-war pizzaservice" # Compile list ALL_PROJECTS="${THIS} ${LIBRARIES} ${APPLICATIONS} ${COMPANY_APPS} ${BROKEN}" diff --git a/clone-jprojects.sh b/clone-jprojects.sh new file mode 100755 index 0000000..11053db --- /dev/null +++ b/clone-jprojects.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +. ./.jprojects.sh || exit 255 + +TARGET_BRANCH="master" + +for project in ${LIST}; do + if [ "${project}" = "jprojects-scripts" ] + then + echo "$0: Skipping jprojects-scripts ..." + continue + elif [ -d "${JPROJECTS_HOME}/${project}" ] + then + echo "$0: Project '${project}' does exist." + continue + fi + + echo "$0: Cloning '${project}' ..." + git clone "/media/${USER}/Transport/Java Project/${project}.git" +done + +echo "$0: All done." +exit 0