File: buildship

package info (click to toggle)
userv 0.60.2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 424 kB
  • ctags: 495
  • sloc: ansic: 3,866; makefile: 155; sh: 134
file content (43 lines) | stat: -rwxr-xr-x 838 bytes parent folder | download | duplicates (5)
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
#!/bin/sh
# to release, check out a fresh copy and then run this

set -e
version="`sed -n '/^userv (.*)/!d; s/^userv (//; s/).*//; p; q' Changelog`"
targz=userv-$version.tar.gz
tag=`echo release-$version | sed -e 's/\./-/g'`

echo >&2 "*** Tagging (version $version, tag $tag) ..."
cvs tag -F -c $tag

echo >&2 '*** Generating pre-built files ...'
autoconf
autoheader
./configure
make ship VERSION=$version

cd shipcheck

echo >&2 '*** Checking whether identical to repository version ...'
tar zxf $targz
cvs co -r $tag userv
cd userv-$version
cp -r . ../userv/.
cd ../userv
if test "x`cvs -n update`" != x
then
	echo >&2 mismatch:
	cvs -n update
	exit 1
fi
cd ..
rm -rf userv

echo >&2 '*** Doing test build ...'
cd userv-$version
./configure
make

cd ../..

echo >&2 "*** OK.  Distribution file is ../$targz."
mv -f shipcheck/$targz ..