4 # Different name on the Mac
5 libtoolize
--force --copy || glibtoolize
--force --copy
11 automake
--add-missing --copy --foreign && \
52 po
/Makevars.template \
58 # Generates the build system.
61 if [ "$1" = "cleanall" ] ; then
63 (cd gui
&& make distclean
)
64 (cd opensync-plugin
&& make distclean
)
65 (cd opensync-plugin-0.4x
&& make distclean
)
67 (cd gui
&& .
/buildgen.sh clean
)
68 (cd opensync-plugin
&& .
/buildgen.sh clean
)
69 (cd opensync-plugin-0.4x
&& .
/buildgen.sh clean
)
71 (cd gui
&& cleangettext
)
72 elif [ "$1" = "clean" ] ; then
74 rm -f Makefile.
in aclocal.
m4 config.guess config.h.
in config.sub \
75 configure depcomp install-sh ltmain.sh missing \
76 src
/Makefile.
in tools
/Makefile.
in examples
/Makefile.
in \
77 man
/Makefile.
in INSTALL config.h.
in~ compile
78 # clean up Debian build trails
80 rm -f build-arch-stamp build-indep-stamp configure-stamp \
81 debian
/barry.substvars debian
/files \
83 # clean up ctags trails
84 rm -f src
/tags tools
/tags examples
/tags \
86 opensync-plugin
/src
/tags \
87 opensync-plugin-0.4x
/src
/tags
88 elif [ "$1" = "ctags" ] ; then
89 echo "Building ctags..."
91 (cd tools
&& ctags
-R)
92 (cd examples
&& ctags
-R)
93 (cd gui
/src
&& ctags
-R)
94 if [ "$2" = "0.22" ] ; then
95 (cd opensync-plugin
/src
&& ctags
-R)
97 if [ "$2" = "0.4x" ] ; then
98 (cd opensync-plugin-0.4x
/src
&& ctags
-R)
100 # and one with everything
101 ctags
-R -f ~
/tags-barry
--tag-relative=yes
103 if [ "$2" = "0.22" ] ; then
104 # add opensync library as well (yes, I know this only works for my
105 # setup... sorry) :-)
106 #OS_DIR=~/software/opensync/svn
107 OS_DIR
=~
/software
/opensync
/0.22
108 if [ -d $OS_DIR ] ; then
109 echo "Detected 0.22 opensync source tree, building ctags on it..."
110 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
114 if [ "$2" = "0.4x" ] ; then
115 OS_DIR
=~
/software
/opensync
/git
116 if [ -d $OS_DIR ] ; then
117 echo "Detected 0.4x opensync source tree, building ctags on it..."
118 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
122 #autoreconf -if --include=config
123 #autoreconf -ifv --include=config
125 # Autogenerate the gettext PO support files
126 # Do this for ./ and gui/
128 (cd gui
&& autopoint
)
130 # If we let autoreconf do this, it will run libtoolize after
131 # creating some or all of the configure files. For example,
132 # it might copy files into ../m4 again while processing the
133 # opensync-plugin/ directory, making those files newer than
134 # the gui/configure file. This will cause configure to
135 # be regenerated (incorrectly) during the make step on some
136 # systems (Fedora 11).
138 # So... we do the libtool stuff all at once at the beginning,
141 (cd gui
&& libtoolit
m4)
142 (cd opensync-plugin
&& libtoolit
m4)
143 (cd opensync-plugin-0.4x
&& libtoolit
m4)
145 # Now for aclocal, autoheader, automake, and autoconf
147 (cd gui
&& doconf
m4)
148 (cd opensync-plugin
&& doconf
m4)
149 (cd opensync-plugin-0.4x
&& doconf
m4)