]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 14 Jan 2020 23:11:01 +0000 (00:11 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 14 Jan 2020 23:11:01 +0000 (00:11 +0100)
- removed jtrainings (company-related project)
- added clone-jprojects.sh to clone all Java-based projects

Signed-off-by: Roland Häder <roland@mxchange.org>
.jprojects.sh
clone-jprojects.sh [new file with mode: 0755]

index f531f7d3e4dc7889a0d6fc6929ccf65cee73462f..feca852b7720ab2f31b5f551a94ae909ebd2fe93 100644 (file)
@@ -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 (executable)
index 0000000..11053db
--- /dev/null
@@ -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