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 desktop
&& make distclean
)
65 (cd opensync-plugin
&& make distclean
)
66 (cd opensync-plugin-0.4x
&& make distclean
)
68 (cd gui
&& .
/buildgen.sh clean
)
69 (cd desktop
&& .
/buildgen.sh clean
)
70 (cd opensync-plugin
&& .
/buildgen.sh clean
)
71 (cd opensync-plugin-0.4x
&& .
/buildgen.sh clean
)
73 (cd gui
&& cleangettext
&& rmdir m4)
74 (cd opensync-plugin
&& cleangettext
)
75 (cd opensync-plugin-0.4x
&& cleangettext
)
76 elif [ "$1" = "clean" ] ; then
78 rm -f Makefile.
in aclocal.
m4 config.guess config.h.
in config.sub \
79 configure depcomp install-sh ltmain.sh missing \
80 src
/Makefile.
in tools
/Makefile.
in examples
/Makefile.
in \
81 man
/Makefile.
in test
/Makefile.
in INSTALL config.h.
in~ compile
82 # clean up Debian build trails
84 rm -f build-arch-stamp build-indep-stamp configure-stamp \
85 debian
/barry.substvars debian
/files \
87 # clean up ctags trails
88 rm -f src
/tags tools
/tags examples
/tags \
91 opensync-plugin
/src
/tags \
92 opensync-plugin-0.4x
/src
/tags
93 elif [ "$1" = "ctags" ] ; then
94 echo "Building ctags..."
96 (cd tools
&& ctags
-R)
97 (cd examples
&& ctags
-R)
98 (cd gui
/src
&& ctags
-R)
99 (cd desktop
/src
&& ctags
-R)
100 if [ "$2" = "0.22" ] ; then
101 (cd opensync-plugin
/src
&& ctags
-R)
103 if [ "$2" = "0.4x" ] ; then
104 (cd opensync-plugin-0.4x
/src
&& ctags
-R)
106 # and one with everything
107 ctags
-R -f ~
/tags-barry
--tag-relative=yes
109 if [ "$2" = "0.22" ] ; then
110 # add opensync library as well (yes, I know this only works for my
111 # setup... sorry) :-)
112 #OS_DIR=~/software/opensync/svn
113 OS_DIR
=~
/software
/opensync
/0.22
114 if [ -d $OS_DIR ] ; then
115 echo "Detected 0.22 opensync source tree, building ctags on it..."
116 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
120 if [ "$2" = "0.4x" ] ; then
121 OS_DIR
=~
/software
/opensync
/git
122 if [ -d $OS_DIR ] ; then
123 echo "Detected 0.4x opensync source tree, building ctags on it..."
124 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
128 #autoreconf -if --include=config
129 #autoreconf -ifv --include=config
131 # Autogenerate the gettext PO support files
132 # Do this for ./ and gui/
134 (cd gui
&& autopoint
)
136 # If we let autoreconf do this, it will run libtoolize after
137 # creating some or all of the configure files. For example,
138 # it might copy files into ../m4 again while processing the
139 # opensync-plugin/ directory, making those files newer than
140 # the gui/configure file. This will cause configure to
141 # be regenerated (incorrectly) during the make step on some
142 # systems (Fedora 11).
144 # So... we do the libtool stuff all at once at the beginning,
147 (cd gui
&& libtoolit
m4)
148 # note that gui gets its own m4 via autopoint, while
149 # desktop does not use it
150 (cd desktop
&& libtoolit ..
/m4)
151 # the plugins always have their own m4's
152 (cd opensync-plugin
&& libtoolit
m4)
153 (cd opensync-plugin-0.4x
&& libtoolit
m4)
155 # Now for aclocal, autoheader, automake, and autoconf
157 (cd gui
&& doconf
m4)
158 (cd desktop
&& doconf ..
/m4)
159 (cd opensync-plugin
&& doconf
m4)
160 (cd opensync-plugin-0.4x
&& doconf
m4)