4 # Different name on the Mac
5 libtoolize
--force --copy || glibtoolize
--force --copy
11 automake
--add-missing --copy --foreign && \
18 gui
/po
/Makefile.
in.
in \
19 gui
/po
/Makevars.template \
57 po
/Makevars.template \
63 # Generates the build system.
66 if [ "$1" = "cleanall" ] ; then
68 (cd gui
&& make distclean
)
69 (cd opensync-plugin
&& make distclean
)
70 (cd opensync-plugin-0.4x
&& make distclean
)
72 (cd gui
&& .
/buildgen.sh clean
)
73 (cd opensync-plugin
&& .
/buildgen.sh clean
)
74 (cd opensync-plugin-0.4x
&& .
/buildgen.sh clean
)
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 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 \
90 opensync-plugin
/src
/tags \
91 opensync-plugin-0.4x
/src
/tags
92 elif [ "$1" = "ctags" ] ; then
93 echo "Building ctags..."
95 (cd tools
&& ctags
-R)
96 (cd examples
&& ctags
-R)
97 (cd gui
/src
&& ctags
-R)
98 if [ "$2" = "0.22" ] ; then
99 (cd opensync-plugin
/src
&& ctags
-R)
101 if [ "$2" = "0.4x" ] ; then
102 (cd opensync-plugin-0.4x
/src
&& ctags
-R)
104 # and one with everything
105 ctags
-R -f ~
/tags-barry
--tag-relative=yes
107 if [ "$2" = "0.22" ] ; then
108 # add opensync library as well (yes, I know this only works for my
109 # setup... sorry) :-)
110 #OS_DIR=~/software/opensync/svn
111 OS_DIR
=~
/software
/opensync
/0.22
112 if [ -d $OS_DIR ] ; then
113 echo "Detected 0.22 opensync source tree, building ctags on it..."
114 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
118 if [ "$2" = "0.4x" ] ; then
119 OS_DIR
=~
/software
/opensync
/git
120 if [ -d $OS_DIR ] ; then
121 echo "Detected 0.4x opensync source tree, building ctags on it..."
122 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
126 #autoreconf -if --include=config
127 #autoreconf -ifv --include=config
129 # Autogenerate the gettext PO support files
130 # Do this for ./ and gui/ and then zap the gui/m4 directory
132 (cd gui
&& autopoint
)
135 # If we let autoreconf do this, it will run libtoolize after
136 # creating some or all of the configure files. For example,
137 # it might copy files into ../m4 again while processing the
138 # opensync-plugin/ directory, making those files newer than
139 # the gui/configure file. This will cause configure to
140 # be regenerated (incorrectly) during the make step on some
141 # systems (Fedora 11).
143 # So... we do the libtool stuff all at once at the beginning,
146 (cd gui
&& libtoolit ..
/m4)
147 (cd opensync-plugin
&& libtoolit ..
/m4)
148 (cd opensync-plugin-0.4x
&& libtoolit ..
/m4)
150 # Now for aclocal, autoheader, automake, and autoconf
152 (cd gui
&& doconf ..
/m4)
153 (cd opensync-plugin
&& doconf ..
/m4)
154 (cd opensync-plugin-0.4x
&& doconf ..
/m4)