From 797805abe491d84fdcc6311643431c3f587b96eb Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 14 Mar 2012 11:29:27 +0000 Subject: [PATCH] Renamed --- id-deb-build/check-for-dummies.sh | 27 --------------------------- id-deb-build/check-versions.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 27 deletions(-) delete mode 100755 id-deb-build/check-for-dummies.sh create mode 100755 id-deb-build/check-versions.sh diff --git a/id-deb-build/check-for-dummies.sh b/id-deb-build/check-for-dummies.sh deleted file mode 100755 index d40ef11..0000000 --- a/id-deb-build/check-for-dummies.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -DEBCHANGELOG=debian/changelog -if test ! -f $DEBCHANGELOG; then - echo "$DEBCHANGELOG missing" - echo "The current directory should be base source of package" - exit 1 -fi -l=`head -1 $DEBCHANGELOG` -PROD=`echo $l|sed 's/ .*//g'` -DEB_VERSION=`echo $l|sed 's/.*(//g'|sed 's/).*//g'` -echo "VERSION=$DEB_VERSION" -MAJOR=`echo $DEB_VERSION|sed 's/-.*//g'` -echo "MAJOR=$MAJOR" -MINOR=`echo $DEB_VERSION|sed 's/.*-//g'` -echo "MINOR=$MINOR" - -. IDMETA - -if [ "$VERSION" != "$MAJOR" ] ; then - echo "$VERSION != $MAJOR" - exit 1; -fi -# Local Variables: -# mode:shell-script -# sh-indentation: 2 -# sh-basic-offset: 8 -# End: diff --git a/id-deb-build/check-versions.sh b/id-deb-build/check-versions.sh new file mode 100755 index 0000000..191148e --- /dev/null +++ b/id-deb-build/check-versions.sh @@ -0,0 +1,27 @@ +#!/bin/sh +DEBCHANGELOG=debian/changelog +if test ! -f $DEBCHANGELOG; then + echo "$DEBCHANGELOG missing" + echo "The current directory should be base source of package" + exit 1 +fi +l=`head -1 $DEBCHANGELOG` +PROD=`echo $l|sed 's/ .*//g'` +DEB_VERSION=`echo $l|sed 's/.*(//g'|sed 's/).*//g'` +echo "VERSION=$DEB_VERSION" +MAJOR=`echo $DEB_VERSION|sed 's/-.*//g'` +echo "MAJOR=$MAJOR" +MINOR=`echo $DEB_VERSION|sed 's/.*-//g'` +echo "MINOR=$MINOR" + +. ./IDMETA + +if [ "$VERSION" != "$MAJOR" ] ; then + echo "$VERSION != $MAJOR" + exit 1; +fi +# Local Variables: +# mode:shell-script +# sh-indentation: 2 +# sh-basic-offset: 8 +# End: -- 1.7.10.4