misc/libfreetype/version.sed
author unc0rr
Mon, 30 Apr 2012 23:35:40 +0400
changeset 6967 1224c6fb36c3
parent 5172 88f2e05288ba
permissions -rw-r--r--
Support recurrent function calls. The code is kinda hackish and ugly, but I really spent a few hours thinking on a good solution.

#! /usr/bin/sed -nf

s/^#define  *FREETYPE_MAJOR  *\([^ ][^ ]*\).*$/freetype_major="\1" ;/p
s/^#define  *FREETYPE_MINOR  *\([^ ][^ ]*\).*$/freetype_minor=".\1" ;/p
s/^#define  *FREETYPE_PATCH  *\([^ ][^ ]*\).*$/freetype_patch=".\1" ;/p