Browse Source

Removed the old versions of those build scripts

master
Drew Short 11 years ago
parent
commit
52eaf87e75
  1. 2
      build.sh
  2. 2
      buildWithoutTests.sh
  3. 18
      changeTagToDev.sh
  4. 18
      changeTagToFinal.sh
  5. 26
      changeTagToMilestone.sh
  6. 18
      changeTagToRelease.sh
  7. 18
      changeTagToSnapshot.sh
  8. 5
      createBuildRelease.sh
  9. 30
      createMajorRelease.sh
  10. 30
      createMinorRelease.sh
  11. 30
      createPatchRelease.sh
  12. 1
      fixJavaFXClasspath.sh
  13. 19
      package.sh

2
build.sh

@ -1,2 +0,0 @@
#!/bin/bash
mvn clean package

2
buildWithoutTests.sh

@ -1,2 +0,0 @@
#!/bin/bash
mvn -Dmaven.test.skip=true clean package

18
changeTagToDev.sh

@ -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

18
changeTagToFinal.sh

@ -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

26
changeTagToMilestone.sh

@ -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

18
changeTagToRelease.sh

@ -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

18
changeTagToSnapshot.sh

@ -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

5
createBuildRelease.sh

@ -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

30
createMajorRelease.sh

@ -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

30
createMinorRelease.sh

@ -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

30
createPatchRelease.sh

@ -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

1
fixJavaFXClasspath.sh

@ -1 +0,0 @@
sudo mvn com.zenjava:javafx-maven-plugin:2.0:fix-classpath

19
package.sh

@ -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
Loading…
Cancel
Save