Rename OpCreateInstance and LUCreateInstance
[ganeti-local] / autotools / check-version
index 1a2e2b3..be7ecef 100755 (executable)
@@ -24,6 +24,7 @@ set -e
 shopt -s extglob
 
 readonly version=$1
+readonly newsfile=$2
 readonly numpat='+([0-9])'
 
 case "$version" in
@@ -39,9 +40,9 @@ case "$version" in
   ;;
 esac
 
-readonly newsver="Version ${version/~/}"
+readonly newsver="Version ${version/\~/ }"
 
-if ! grep -q -x "$newsver" NEWS
+if ! grep -q -x "$newsver" $newsfile
 then
   echo "Unable to find heading '$newsver' in NEWS" >&2
   exit 1