Skip to content

Commit

Permalink
Remove configure dependency on nonstandard echo -n, using awk
Browse files Browse the repository at this point in the history
  • Loading branch information
phries committed Nov 30, 2014
1 parent eb10134 commit 5104cf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shlib-version.sh
Expand Up @@ -6,6 +6,6 @@ major=`grep LIBRAW_SHLIB_CURRENT $vfile |head -1 | awk '{print $3}'`
minor=`grep LIBRAW_SHLIB_REVISION $vfile | head -1 | awk '{print $3}'`
patch=`grep LIBRAW_SHLIB_AGE $vfile | head -1 | awk '{print $3}'`

printf "$major:$minor:$patch"
echo "$major:$minor:$patch" | awk '{printf $1}'


4 changes: 2 additions & 2 deletions version.sh
Expand Up @@ -8,9 +8,9 @@ patch=`grep LIBRAW_PATCH_VERSION $vfile | head -1 | awk '{print $3}'`
tail=`grep LIBRAW_VERSION_TAIL $vfile | head -1 | awk '{print $3}'`

if [ x$tail = xRelease ] ; then
printf "$major.$minor.$patch"
echo "$major.$minor.$patch" | awk '{printf $1}'
else
printf "$major.$minor.$patch-$tail"
echo "$major.$minor.$patch-$tail" | awk '{printf $1}'
fi


0 comments on commit 5104cf0

Please sign in to comment.