source: projects/specs/branches/6/t/texworks/texworks-snapshot.sh @ 1977

Revision 1977, 616 bytes checked in by munepi, 14 years ago (diff)

updated texworks-vl.spec

  • 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=texworks
17
18cd "$tmp"
19svn checkout http://texworks.googlecode.com/svn/trunk/ $dirname
20cd $dirname
21VERSION=`cat src/TWVersion.h | grep TEXWORKS_VERSION | sed s/\"//g | cut -f2`
22REVISION=`LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
23find . -type d -name .svn -print0 | xargs -0r rm -rf
24cd ..
25mv $dirname ${dirname}-${VERSION}
26tar jcf "$pwd"/${dirname}-${VERSION}.svn${REVISION}.tar.bz2 ${dirname}-${VERSION}
27cd ${pwd} >/dev/null
28
29exit
Note: See TracBrowser for help on using the repository browser.