Whamcloud - gitweb
LU-1199 build: Refactor ldiskfs's build system
[fs/lustre-release.git] / ldiskfs / autogen.sh
index d763634..feb9f47 100644 (file)
@@ -1,2 +1,18 @@
-#!/bin/bash
-exec bash build/autogen.sh $@ 
+#!/bin/sh
+
+# NOTE: Please avoid bashisms (bash specific syntax) in this script
+
+# enable execution tracing
+set -x
+
+error()
+{
+       rc=$?
+       echo "$1 failed (rc=$rc).  Aborting."
+       exit 1
+}
+
+aclocal -I $PWD/config || error "aclocal"
+autoheader || error "autoheader"
+automake -a -c -W no-portability || error "automake"
+autoconf || error "autoconf"