Skip to content

Commit

Permalink
If there are no conflicts, do not output version numbers
Browse files Browse the repository at this point in the history
"Rule of Silence: When a program has nothing surprising to say, it
 should say nothing."
  • Loading branch information
spiiroin committed Jun 3, 2013
1 parent b9d9c8a commit 9114c42
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions verify_version
Expand Up @@ -5,18 +5,12 @@
MAK_PATH=Makefile
MAK_VERS=$(grep '^VERSION.*:=' $MAK_PATH |sed -e 's/^.*:=[[:space:]]*//')

echo >&2 "$MAK_VERS <-- $MAK_PATH"

DEB_PATH=debian/changelog
DEB_VERS=$(head -1 $DEB_PATH | sed -e 's/^.*(//' -e 's/).*$//')

echo >&2 "$DEB_VERS <-- $DEB_PATH"

RPM_PATH=${RPM_SOURCE_DIR:-rpm}/${RPM_PACKAGE_NAME:-mce}.spec
RPM_VERS=$(grep '^Version:' $RPM_PATH |sed -e 's/^.*:[[:space:]]*//')

echo >&2 "$RPM_VERS <-- $RPM_PATH"

RES=0

if [ "$DEB_VERS" != "$MAK_VERS" ]; then
Expand Down

0 comments on commit 9114c42

Please sign in to comment.