Code

po: update Czech translation
[ncmpc.git] / autogen.sh
index df0e774b6d45c536bf006f24dbf9ad222b053c98..baee6c3e6971398a329e2f0af4a039d506e1e970 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
-
-# rerun libtoolize
-echo "libtoolize..."
-libtoolize --force
+aclocal -I m4
 
 # This generates the configure script from configure.in
 echo "autoconf..."
@@ -25,5 +23,7 @@ automake --add-missing
 
 
 # configure
-echo "./configure $*"
-./configure $*
+if test x$NOCONFIGURE = x; then
+       echo "./configure $*"
+       ./configure $*
+fi