source: projects/specs/trunk/g/gmtk/gmtk-snapshot.sh @ 4977

Revision 4977, 768 bytes checked in by munepi, 11 years ago (diff)

updated gnome-mplayer and gecko-mediaplayer; added gmtk: common library for gnome-mplayer and gecko-mediaplayer

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3set -e
4
5tmp=$(mktemp -d)
6
7trap cleanup EXIT
8cleanup() {
9    set +e
10    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
11}
12
13unset CDPATH
14pwd=$(pwd)
15
16dirname=gmtk
17
18cd "$tmp"
19svn checkout http://gmtk.googlecode.com/svn/trunk/ $dirname
20cd $dirname
21#eval `autoconf configure.in | egrep '^[[:blank:]]*VERSION='`
22eval $(egrep '^[[:blank:]]*PACKAGE_VERSION=' configure) && VERSION=$PACKAGE_VERSION || exit 1
23REVISION=`LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
24find . -type d -name .svn -print0 | xargs -0r rm -rf
25cd ..
26mv $dirname ${dirname}-${VERSION}
27#tar jcf "$pwd"/${dirname}-${VERSION}.svn${REVISION}.tar.bz2 ${dirname}-${VERSION}
28tar Jcf "$pwd"/${dirname}-${VERSION}.svn${REVISION}.tar.xz ${dirname}-${VERSION}
29cd ${pwd} >/dev/null
30
31exit
Note: See TracBrowser for help on using the repository browser.