4 libtoolize
--force --copy
10 automake
--add-missing --copy --foreign && \
17 gui
/po
/Makefile.
in.
in \
18 gui
/po
/Makevars.template \
51 po
/Makevars.template \
57 # Generates the build system.
60 if [ "$1" = "cleanall" ] ; then
62 (cd gui
&& make distclean
)
63 (cd opensync-plugin
&& make distclean
)
64 (cd opensync-plugin-0.4x
&& make distclean
)
66 (cd gui
&& .
/buildgen.sh clean
)
67 (cd opensync-plugin
&& .
/buildgen.sh clean
)
68 (cd opensync-plugin-0.4x
&& .
/buildgen.sh clean
)
70 elif [ "$1" = "clean" ] ; then
72 rm -f Makefile.
in aclocal.
m4 config.guess config.h.
in config.sub \
73 configure depcomp install-sh ltmain.sh missing \
74 src
/Makefile.
in tools
/Makefile.
in examples
/Makefile.
in \
75 man
/Makefile.
in INSTALL config.h.
in~ compile
76 # clean up Debian build trails
78 rm -f build-arch-stamp build-indep-stamp configure-stamp \
79 debian
/barry.substvars debian
/files \
81 # clean up ctags trails
82 rm -f src
/tags tools
/tags examples
/tags \
84 opensync-plugin
/src
/tags \
85 opensync-plugin-0.4x
/src
/tags
86 elif [ "$1" = "ctags" ] ; then
87 echo "Building ctags..."
89 (cd tools
&& ctags
-R)
90 (cd examples
&& ctags
-R)
91 (cd gui
/src
&& ctags
-R)
92 if [ "$2" = "0.22" ] ; then
93 (cd opensync-plugin
/src
&& ctags
-R)
95 if [ "$2" = "0.4x" ] ; then
96 (cd opensync-plugin-0.4x
/src
&& ctags
-R)
98 # and one with everything
99 ctags
-R -f ~
/tags-barry
--tag-relative=yes
101 if [ "$2" = "0.22" ] ; then
102 # add opensync library as well (yes, I know this only works for my
103 # setup... sorry) :-)
104 #OS_DIR=~/software/opensync/svn
105 OS_DIR
=~
/software
/opensync
/0.22
106 if [ -d $OS_DIR ] ; then
107 echo "Detected 0.22 opensync source tree, building ctags on it..."
108 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
112 if [ "$2" = "0.4x" ] ; then
113 OS_DIR
=~
/software
/opensync
/git
114 if [ -d $OS_DIR ] ; then
115 echo "Detected 0.4x opensync source tree, building ctags on it..."
116 (cd $OS_DIR && ctags
-R -a -f ~
/tags-barry
--tag-relative=yes)
120 #autoreconf -if --include=config
121 #autoreconf -ifv --include=config
123 # Autogenerate the gettext PO support files
124 # Do this for ./ and gui/ and then zap the gui/m4 directory
126 (cd gui
&& autopoint
)
129 # If we let autoreconf do this, it will run libtoolize after
130 # creating some or all of the configure files. For example,
131 # it might copy files into ../m4 again while processing the
132 # opensync-plugin/ directory, making those files newer than
133 # the gui/configure file. This will cause configure to
134 # be regenerated (incorrectly) during the make step on some
135 # systems (Fedora 11).
137 # So... we do the libtool stuff all at once at the beginning,
140 (cd gui
&& libtoolit ..
/m4)
141 (cd opensync-plugin
&& libtoolit ..
/m4)
142 (cd opensync-plugin-0.4x
&& libtoolit ..
/m4)
144 # Now for aclocal, autoheader, automake, and autoconf
146 (cd gui
&& doconf ..
/m4)
147 (cd opensync-plugin
&& doconf ..
/m4)
148 (cd opensync-plugin-0.4x
&& doconf ..
/m4)