4 # Different name on the Mac
5 libtoolize
--force --copy || glibtoolize
--force --copy
11 automake
--add-missing --copy --foreign && \
52 po
/Makevars.template \
59 # Generates the build system.
62 if [ "$1" = "cleanall" ] ; then
64 (cd gui
&& make distclean
)
65 (cd desktop
&& make distclean
)
66 (cd opensync-plugin
&& make distclean
)
67 (cd opensync-plugin-0.4x
&& make distclean
)
69 (cd gui
&& .
/buildgen.sh clean
)
70 (cd desktop
&& .
/buildgen.sh clean
)
71 (cd opensync-plugin
&& .
/buildgen.sh clean
)
72 (cd opensync-plugin-0.4x
&& .
/buildgen.sh clean
)
74 (cd gui
&& cleangettext
&& rmdir m4)
75 (cd opensync-plugin
&& cleangettext
)
76 (cd opensync-plugin-0.4x
&& cleangettext
)
77 elif [ "$1" = "clean" ] ; then
79 rm -f Makefile.
in aclocal.
m4 config.guess config.h.
in config.sub \
80 configure depcomp install-sh ltmain.sh missing \
81 src
/Makefile.
in tools
/Makefile.
in examples
/Makefile.
in \
82 man
/Makefile.
in test
/Makefile.
in INSTALL config.h.
in~ compile
83 # clean up Debian build trails
85 rm -f build-arch-stamp build-indep-stamp configure-stamp \
86 debian
/barry.substvars debian
/files \
88 # clean up ctags trails
89 rm -f src
/tags tools
/tags examples
/tags \
92 opensync-plugin
/src
/tags \
93 opensync-plugin-0.4x
/src
/tags
94 elif [ "$1" = "ctags" ] ; then
95 echo "Building ctags..."
97 (cd tools
&& ctags
-R)
98 (cd examples
&& ctags
-R)
99 (cd gui
/src
&& ctags
-R)
100 (cd desktop
/src
&& ctags
-R)
101 if [ "$2" = "0.22" ] ; then
102 (cd opensync-plugin
/src
&& ctags
-R)
104 if [ "$2" = "0.4x" ] ; then
105 (cd opensync-plugin-0.4x
/src
&& ctags
-R)
107 # and one with everything
108 ctags
-R -f ~
/tags-barry
--tag-relative=yes
110 if [ "$2" = "0.22" ] ; then
111 # add opensync library as well (yes, I know this only works for my
112 # setup... sorry) :-)
113 #OS_DIR=~/software/opensync/svn
114 OS_DIR
=~
/software
/opensync
/0.22
115 if [ -d $OS_DIR ] ; then
116 echo "Detected 0.22 opensync source tree, building ctags on it..."
117 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
121 if [ "$2" = "0.4x" ] ; then
122 OS_DIR
=~
/software
/opensync
/git
/opensync
123 if [ -d $OS_DIR ] ; then
124 echo "Detected 0.4x opensync source tree, building ctags on it..."
125 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
126 (cd ~
/software
/opensync
/git
/osynctool
&& ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
130 #autoreconf -if --include=config
131 #autoreconf -ifv --include=config
133 # Autogenerate the gettext PO support files
134 # Do this for ./ and gui/
136 (cd gui
&& autopoint
)
138 # If we let autoreconf do this, it will run libtoolize after
139 # creating some or all of the configure files. For example,
140 # it might copy files into ../m4 again while processing the
141 # opensync-plugin/ directory, making those files newer than
142 # the gui/configure file. This will cause configure to
143 # be regenerated (incorrectly) during the make step on some
144 # systems (Fedora 11).
146 # So... we do the libtool stuff all at once at the beginning,
149 (cd gui
&& libtoolit
m4)
150 # note that gui gets its own m4 via autopoint, while
151 # desktop does not use it
152 (cd desktop
&& libtoolit ..
/m4)
153 # the plugins always have their own m4's
154 (cd opensync-plugin
&& libtoolit
m4)
155 (cd opensync-plugin-0.4x
&& libtoolit
m4)
157 # Now for aclocal, autoheader, automake, and autoconf
159 (cd gui
&& doconf
m4)
160 (cd desktop
&& doconf ..
/m4)
161 (cd opensync-plugin
&& doconf
m4)
162 (cd opensync-plugin-0.4x
&& doconf
m4)