#!/bin/sh
# Print a version string.
-scriptversion=2010-12-30.20; # UTC
+scriptversion=2011-01-02.18; # UTC
# Copyright (C) 2007-2010 Free Software Foundation, Inc.
#
# then try "git describe", then default.
if test -f $tarball_version_file
then
- v=`cat $tarball_version_file` || exit 1
+ v=`cat $tarball_version_file 2>&1` || {
+ echo "$0 error: unreadable tarball version file $1: $v" >&2
+ exit 1
+ }
case $v in
*$nl*) v= ;; # reject multi-line output
[0-9]*) ;;