File: release_src

package info (click to toggle)
xxdiff 1%3A2.5-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,936 kB
  • ctags: 3,420
  • sloc: cpp: 16,125; ansic: 16,104; sh: 1,684; makefile: 295; yacc: 238; lex: 218; python: 216
file content (36 lines) | stat: -rwxr-xr-x 829 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#
# $Id: release_src,v 1.10 2001/11/22 07:39:59 blais Exp $
#

if [ ! -d "tools" ]; then
     echo "You must be running this script from the topdir directory."
     exit 1;
fi

# Package for source release.
echo "Getting version"
VERSION=`tools/get_version`
UVERSION=`echo $VERSION | sed -e 's/\./_/g'`
RTAG=xxdiff_$UVERSION
echo "Version $VERSION, Release tag $RTAG"

echo "Creating temporary space to extract source"
TMP=xxdiff-tmp

cd .. && mkdir $TMP && cd $TMP

echo "Exporting source from CVS"
CVS_RSH=ssh
cvs -z3 -d:ext:bor.iro.umontreal.ca:/u/blais/cvsroot \
   export -d xxdiff-$VERSION -r $RTAG xxdiff

if [ $? = 0 ]; then 
    echo "Compressing source into archive"
    tar zcvf ../xxdiff-${VERSION}.tar.gz xxdiff-${VERSION}
else
    echo "Error exporting source"
fi

echo "Cleaning up"
cd .. && rm -rf $TMP