File: autoregen.sh

package info (click to toggle)
apcupsd 3.8.5-1.1.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 7,012 kB
  • ctags: 2,783
  • sloc: ansic: 26,374; sh: 3,012; makefile: 1,860; cpp: 1,713; perl: 191; sed: 93
file content (18 lines) | stat: -rwxr-xr-x 448 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#
# Simple script for regenerating the autoconf and autoheader files.
#

autoconf --localdir=autoconf autoconf/configure.in > configure
chmod 755 configure
autoheader --localdir=autoconf autoconf/configure.in > autoconf/config.h.in
./configure --enable-powerflute --enable-cgi --enable-nls --with-included-gettext --with-catgets --enable-libwrap

if [ "$1" != "config" ]
then
	make
	if [ "$1" != "compile" ]
	then
		make distclean
	fi
fi