]> xenbits.xensource.com Git - people/andrewcoop/hwloc.git/commitdiff
tests/embedded: improve version extraction
authorJeff Squyres <jsquyres@cisco.com>
Thu, 3 Oct 2013 14:27:25 +0000 (10:27 -0400)
committerJeff Squyres <jsquyres@cisco.com>
Thu, 3 Oct 2013 14:27:25 +0000 (10:27 -0400)
Avoid troubles when the tarball name contains another instance of 'tar'.

tests/embedded/run-embedded-tests.sh

index 67bfe47cf30af15d2ef1d72720aa763ddacd31be..0e59902031e09a5526ac85b24a5c6b0bf0872597 100755 (executable)
@@ -74,7 +74,7 @@ do_build() {
 print Got tarball: $tarball
 
 # Get the version
-ver=`echo $tarball | sed -e 's/^.*hwloc-//' -e 's/.tar.*$//'`
+ver=`echo $tarball | sed -e 's/^.*hwloc-//' -e 's/\.tar\..*$//'`
 print Got version: $ver
 
 # Extract