22d784a68bd3c96fcd44722f314c231fa96c7d31
[citadel.git] / webcit / bootstrap
1 #!/bin/sh
2 #
3 # run me after checking WebCit out of svn.
4 #
5
6 # Remove any vestiges of pre-6.05 build environments
7 rm -f .libs modules *.so *.lo *.la 2>/dev/null
8
9 if ./scripts/get_ical_data.sh; then
10
11     echo ... running aclocal ...
12     aclocal
13     
14     echo ... running autoconf ...
15     autoconf
16
17 # If your autoconf version changes, the autom4te.cache stuff will mess you up.
18 # Get rid of it.
19     echo ... removing autoheader cache files ...
20     rm -rf autom4te*.cache
21     
22     echo ... running autoheader ...
23     autoheader
24     
25     echo ... mk_module_init.sh ...
26     ./scripts/mk_module_init.sh
27
28
29     echo
30     echo This script has been tested with autoconf 2.53 and
31     echo automake 1.5. Other versions may work, but I recommend the latest
32     echo compatible versions of these.
33     echo
34     echo Also note that autoconf and automake should be configured
35     echo with the same prefix.
36     echo
37 fi
38
39 grep '^#define CLIENT_VERSION' webcit.h | sed 's/[^0-9]*//g' >package-version.txt