File: create_tarball.sh

package info (click to toggle)
acpi 1.5-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 416 kB
  • ctags: 91
  • sloc: sh: 1,045; ansic: 811; makefile: 14
file content (19 lines) | stat: -rw-r--r-- 553 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# start this script inside the acpi source tree to create a releasable tarball

version=`grep AM_INIT_AUTOMAKE configure.ac |sed -e 's/AM_INIT_AUTOMAKE(acpi, //' -e 's/)//'`
major=`echo $version |cut -f1 -d"."`
minor=`echo $version |cut -f2 -d"."`
if [ -d ../acpi-$major.$minor ]
then
	echo "target directory exists"
	exit 1
fi

cp -a . ../acpi-$major.$minor
cd ../acpi-$major.$minor
autoreconf -i
cd ..
tar --exclude CVS --exclude .git --exclude autom4te.cache -zcf acpi-$major.$minor.tar.gz acpi-$major.$minor && rm -fr acpi-$major.$minor