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