File: make-tarball

package info (click to toggle)
nagios3 3.2.1-2%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 11,476 kB
  • ctags: 6,490
  • sloc: ansic: 74,048; sh: 12,762; perl: 1,947; makefile: 907; php: 328
file content (25 lines) | stat: -rwxr-xr-x 461 bytes parent folder | download | duplicates (13)
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
#! /bin/sh
if [ "x$1" = "x" ]
then
	echo "Usage: $0 <release number>"
	exit 1
fi

if test -e Makefile; then
  make distclean
fi
autoconf

# Update version number and modification date in code
./update-version $1

PWDSAVE=`pwd`
PACKAGE=nagios
pushd ..
if [ ! -d $PACKAGE-$1 ]; then
  ln -s `basename $PWDSAVE` $PACKAGE-$1
fi
tar zhcvf $PACKAGE-$1.tar.gz --exclude RCS --exclude CVS --exclude build-* --exclude *~ --exclude .\#* $PACKAGE-$1
#rm $PACKAGE-$1
popd