[arch-projects] [namcap][PATCH 1/4] Remove obsolete version test

Rikard Falkeborn rikard.falkeborn at gmail.com
Thu Jul 16 07:15:05 UTC 2015


This file has not been updated since version 2.3, and noone seems
to care about it. Remove it.
---
 tests/version-check | 26 --------------------------
 1 file changed, 26 deletions(-)
 delete mode 100755 tests/version-check

diff --git a/tests/version-check b/tests/version-check
deleted file mode 100755
index 3edb4ac..0000000
--- a/tests/version-check
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-# This file is part of the namcap test suite.
-# It checks whether the version in namcap is the
-# same throughout the program and documentation.
-# Author: Abhishek Dasgupta <abhidg at gmail.com>
-# License: GPL
-
-VERSION=2.3
-
-die() {	echo "$1"; exit 1; }
-
-setup_version() {
-   grep version ../setup.py | awk -F '=' '{print $2}' | sed "s/\"//g;s/,//g"
-}
-
-manpage_version() {
-    head -n 1 ../namcap.1 | awk -F '\"' '{print $4}' | awk '{print $2}'
-}
-
-if [ "$VERSION" != "$(setup_version)" ]; then
-    die "setup.py version not updated to $VERSION."
-fi
-
-if [ "$VERSION" != "$(manpage_version)" ]; then
-    die "Manual page version not updated to $VERSION."
-fi
-- 
2.4.6


More information about the arch-projects mailing list