File: prepare

package info (click to toggle)
gnuit 4.9.5-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,180 kB
  • sloc: ansic: 28,673; sh: 4,790; makefile: 257
file content (25 lines) | stat: -rwxr-xr-x 850 bytes parent folder | download | duplicates (3)
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
#! /bin/sh

# Prepare a freshly checked out copy of
# the CVS tree for compilation.

AMFLAGS=

if [ "$1" = "-a" ]
then
    ../../gnulib/gnulib/gnulib-tool --import fnmatch fnmatch-gnu fsusage getopt human idcache mbsstr mkstemp nanosleep putenv readlink rename strcase strcasestr utime xalloc; echo -n .
#    gnulib-tool --update; echo -n .
#    patch -p0 < lib-Makefile.am.patch ; echo -n .
    AMFLAGS="--add-missing --force-missing --copy"
fi

cp .gitignore .gitignore.gnulib-backup
rm -rf autom4te.cache config.cache; echo -n "."
#libtoolize --automake --copy --force && echo -n "."
autoheader && echo -n "."
aclocal -I m4 && echo -n "." &&
automake --foreign $AMFLAGS && echo -n "." &&
autoconf && echo -n "." &&
rm -rf autom4te.cache config.cache `find lib m4 -name .gitignore` ; echo -n "."
mv .gitignore.gnulib-backup .gitignore
echo " done"