Bump to 5.2.1
[platform/upstream/giflib.git] / getversion
1 #!/bin/sh
2 #
3 # getversion - get the librarty version by analyzing its header
4 #
5 # Done this way so there's a single point of truth about the version.
6 #
7 MAJOR=`sed <gif_lib.h -n -e "/MAJOR/s/#define GIFLIB_MAJOR  *//p"`
8 MINOR=`sed <gif_lib.h -n -e "/MINOR/s/#define GIFLIB_MINOR  *//p"`
9 RELEASE=`sed <gif_lib.h -n -e "/RELEASE/s/#define GIFLIB_RELEASE  *//p"`
10 echo ${MAJOR}.${MINOR}.${RELEASE}