aboutsummaryrefslogtreecommitdiff
path: root/freetype/version.sed
diff options
context:
space:
mode:
Diffstat (limited to 'freetype/version.sed')
-rw-r--r--freetype/version.sed5
1 files changed, 5 insertions, 0 deletions
diff --git a/freetype/version.sed b/freetype/version.sed
new file mode 100644
index 000000000..c281ff506
--- /dev/null
+++ b/freetype/version.sed
@@ -0,0 +1,5 @@
+#! /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