Commit b1e752f7 authored by Jesper Öqvist's avatar Jesper Öqvist
Browse files

Added release script

parent 9fec5da0
2013-02-13 Jesper Öqvist <jesper.oqvist@cs.lth.se>
* Release 7.1
2013-01-25 Jesper Öqvist <jesper@llbit.se>
* Removed unused import java.util.LinkedHashSet
......
......@@ -41,4 +41,20 @@
<ant antfile="Java7Backend/build.xml" target="clean"
inheritAll="false"/>
</target>
<target name="release" description="Build a source release of JastAddJ"
depends="clean">
<zip destfile="jastaddj-${version}.zip">
<zipfileset dir="." prefix="JastAddJ">
<include name="LICENSE"/>
<include name="build.xml"/>
<include name="ChangeLog"/>
<include name="Java1.4Frontend/**/*"/>
<include name="Java1.4Backend/**/*"/>
<include name="Java1.5Frontend/**/*"/>
<include name="Java1.5Backend/**/*"/>
<include name="Java7Frontend/**/*"/>
<include name="Java7Backend/**/*"/>
</zipfileset>
</zip>
</target>
</project>
#!/bin/sh
if [ $# -lt "1" ]; then
echo "Usage: $0 VERSION"
exit 1
fi
# set version string
VERSION=$1
echo "# Follow these steps to release JastAddJ-$VERSION:"
echo
echo "# 1. Create the source-release zip file"
echo "ant release -Dversion=$VERSION"
echo
echo "# 2. Create a new dir at jastadd.org"
echo "ssh login.cs.lth.se \"mkdir /cs/jastadd/releases/jastaddj/$VERSION\""
echo
echo "# 3.1 Upload the zip files and appropriate documentation to jastadd.org"
echo "scp jastaddj-$VERSION.zip \\"
echo " login.cs.lth.se:/cs/jastadd/releases/jastaddj/$VERSION"
echo
echo "# 3.2 Make sure the new files have group write permission"
echo "ssh login.cs.lth.se \"chmod -R g+w /cs/jastadd/releases/jastaddj/$VERSION\""
echo
echo # Check that it works
echo ------------------------------------------------------
echo Browse to the website and check that everything works.
echo Then ant clean and commit.
echo ------------------------------------------------------
echo
echo "# 4. Tag in SVN"
echo "svn copy http://svn.cs.lth.se/svn/jastadd-oxford/projects/trunk/JastAddJ \\"
echo " http://svn.cs.lth.se/svn/jastadd-oxford/projects/trunk/JastAddJ/${VERSION} \\"
echo " -m \"Release ${VERSION} of JastAddJ\""
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment