]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Wed, 27 Jul 2016 19:31:02 +0000 (21:31 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 27 Jul 2016 19:31:02 +0000 (21:31 +0200)
- added new bundle-jprojects.sh which will bundle all Java projects in parent directory
- added check for project existence and that it is not *this* project
- deleted wildfly stuff

Signed-off-by: Roland Haeder <roland@mxchange.org>
build-dist-all.sh
bundle-jprojects.sh [new file with mode: 0755]
check-untracked.sh
checkout-jprojects.sh
commit-jprojects.sh
create-jproject-branch.sh
fix-project-remotes.sh
merge-jprojects.sh
wildfly/module.xml [deleted file]

index aeb747e0229f676d250dad92a20bf9f1a6c645f4..c5ae10febf7425071e9b9dbf07be4e23571cca01 100755 (executable)
@@ -3,10 +3,14 @@
 . ./.jprojects.sh || exit 255
 
 for project in ${LIST}; do
-       if [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       if [ "${project}" = "jprojects-scripts" ]
+       then
+               echo "$0: Skipping jprojects-scripts ..."
+               continue
+       elif [ ! -d "${JPROJECTS_HOME}/${project}" ]
        then
                echo "$0: Project '${project}' does not exist."
-               continue;
+               continue
        fi
 
        echo "$0: Executing '${project}' ..."
diff --git a/bundle-jprojects.sh b/bundle-jprojects.sh
new file mode 100755 (executable)
index 0000000..2435d50
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+. ./.jprojects.sh || exit 255
+
+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 not exist."
+               continue
+       fi
+
+       BUNDLE_FILE="${JPROJECTS_HOME}/${project}.bundle"
+
+       echo "$0: Bundling '${project}' ..."
+       cd "${JPROJECTS_HOME}/${project}"
+       git bundle create "${BUNDLE_FILE}" HEAD
+done
+
+echo "$0: All done."
+exit 0
index 7216a7ef398a1b0e8ab08e1fecb55fff609c3ec4..1bd186ca835f18fe63aa96306e29ad76978a1215 100755 (executable)
@@ -3,13 +3,25 @@
 . ./.jprojects.sh
 
 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 not exist."
+               continue
+       fi
+
        echo "$0: Checking '${project}' ..."
-       cd "${project}"
+       cd "${JPROJECTS_HOME}/${project}"
        STATUS=`git status`
        UNTRACKED=`echo "${STATUS}" | grep "Untracked files:"`
        if [ -n "${UNTRACKED}" ]
        then
                echo "${STATUS}"
        fi
-       cd -
 done
+
+echo "$0: All done."
+exit 0
index a577daaf0db7cc5e0f31421fc08bd51a9bbc94f4..4fb0da465cfa9b3fa35c0794c6d450881844f8d2 100755 (executable)
@@ -5,6 +5,16 @@
 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 not exist."
+               continue
+       fi
+
        echo "$0: Processing '${project}' ..."
        cd "${JPROJECTS_HOME}/${project}"
 
index 86810644ffa558d9fe0dfa3a9b1a079a717b3e75..802ea6a37806b165951cb0d0ba65c969b4765c0c 100755 (executable)
@@ -3,8 +3,13 @@
 . ./.jprojects.sh || exit 255
 
 for project in ${LIST}; do
-       if [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       if [ "${project}" = "jprojects-scripts" ]
        then
+               echo "$0: Skipping jprojects-scripts ..."
+               continue
+       elif [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       then
+               echo "$0: Project '${project}' does not exist."
                continue
        fi
 
index 873da9818b3a50dee1b8542ede3a512d6907083d..3d1409322768b2e1bb983bb684fbbc916211600c 100755 (executable)
@@ -12,8 +12,13 @@ COMMIT_ADD=""
 AFTER_COMMIT_BRANCH="master"
 
 for project in ${LIST}; do
-       if [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       if [ "${project}" = "jprojects-scripts" ]
        then
+               echo "$0: Skipping jprojects-scripts ..."
+               continue
+       elif [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       then
+               echo "$0: Project '${project}' does not exist."
                continue
        fi
 
index f4bd38bf05d3c4f746037cd20965f97ed7338228..5ebb413b044b0142e41fb85d4d3013e5b749b180 100755 (executable)
@@ -19,8 +19,13 @@ MEDIA_NAME2="Transport"
 MEDIA_PATH="Java Project"
 
 for project in ${LIST}; do
-       if [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       if [ "${project}" = "jprojects-scripts" ]
        then
+               echo "$0: Skipping jprojects-scripts ..."
+               continue
+       elif [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       then
+               echo "$0: Project '${project}' does not exist."
                continue
        fi
 
index 7257499911d636b4c7df214c48f7b1a18daa953e..4fc55254d1760cda77662603e5e64d2b764dc9d4 100755 (executable)
@@ -7,6 +7,16 @@ TARGET_BRANCH="rewrites/jpa"
 SWITCH_TO_SOURCE="Y"
 
 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 not exist."
+               continue
+       fi
+
        echo "$0: Processing '${project}' ..."
        cd "${JPROJECTS_HOME}/${project}"
 
diff --git a/wildfly/module.xml b/wildfly/module.xml
deleted file mode 100644 (file)
index 5bb8b82..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module xmlns="urn:jboss:module:1.1" name="org.mxchange.NAME">
-       <resources>
-               <resource-root path="NAME.jar"/>
-       </resources>
-
-       <dependencies>
-               <module name="javax.api"/>
-       </dependencies>
-</module>