-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathautogen
executable file
·59 lines (48 loc) · 1.6 KB
/
autogen
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
#INSTALL should be saved as is replaced by --force (an odd feature of autoreconf)
# for nested packages, autoreconf still creates issues with m4 alignment
# so autoreconf in each package with --no-recursive when there are nested ones.
# empirically, top-down order works better (trash generated by root autoreconf in nested packages is erased by nested autoreconf)
export PATH=$PATH:$(pwd)/build/linux/dvda-author-full.build/bin:$(pwd)/build/win32/dvda-author-full.build/bin
echo "Using autoconf..."
autoconf --version
if test $? != 0 ; then
echo 'You need autoconf installed to run this in-tree bootstrap tool'
echo 'install it from GNU autoconf source code (ftp://gnu.ftp.org/gnu)'
exit
fi
if test -d autom4te.cache; then
rm -rf autom4te.cache
fi
backup=INSTALL_save_$(date | sed -r "s/[() :]/./g")
if test -f INSTALL; then
cp INSTALL $backup
fi
topdir=`pwd`
echo "Entering: "
echo "$topdir"
libtoolize --force -cfi
#automake --add-missing --force-missing
autoconf -f -Im4 -Im4.extra -Im4.extra.dvdauthor --warnings=none
autoheader --warnings=none
exitcode=$?
cd "$topdir"
if test -f $backup; then
mv $backup INSTALL
if test $? != 0; then
echo INSTALL was backed up in previous generation but could not be recovered.
echo Fix this manually.
fi
fi
#cleaning up the empty lines (compress to about 1/3 of line count)
function clean()
{
sed -r -i '/^\s{3,}*$/d' $1
}
echo Cleaning configure:
if test -f configure; then
echo -e Before:\\t$(wc -l configure | sed s/configure//) lines...
clean configure
echo -e After:\\t$(wc -l configure | sed s/configure//) lines
fi
exit $exitcode