Squashed 'rtengine/libraw/' content from commit cccb97647
git-subtree-dir: rtengine/libraw git-subtree-split: cccb97647fcee56801fa68231fa8a38aa8b52ef7
This commit is contained in:
16
version.sh
Executable file
16
version.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
vfile=./libraw/libraw_version.h
|
||||
|
||||
major=`grep LIBRAW_MAJOR_VERSION $vfile |head -1 | awk '{print $3}'`
|
||||
minor=`grep LIBRAW_MINOR_VERSION $vfile | head -1 | awk '{print $3}'`
|
||||
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
|
||||
echo "$major.$minor.$patch" | awk '{printf $1}'
|
||||
else
|
||||
echo "$major.$minor.$patch-$tail" | awk '{printf $1}'
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user