From 52eaf87e75571d51f8e6b27c8ee72f58525970b0 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Thu, 24 Apr 2014 09:11:25 -0400 Subject: [PATCH] Removed the old versions of those build scripts --- build.sh | 2 -- buildWithoutTests.sh | 2 -- changeTagToDev.sh | 18 ------------------ changeTagToFinal.sh | 18 ------------------ changeTagToMilestone.sh | 26 -------------------------- changeTagToRelease.sh | 18 ------------------ changeTagToSnapshot.sh | 18 ------------------ createBuildRelease.sh | 5 ----- createMajorRelease.sh | 30 ------------------------------ createMinorRelease.sh | 30 ------------------------------ createPatchRelease.sh | 30 ------------------------------ fixJavaFXClasspath.sh | 1 - package.sh | 19 ------------------- 13 files changed, 217 deletions(-) delete mode 100755 build.sh delete mode 100755 buildWithoutTests.sh delete mode 100755 changeTagToDev.sh delete mode 100755 changeTagToFinal.sh delete mode 100755 changeTagToMilestone.sh delete mode 100755 changeTagToRelease.sh delete mode 100755 changeTagToSnapshot.sh delete mode 100755 createBuildRelease.sh delete mode 100755 createMajorRelease.sh delete mode 100755 createMinorRelease.sh delete mode 100755 createPatchRelease.sh delete mode 100755 fixJavaFXClasspath.sh delete mode 100755 package.sh diff --git a/build.sh b/build.sh deleted file mode 100755 index 829d2c6..0000000 --- a/build.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -mvn clean package diff --git a/buildWithoutTests.sh b/buildWithoutTests.sh deleted file mode 100755 index fd41f9c..0000000 --- a/buildWithoutTests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -mvn -Dmaven.test.skip=true clean package diff --git a/changeTagToDev.sh b/changeTagToDev.sh deleted file mode 100755 index 4f19328..0000000 --- a/changeTagToDev.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -#Update the release version of the project -#version string will look similar to this: 0.1.0-DEV-27-060aec7 -VERSION=$(head -1 ./version.info) - -#do work on the version to get the correct info -#we need the version string from above to look like this: 0.1.1-DEV -IFS='.' read -a arr <<< "$VERSION" -#results in [0,1,0-DEV-27-060aec7] -IFS='-' read -a arr2 <<< "${arr[2]}" -#results in [0,DEV,27,060aec7] -VERSION="${arr[0]}.${arr[1]}.${arr2[0]}-DEV" -#echo $VERSION - -#update the POM -mvn versions:set -DnewVersion=$VERSION - -echo "$VERSION" > version.info \ No newline at end of file diff --git a/changeTagToFinal.sh b/changeTagToFinal.sh deleted file mode 100755 index 4f19328..0000000 --- a/changeTagToFinal.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -#Update the release version of the project -#version string will look similar to this: 0.1.0-DEV-27-060aec7 -VERSION=$(head -1 ./version.info) - -#do work on the version to get the correct info -#we need the version string from above to look like this: 0.1.1-DEV -IFS='.' read -a arr <<< "$VERSION" -#results in [0,1,0-DEV-27-060aec7] -IFS='-' read -a arr2 <<< "${arr[2]}" -#results in [0,DEV,27,060aec7] -VERSION="${arr[0]}.${arr[1]}.${arr2[0]}-DEV" -#echo $VERSION - -#update the POM -mvn versions:set -DnewVersion=$VERSION - -echo "$VERSION" > version.info \ No newline at end of file diff --git a/changeTagToMilestone.sh b/changeTagToMilestone.sh deleted file mode 100755 index 914b054..0000000 --- a/changeTagToMilestone.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -#Update the release version of the project -#version string will look similar to this: 0.1.0-DEV-27-060aec7 -VERSION=$(head -1 ./version.info) - -#do work on the version to get the correct info -#we need the version string from above to look like this: 0.1.1-DEV -IFS='.' read -a arr <<< "$VERSION" -#results in [0,1,0-DEV-27-060aec7] -IFS='-' read -a arr2 <<< "${arr[2]}" -#results in [0,DEV,27,060aec7] -MVERSIONTEMP=0 -#determine the milestone version -if [ "${arr2[1]:0:1}" = "M" ] - then - MVERSIONTEMP=${arr2[1]:1} -fi -#increment the milestone vesrion -let MVERSION=${MVERSIONTEMP}+1 -VERSION="${arr[0]}.${arr[1]}.${arr2[0]}-M$MVERSION" -echo $VERSION - -#update the POM -mvn versions:set -DnewVersion=$VERSION - -echo "$VERSION" > version.info \ No newline at end of file diff --git a/changeTagToRelease.sh b/changeTagToRelease.sh deleted file mode 100755 index a237b28..0000000 --- a/changeTagToRelease.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -#Update the release version of the project -#version string will look similar to this: 0.1.0-DEV-27-060aec7 -VERSION=$(head -1 ./version.info) - -#do work on the version to get the correct info -#we need the version string from above to look like this: 0.1.1-DEV -IFS='.' read -a arr <<< "$VERSION" -#results in [0,1,0-DEV-27-060aec7] -IFS='-' read -a arr2 <<< "${arr[2]}" -#results in [0,DEV,27,060aec7] -VERSION="${arr[0]}.${arr[1]}.${arr2[0]}-RELEASE" -#echo $VERSION - -#update the POM -mvn versions:set -DnewVersion=$VERSION - -echo "$VERSION" > version.info \ No newline at end of file diff --git a/changeTagToSnapshot.sh b/changeTagToSnapshot.sh deleted file mode 100755 index 6e43f84..0000000 --- a/changeTagToSnapshot.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -#Update the release version of the project -#version string will look similar to this: 0.1.0-DEV-27-060aec7 -VERSION=$(head -1 ./version.info) - -#do work on the version to get the correct info -#we need the version string from above to look like this: 0.1.1-DEV -IFS='.' read -a arr <<< "$VERSION" -#results in [0,1,0-DEV-27-060aec7] -IFS='-' read -a arr2 <<< "${arr[2]}" -#results in [0,DEV,27,060aec7] -VERSION="${arr[0]}.${arr[1]}.${arr2[0]}-SNAPSHOT" -#echo $VERSION - -#update the POM -mvn versions:set -DnewVersion=$VERSION - -echo "$VERSION" > version.info \ No newline at end of file diff --git a/createBuildRelease.sh b/createBuildRelease.sh deleted file mode 100755 index 28b5b9f..0000000 --- a/createBuildRelease.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -#Do not change versions as this is a build release with artifacts -#Build and package the current version -. build.sh -. package.sh diff --git a/createMajorRelease.sh b/createMajorRelease.sh deleted file mode 100755 index 018b0ab..0000000 --- a/createMajorRelease.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -#Update the release version of the project -#version string will look similar to this: 0.1.0-DEV-27-060aec7 -VERSION=$(head -1 ./version.info) - -#do work on the version to get the correct info -#we need the version string from above to look like this: 0.1.1-DEV -IFS='.' read -a arr <<< "$VERSION" -#results in [0,1,0-DEV-27-060aec7] -IFS='-' read -a arr2 <<< "${arr[2]}" -#results in [0,DEV,27,060aec7] -let major=${arr[0]}+1 -#echo $major -VERSION="$major.0.0-${arr2[1]}" -#echo $VERSION - -#update the POM -mvn versions:set -DnewVersion=$VERSION - -#commit the new patch version -git commit -a . -m "Creating major version $VERSION" - -#tag the build -git tag -a v$VERSION -m "Major Release Version $VERSION" - -#push the build and tag -git push --follow-tags - -. build.sh -. package.sh diff --git a/createMinorRelease.sh b/createMinorRelease.sh deleted file mode 100755 index 7fd161c..0000000 --- a/createMinorRelease.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -#Update the release version of the project -#version string will look similar to this: 0.1.0-DEV-27-060aec7 -VERSION=$(head -1 ./version.info) - -#do work on the version to get the correct info -#we need the version string from above to look like this: 0.1.1-DEV -IFS='.' read -a arr <<< "$VERSION" -#results in [0,1,0-DEV-27-060aec7] -IFS='-' read -a arr2 <<< "${arr[2]}" -#results in [0,DEV,27,060aec7] -let minor=${arr[1]}+1 -#echo $minor -VERSION="${arr[0]}.$minor.0-${arr2[1]}" -#echo $VERSION - -#update the POM -mvn versions:set -DnewVersion=$VERSION - -#commit the new patch version -git commit -a . -m "Creating minor version $VERSION" - -#tag the build -git tag -a v$VERSION -m "Minor Release Version $VERSION" - -#push the build and tag -git push --follow-tags - -. build.sh -. package.sh diff --git a/createPatchRelease.sh b/createPatchRelease.sh deleted file mode 100755 index 30748d8..0000000 --- a/createPatchRelease.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -#Update the release version of the project -#version string will look similar to this: 0.1.0-DEV-27-060aec7 -VERSION=$(head -1 ./version.info) - -#do work on the version to get the correct info -#we need the version string from above to look like this: 0.1.1-DEV -IFS='.' read -a arr <<< "$VERSION" -#results in [0,1,0-DEV-27-060aec7] -IFS='-' read -a arr2 <<< "${arr[2]}" -#results in [0,DEV,27,060aec7] -let patch=${arr2[0]}+1 -#echo $patch -VERSION="${arr[0]}.${arr[1]}.$patch-${arr2[1]}" -#echo $VERSION - -#update the POM -mvn versions:set -DnewVersion=$VERSION - -#commit the new patch version -git commit -a . -m "Creating patch version $VERSION" - -#tag the build -git tag -a v$VERSION -m "Patch Release Version $VERSION" - -#push the build and tag -git push --follow-tags - -. build.sh -. package.sh diff --git a/fixJavaFXClasspath.sh b/fixJavaFXClasspath.sh deleted file mode 100755 index 3bff1f6..0000000 --- a/fixJavaFXClasspath.sh +++ /dev/null @@ -1 +0,0 @@ -sudo mvn com.zenjava:javafx-maven-plugin:2.0:fix-classpath diff --git a/package.sh b/package.sh deleted file mode 100755 index be3ded5..0000000 --- a/package.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -#Getting variables that are produced by the script -VERSION=$(head -1 ./version.info) -NAME=$(head -1 ./name.info) -PACKAGENAME=$NAME-$VERSION -PACKAGETAR=$PACKAGENAME.tar.gz -PACKAGEZIP=$PACKAGENAME.zip -TARGET=$PWD/target - -#Packaging Jar Distributable -cd target/release/ -echo "creating $PACKAGETAR in $TARGET" -tar -zcvf $TARGET/$PACKAGETAR . -echo "creating $PACKAGEZIP in $TARGET" -zip -r $TARGET/$PACKAGEZIP ./* -#Removing prebuilt jar in target -rm $TARGET/*.jar -#Copying Jar to target for archiving -cp ./*.jar $TARGET