build-sys: bail out if we need to regenerate a linker script but have no ctags.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Tue, 27 Nov 2012 13:08:20 +0000 (15:08 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Tue, 27 Nov 2012 14:25:33 +0000 (16:25 +0200)
build-aux/gen-linker-script

index bb322b4..3a41950 100755 (executable)
@@ -100,6 +100,13 @@ else
     ignore_opts=""
 fi
 
+# check that we have ctags
+which ctags >& /dev/null
+if [ "$?" != "0" ]; then
+    error "Needs ctags to regenerate linker script $OUTPUT..."
+    exit 1
+fi
+
 # generate the output
 [ -n "$QUIET" ] || info "Generating linker script $OUTPUT..."
 rm -f $OUTPUT