File: autogen.sh

package info (click to toggle)
nordugrid-arc-nox 1.1.0~rc6-2.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 44,552 kB
  • ctags: 25,532
  • sloc: cpp: 255,243; sh: 12,843; java: 11,722; python: 11,710; perl: 11,451; makefile: 2,633; xml: 2,350; ansic: 599; sed: 16
file content (36 lines) | stat: -rwxr-xr-x 965 bytes parent folder | download | duplicates (10)
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
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#
# autogen.sh glue
#
# Requires: automake 1.9, autoconf 2.57+
# Conflicts: autoconf 2.13
set -x 

cleanup() {
    find . -type d -name autom4te.cache -print | xargs 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 \
        -o -name Makefile.in -o -name config.h.in -o -name aclocal.m4 \
        -o -name autoscan.log -o -name configure.scan -o -name config.log \
        -o -name config.status -o -name config.h -o -name stamp-h1 \
        -o -name Makefile -o -name libtool \) \
        -print | xargs rm -f
}

if [ "x$1" = "xclean" ]; then
    cleanup
    exit
fi

# Refresh GNU autotools toolchain.
echo Cleaning autotools files...
cleanup

type glibtoolize > /dev/null 2>&1 && export LIBTOOLIZE=glibtoolize

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

exit 0