]> Dogcows Code - chaz/tint2/blob - make_release.sh
desktop name : last step
[chaz/tint2] / make_release.sh
1 #!/bin/bash
2
3 # usage: ./make_release.sh RELEASE_VERSION_NUMBER
4
5 if [[ $# -ne 1 ]]; then
6 echo "usage: $0 RELEASE_VERSION_NUMBER"
7 exit
8 fi
9
10 DIR=tint2-${1}
11 echo "Making release ${DIR}"
12 rm -Rf ${DIR}
13 svn export . ${DIR} > /dev/null
14
15 # delete unneeded files
16 rm -f ${DIR}/configure ${DIR}/make_release.sh
17
18 # replace get_svnrev.sh by a simple echo command
19 echo "echo \"#define VERSION_STRING \\\"${1}\\\"\" > version.h" > ${DIR}/get_svnrev.sh
20
21 # create tarball and remove the exported directory
22 tar -cjf ${DIR}.tar.bz2 ${DIR}
23 rm -Rf ${DIR}
This page took 0.031642 seconds and 4 git commands to generate.