4 # Different name on the Mac
5 libtoolize
--force --copy || glibtoolize
--force --copy
11 automake
--add-missing --copy --foreign && \
54 po
/Makevars.template \
58 po-osyncwrap
/Makefile.
in.
in \
59 po-osyncwrap
/Makevars.template \
66 # Generates the build system.
69 if [ "$1" = "cleanall" ] ; then
71 (cd gui
&& make distclean
)
72 (cd desktop
&& make distclean
)
73 (cd opensync-plugin
&& make distclean
)
74 (cd opensync-plugin-0.4x
&& make distclean
)
76 (cd gui
&& .
/buildgen.sh clean
)
77 (cd desktop
&& .
/buildgen.sh clean
)
78 (cd opensync-plugin
&& .
/buildgen.sh clean
)
79 (cd opensync-plugin-0.4x
&& .
/buildgen.sh clean
)
81 (cd gui
&& cleangettext
&& rmdir m4)
82 (cd desktop
&& cleangettext
&& rmdir m4)
83 (cd opensync-plugin
&& cleangettext
)
84 (cd opensync-plugin-0.4x
&& cleangettext
)
85 elif [ "$1" = "clean" ] ; then
87 rm -f Makefile.
in aclocal.
m4 config.guess config.h.
in config.sub \
88 configure depcomp install-sh ltmain.sh missing \
89 src
/Makefile.
in tools
/Makefile.
in examples
/Makefile.
in \
90 man
/Makefile.
in test
/Makefile.
in INSTALL config.h.
in~ compile
91 # clean up Debian build trails
93 rm -f build-arch-stamp build-indep-stamp configure-stamp \
94 debian
/barry.substvars debian
/files \
96 # clean up ctags trails
97 rm -f src
/tags tools
/tags examples
/tags \
100 opensync-plugin
/src
/tags \
101 opensync-plugin-0.4x
/src
/tags
102 elif [ "$1" = "ctags" ] ; then
103 echo "Building ctags..."
105 (cd tools
&& ctags
-R)
106 (cd examples
&& ctags
-R)
107 (cd gui
/src
&& ctags
-R)
108 (cd desktop
/src
&& ctags
-R)
109 if [ "$2" = "0.22" ] ; then
110 (cd opensync-plugin
/src
&& ctags
-R)
112 if [ "$2" = "0.4x" ] ; then
113 (cd opensync-plugin-0.4x
/src
&& ctags
-R)
115 # and one with everything
116 ctags
-R -f ~
/tags-barry
--tag-relative=yes
118 if [ "$2" = "0.22" ] ; then
119 # add opensync library as well (yes, I know this only works for my
120 # setup... sorry) :-)
121 #OS_DIR=~/software/opensync/svn
122 OS_DIR
=~
/software
/opensync
/0.22
123 if [ -d $OS_DIR ] ; then
124 echo "Detected 0.22 opensync source tree, building ctags on it..."
125 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
129 if [ "$2" = "0.4x" ] ; then
130 OS_DIR
=~
/software
/opensync
/git
/opensync
131 if [ -d $OS_DIR ] ; then
132 echo "Detected 0.4x opensync source tree, building ctags on it..."
133 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
134 (cd ~
/software
/opensync
/git
/osynctool
&& ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
138 #autoreconf -if --include=config
139 #autoreconf -ifv --include=config
141 # Autogenerate the gettext PO support files
142 # All submodules have PO support files now, so no difference
144 (cd gui
&& autopoint
)
145 (cd desktop
&& autopoint
)
146 (cd opensync-plugin
&& autopoint
)
147 (cd opensync-plugin-0.4x
&& autopoint
)
149 # If we let autoreconf do this, it will run libtoolize after
150 # creating some or all of the configure files. For example,
151 # it might copy files into ../m4 again while processing the
152 # opensync-plugin/ directory, making those files newer than
153 # the gui/configure file. This will cause configure to
154 # be regenerated (incorrectly) during the make step on some
155 # systems (Fedora 11).
157 # So... we do the libtool stuff all at once at the beginning,
160 (cd gui
&& libtoolit
m4)
161 (cd desktop
&& libtoolit
m4)
162 (cd opensync-plugin
&& libtoolit
m4)
163 (cd opensync-plugin-0.4x
&& libtoolit
m4)
165 # Now for aclocal, autoheader, automake, and autoconf
167 (cd gui
&& doconf
m4)
168 (cd desktop
&& doconf
m4)
169 (cd opensync-plugin
&& doconf
m4)
170 (cd opensync-plugin-0.4x
&& doconf
m4)