Add png versions of eDesklets icon
[edesklets.git] / core / autogen.sh
blob0d3ebed80909b7223d4727e715730ef0bb774a3f
1 #! /bin/sh
3 # Invoke the autotools...
5 # ./autogen.sh Should create the ./configure script
6 # ./autogen.sh --clean Should purge the whole thing
8 # The cleaning part is more complex than it should, but at least it's
9 # portable.
11 GETTEXT_H=/usr/share/gettext/gettext.h
12 PRESERVE=`(cat <<EOF
13 COPYING
14 acinclude.m4
15 autogen.sh
16 configure.in
17 Makefile.am
18 src
19 artwork
20 pot
21 EOF
24 SEDFILTER=`echo "${PRESERVE}" | sed 's/.*/\/^&$\/d/' | sed 'N;s/\n/;/'`
25 for F in `ls | sed "${SEDFILTER}"` ; do
26 echo "Removing '${F}'..."
27 rm -r ${F}
28 done
30 test "x$1" = "x--clean" && exit 0
32 for F in README NEWS AUTHORS ChangeLog ; do
33 echo "Creating empty '${F}'..."
34 echo "All details available on http://edesklets.sf.net/" > ${F}
35 done
36 sed -i 's/po\/Makefile.in//' configure.in
37 sed -i 's/config.rpath//g;s/po//g' Makefile.am
38 test -e ${GETTEXT_H} && cp ${GETTEXT_H} src/
40 set -x
41 gettextize --force --copy --no-changelog
43 cd po
44 for F in `ls ../pot/*` ; do
45 ln -f -s ${F}
46 done
48 aclocal -I m4
49 libtoolize --force
50 autoheader
51 automake --add-missing
52 autoconf