From 765aabf009e5568e4711a8755907c9cd2a103d25 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 15 Jan 2020 00:11:01 +0100 Subject: [PATCH] Continued: - removed jtrainings (company-related project) - added clone-jprojects.sh to clone all Java-based projects MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .jprojects.sh | 7 +++---- clone-jprojects.sh | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100755 clone-jprojects.sh 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 -- 2.39.5