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 desktop
&& cleangettext
&& rmdir m4)
76 (cd opensync-plugin
&& cleangettext
)
77 (cd opensync-plugin-0.4x
&& cleangettext
)
78 elif [ "$1" = "clean" ] ; then
80 rm -f Makefile.
in aclocal.
m4 config.guess config.h.
in config.sub \
81 configure depcomp install-sh ltmain.sh missing \
82 src
/Makefile.
in tools
/Makefile.
in examples
/Makefile.
in \
83 man
/Makefile.
in test
/Makefile.
in INSTALL config.h.
in~ compile
84 # clean up Debian build trails
86 rm -f build-arch-stamp build-indep-stamp configure-stamp \
87 debian
/barry.substvars debian
/files \
89 # clean up ctags trails
90 rm -f src
/tags tools
/tags examples
/tags \
93 opensync-plugin
/src
/tags \
94 opensync-plugin-0.4x
/src
/tags
95 elif [ "$1" = "ctags" ] ; then
96 echo "Building ctags..."
98 (cd tools
&& ctags
-R)
99 (cd examples
&& ctags
-R)
100 (cd gui
/src
&& ctags
-R)
101 (cd desktop
/src
&& ctags
-R)
102 if [ "$2" = "0.22" ] ; then
103 (cd opensync-plugin
/src
&& ctags
-R)
105 if [ "$2" = "0.4x" ] ; then
106 (cd opensync-plugin-0.4x
/src
&& ctags
-R)
108 # and one with everything
109 ctags
-R -f ~
/tags-barry
--tag-relative=yes
111 if [ "$2" = "0.22" ] ; then
112 # add opensync library as well (yes, I know this only works for my
113 # setup... sorry) :-)
114 #OS_DIR=~/software/opensync/svn
115 OS_DIR
=~
/software
/opensync
/0.22
116 if [ -d $OS_DIR ] ; then
117 echo "Detected 0.22 opensync source tree, building ctags on it..."
118 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
122 if [ "$2" = "0.4x" ] ; then
123 OS_DIR
=~
/software
/opensync
/git
/opensync
124 if [ -d $OS_DIR ] ; then
125 echo "Detected 0.4x opensync source tree, building ctags on it..."
126 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
127 (cd ~
/software
/opensync
/git
/osynctool
&& ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
131 #autoreconf -if --include=config
132 #autoreconf -ifv --include=config
134 # Autogenerate the gettext PO support files
135 # Do this for ./ and gui/ and desktop/
137 (cd gui
&& autopoint
)
138 (cd desktop
&& autopoint
)
140 # If we let autoreconf do this, it will run libtoolize after
141 # creating some or all of the configure files. For example,
142 # it might copy files into ../m4 again while processing the
143 # opensync-plugin/ directory, making those files newer than
144 # the gui/configure file. This will cause configure to
145 # be regenerated (incorrectly) during the make step on some
146 # systems (Fedora 11).
148 # So... we do the libtool stuff all at once at the beginning,
151 (cd gui
&& libtoolit
m4)
152 (cd desktop
&& libtoolit
m4)
153 (cd opensync-plugin
&& libtoolit
m4)
154 (cd opensync-plugin-0.4x
&& libtoolit
m4)
156 # Now for aclocal, autoheader, automake, and autoconf
158 (cd gui
&& doconf
m4)
159 (cd desktop
&& doconf
m4)
160 (cd opensync-plugin
&& doconf
m4)
161 (cd opensync-plugin-0.4x
&& doconf
m4)