Code

utils: move format_duration_*() to time_format.c
[ncmpc.git] / autogen.sh
index 4c02b8af463ab88e6035d09fd582d2daf12dc9b4..a639131d8aad119c586b9d2d549c1d6522896544 100755 (executable)
@@ -1,16 +1,14 @@
-#! /bin/sh
+#!/bin/sh -e
 
-# Generate config.h.in
-echo "touch stamp-h"
-touch stamp-h
+rm -rf config.cache build
+mkdir build
+
+# create po/Makefile.in.in
+glib-gettextize --force --copy
 
 # add aclocal.m4 to current dir
 echo "aclocal..."
-aclocal -I $PWD/m4
-
-# rerun libtoolize
-echo "libtoolize..."
-libtoolize --force
+aclocal -I m4
 
 # This generates the configure script from configure.in
 echo "autoconf..."
@@ -21,7 +19,7 @@ autoheader
 
 # Generate Makefile.in from Makefile.am
 echo "automake..."
-automake --add-missing
+automake --add-missing $AUTOMAKE_FLAGS
 
 
 # configure