When we are compiling and we are not in a git repo, we need to
have a version number already supplied in the source.  If it is
not error out rather than generating a binary with no version.

Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
diff --git a/localversion b/localversion
index 52d9296..adb2f06 100755
--- a/localversion
+++ b/localversion
@@ -52,9 +52,14 @@ if [ "$?" -eq 0 ]; then
        fi
 
 else
+       if [ ! -f "$file" ]; then
+               echo 1>&2 "$0: ERROR: unversioned tarball"
+               echo "#error UNVERSIONED tarball" >"$file.h"
+               exit 1
+       fi
+
        # No version control, use the modification times 
        # of the source.
-
        for s in "$@"
        do
                if [ "$s" -nt "$file" ]; then

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to