File: autogen.sh

package info (click to toggle)
vtun 3.0.4-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,520 kB
  • sloc: ansic: 4,180; sh: 2,814; yacc: 536; lex: 195; makefile: 139
file content (26 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (7)
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
26
#!/bin/sh
# autotools update script, patching first configure.in. Based on
# /usr/share/doc/autotools-dev/examples
#
# Requires: automake 1.9, autoconf 2.57+
# Conflicts: autoconf 2.13
set -e

# Refresh GNU autotools toolchain.
echo Cleaning autotools files...
find -type d -name autom4te.cache -print0 | xargs -0 rm -rf \;
find -type f \( -name missing -o -name install-sh -o -name mkinstalldirs \
	-o -name depcomp -o -name ltmain.sh -o -name configure \
	-o -name config.sub -o -name config.guess \) -print0 | xargs -0 rm -f

cp -f /usr/share/automake/install-sh .
cp -f /usr/share/misc/config.sub .
cp -f /usr/share/misc/config.guess .

patch -p0 < debian/configure.in.patch

echo Running autoreconf...
autoreconf --force --install

find -type d -name autom4te.cache -print0 | xargs -0 rm -rf \;
rm -f config.h.in~