Reduced minimum password retry level from 6 to 3
[barry/pauldeden.git] / buildgen.sh
blob028e265779148dbec0e9efec85e73c0ced83da88
1 #!/bin/sh
3 doconf() {
4 aclocal -I $1 && \
5 libtoolize --force --copy && \
6 autoheader && \
7 automake --add-missing --copy --foreign && \
8 autoconf
12 # Generates the build system.
15 if [ "$1" = "cleanall" ] ; then
16 make distclean
17 (cd gui && make distclean)
18 (cd opensync-plugin && make distclean)
19 ./buildgen.sh clean
20 (cd gui && ./buildgen.sh clean)
21 (cd opensync-plugin && ./buildgen.sh clean)
22 elif [ "$1" = "clean" ] ; then
23 rm -rf autom4te.cache
24 rm -f Makefile.in aclocal.m4 config.guess config.h.in config.sub \
25 configure depcomp install-sh ltmain.sh missing \
26 src/Makefile.in tools/Makefile.in examples/Makefile.in \
27 man/Makefile.in INSTALL config.h.in~
28 # clean up Debian build trails
29 rm -rf debian/barry
30 rm -f build-arch-stamp build-indep-stamp configure-stamp \
31 debian/barry.substvars debian/files \
32 tools/bcharge
33 # clean up ctags trails
34 rm -f src/tags tools/tags examples/tags \
35 gui/src/tags opensync-plugin/src/tags
36 elif [ "$1" = "ctags" ] ; then
37 echo "Building ctags..."
38 (cd src && ctags -R)
39 (cd tools && ctags -R)
40 (cd examples && ctags -R)
41 (cd gui/src && ctags -R)
42 (cd opensync-plugin/src && ctags -R)
43 # and one with everything
44 ctags -R -f ~/tags-barry --tag-relative=yes
45 # add opensync library as well (yes, I know this only works for my
46 # setup... sorry) :-)
47 #OS_DIR=~/software/opensync/svn
48 OS_DIR=~/software/opensync/0.22
49 if [ -d $OS_DIR ] ; then
50 echo "Detected opensync source tree, building ctags on it..."
51 (cd $OS_DIR && ctags -R -a -f ~/tags-barry --tag-relative=yes)
53 else
54 #autoreconf -if --include=config
55 #autoreconf -ifv --include=config
57 # autoreconf doesn't seem to support custom .m4 files in config/ (???)
58 # so... do it ourselves
59 doconf m4
60 (cd gui && doconf ../m4)
61 (cd opensync-plugin && doconf ../m4)