Browse Source

Moved some build files out of the way, and updated them to account for the directory change.

master
Drew Short 10 years ago
parent
commit
4a95219533
  1. 3
      build/linux/build.sh
  2. 3
      build/linux/buildWithoutTests.sh
  3. 19
      build/linux/changeTagToDev.sh
  4. 19
      build/linux/changeTagToFinal.sh
  5. 27
      build/linux/changeTagToMilestone.sh
  6. 19
      build/linux/changeTagToRelease.sh
  7. 19
      build/linux/changeTagToSnapshot.sh
  8. 7
      build/linux/createBuildRelease.sh
  9. 34
      build/linux/createMajorRelease.sh
  10. 34
      build/linux/createMinorRelease.sh
  11. 34
      build/linux/createPatchRelease.sh
  12. 1
      build/linux/fixJavaFXClasspath.sh
  13. 21
      build/linux/package.sh

3
build/linux/build.sh

@ -0,0 +1,3 @@
#!/bin/bash
cd ../..
mvn clean package

3
build/linux/buildWithoutTests.sh

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

19
build/linux/changeTagToDev.sh

@ -0,0 +1,19 @@
#!/bin/bash
cd ../..
#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

19
build/linux/changeTagToFinal.sh

@ -0,0 +1,19 @@
#!/bin/bash
cd ../..
#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

27
build/linux/changeTagToMilestone.sh

@ -0,0 +1,27 @@
#!/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

19
build/linux/changeTagToRelease.sh

@ -0,0 +1,19 @@
#!/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

19
build/linux/changeTagToSnapshot.sh

@ -0,0 +1,19 @@
#!/bin/bash
cd ../..
#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

7
build/linux/createBuildRelease.sh

@ -0,0 +1,7 @@
#!/bin/bash
HOME=$PWD
#Do not change versions as this is a build release with artifacts
#Build and package the current version
. build.sh
cd $HOME
. package.sh

34
build/linux/createMajorRelease.sh

@ -0,0 +1,34 @@
#!/bin/bash
HOME=$PWD
cd ../..
#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
cd $HOME
. build.sh
cd $HOME
. package.sh

34
build/linux/createMinorRelease.sh

@ -0,0 +1,34 @@
#!/bin/bash
HOME=$PWD
cd ../..
#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
cd $HOME
. build.sh
cd $HOME
. package.sh

34
build/linux/createPatchRelease.sh

@ -0,0 +1,34 @@
#!/bin/bash
HOME=$PWD
cd ../..
#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
cd $HOME
. build.sh
cd $HOME
. package.sh

1
build/linux/fixJavaFXClasspath.sh

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

21
build/linux/package.sh

@ -0,0 +1,21 @@
#!/bin/bash
#Move out of the build folder
cd ../..
#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