[go: up one dir, main page]

File: make-package.sh

package info (click to toggle)
aewan 1.0.01-4
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 728 kB
  • sloc: ansic: 4,438; python: 122; makefile: 108; sh: 14
file content (23 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

if ! [ -f configure ]; then
   echo "./configure does not exist. Run autoconf."
   exit 1
fi

/bin/rm -rf autom4te.cache

X=`tempfile`
/bin/rm -f $X
mkdir $X

BASENAME=aewan-`cat version.h | grep AEWAN_PROGRAM_VERSION | grep -v AEWAN_PROGRAM_VERSION_NAME | cut -d\" -f2`

(cd .. && cp -a aewan $X/$BASENAME)
(cd $X && find $X -name CVS -type d -exec rm -rf {} \; 2>/dev/null )

(cd $X && tar -zc $BASENAME) > ../$BASENAME.tar.gz

/bin/rm -rf $X
echo "../$BASENAME.tar.gz generated."