File: bootstrap

package info (click to toggle)
soundtouch 2.4.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 920 kB
  • sloc: cpp: 5,251; pascal: 453; makefile: 91; ansic: 64; sh: 50
file content (23 lines) | stat: -rwxr-xr-x 609 bytes parent folder | download
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

unset ACLOCAL

if [ "$1" = "--clean" ]
then
	if [ -a Makefile ]
	then
		make maintainer-clean
	elif [ -a configure ]
	then
		configure && $0 --clean
	else
		bootstrap && configure && $0 --clean
	fi

	rm -rf configure libtool aclocal.m4 `find . -name Makefile.in` autom4te*.cache config/config.guess config/config.h.in config/config.sub config/depcomp config/install-sh config/ltmain.sh config/missing config/mkinstalldirs config/stamp-h config/stamp-h.in

else
	export AUTOMAKE="automake --add-missing --foreign --copy"
	autoreconf -fisv && rm -f `find . -name "*~"` && rm -f ChangeLog
	exit $?
fi