~phablet-team/libiphb/master

« back to all changes in this revision

Viewing changes to verify_version.sh

  • Committer: Islam Amer
  • Date: 2013-06-02 18:22:34 UTC
  • Revision ID: git-v1:92dce478aba996d4014ef396cdfc9ce05d6b1e10
Tags: libiphb/1.0.0
[packaging] fix verify_version.sh to work with standard locations

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
AC_PATH=configure.ac
6
6
AC_VERS=$(sed '/AC_INIT/!d; s/AC_INIT(libiphb, \(.*\))/\1/' $AC_PATH)
7
7
 
8
 
RPM_PATH=rpm/libiphb.spec
 
8
RPM_PATH=${RPM_SOURCE_DIR:-rpm}/${RPM_PACKAGE_NAME:-libiphb}.spec
9
9
RPM_VERS=$(grep '^Version:' $RPM_PATH |sed -e 's/^.*:[[:space:]]*//')
10
10
 
11
 
YAML_PATH=rpm/libiphb.yaml
 
11
YAML_PATH=${RPM_SOURCE_DIR:-rpm}/${RPM_PACKAGE_NAME:-libiphb}.yaml
12
12
YAML_VERS=$(grep '^Version:' $YAML_PATH |sed -e 's/^.*:[[:space:]]*//')
13
13
 
14
14
RES=0