File: release.sh

package info (click to toggle)
icewm 4.0.0-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 14,008 kB
  • sloc: cpp: 77,598; ansic: 2,532; makefile: 1,549; sh: 567; perl: 430; xml: 193; python: 84
file content (49 lines) | stat: -rwxr-xr-x 1,137 bytes parent folder | download | duplicates (9)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh

#cvs () { echo cvs $* }

CVSROOT=':pserver:anonymous@cvs.icewm.sourceforge.net:/cvsroot/icewm'
MODULE='icewm-1.2'
SRCDIR="$MODULE"

if [ -d "$MODULE" ]; then
  pushd $MODULE > /dev/null
  [ -f Makefile ] && make maintainer-clean				
  echo Updating CVS repository
  cvs -z3 update -d -P
  popd > /dev/null
else
  echo Checking out CVS repository
  cvs -z3 -d$CVSROOT login
  cvs -z3 -d$CVSROOT checkout -P $MODULE
fi

source $SRCDIR/VERSION
DISTDIR="icewm-$VERSION"

echo Copying CVS repository to $DISTDIR
rm -rf $DISTDIR
cp -r $SRCDIR $DISTDIR
pushd $DISTDIR > /dev/null

echo Preparing autoconf
./autogen.sh

echo Running configure
./configure --quiet --prefix=/usr --exec-prefix=/usr/X11R6 --sysconfdir=/etc

echo Making distribution information
make -s docs

echo Cleaning distribution
rm config.{cache,log,status}

RELEASE=`sed -ne 's/^%define\>[[:space:]]*release\>[[:space:]]*\<\(.*\)$/\1/p'\
	< icewm.spec`
TARBALL="icewm-$VERSION.tar"

popd
echo Building tarball $TARBALL
tar -cf $TARBALL --exclude=CVS --exclude="autom4te*.cache" $DISTDIR
gzip -9 < $TARBALL > "$TARBALL.gz"
cp -v "$TARBALL.gz" "$HOME/rpm/SOURCES/"