- renamed all vformat_ and VFormat symbols in opensync plugin's
[barry.git] / buildgen.sh
blob8c3e3a049bd78985e5cbab1154b262f5f557bb4b
1 #!/bin/sh
4 # Generates the build system.
7 if [ "$1" = "cleanall" ] ; then
8 make distclean
9 (cd gui && make distclean)
10 (cd opensync-plugin && make distclean)
11 ./buildgen.sh clean
12 (cd gui && ./buildgen.sh clean)
13 (cd opensync-plugin && ./buildgen.sh clean)
14 elif [ "$1" = "clean" ] ; then
15 rm -rf autom4te.cache
16 rm -f Makefile.in aclocal.m4 config.guess config.h.in config.sub \
17 configure depcomp install-sh ltmain.sh missing \
18 src/Makefile.in tools/Makefile.in examples/Makefile.in \
19 man/Makefile.in INSTALL config.h.in~
20 # clean up Debian build trails
21 rm -rf debian/barry
22 rm -f build-arch-stamp build-indep-stamp configure-stamp \
23 debian/barry.substvars debian/files \
24 tools/bcharge
25 # clean up ctags trails
26 rm -f src/tags tools/tags examples/tags \
27 gui/src/tags opensync-plugin/src/tags
28 elif [ "$1" = "ctags" ] ; then
29 echo "Building ctags..."
30 (cd src && ctags -R)
31 (cd tools && ctags -R)
32 (cd examples && ctags -R)
33 (cd gui/src && ctags -R)
34 (cd opensync-plugin/src && ctags -R)
35 # and one with everything
36 ctags -R -f ~/tags-barry --tag-relative=yes
37 # add opensync library as well (yes, I know this only works for my
38 # setup... sorry) :-)
39 #OS_DIR=~/software/opensync/svn
40 OS_DIR=~/software/opensync/0.22
41 if [ -d $OS_DIR ] ; then
42 echo "Detected opensync source tree, building ctags on it..."
43 (cd $OS_DIR && ctags -R -a -f ~/tags-barry --tag-relative=yes)
45 else
46 autoreconf -if
47 #autoreconf -ifv