Files
arcs/arcs-sdk/modules/giflib/getversion
2026-08-13 16:50:52 +08:00

11 lines
391 B
Bash
Executable File

#!/bin/sh
#
# getversion - get the librarty version by analyzing its header
#
# Done this way so there's a single point of truth about the version.
#
MAJOR=`sed <gif_lib.h -n -e "/MAJOR/s/#define GIFLIB_MAJOR *//p"`
MINOR=`sed <gif_lib.h -n -e "/MINOR/s/#define GIFLIB_MINOR *//p"`
RELEASE=`sed <gif_lib.h -n -e "/RELEASE/s/#define GIFLIB_RELEASE *//p"`
echo ${MAJOR}.${MINOR}.${RELEASE}