site: end of line message, adesklets is not dead.
[adesklets.git] / autogen.sh
blobbb10a7826acd2871fe7d8af2c2239fae23b3922d
1 #! /bin/sh
3 # __very__ minimal autogen script
5 # Helper functions
7 log() {
8 echo "+ $*"
9 eval $*
10 return $?
13 msg() {
14 shopt -s xpg_echo > /dev/null 2>&1
15 SEP='----------------------------------------------------------------------'
16 echo "${SEP}\n$*\n${SEP}"
19 # Now, perform the operation
21 msg "This is just an ordered invokation of the right autotools...\n\
22 If you do not have what it takes, you are on your own (see the doc)!"
24 log aclocal && \
25 log autoheader && \
26 log automake && \
27 log autoconf
28 STATUS=$?
29 log touch scripting/enums scripting/prototypes
31 if test ${STATUS} -eq 0 ; then
32 msg "That's all folk! See \`./configure --help'.\n\n\
33 From a freshly extracted code from the development repository, don't\n\
34 forget to use --enable-maintainer-mode, at least for the first build.\n"
35 else
36 msg "An error occured: autogen.sh failed."