summaryrefslogtreecommitdiff
path: root/devel/libpgm/patches/patch-ag
blob: e39c76abee9f5b0605e20d1a9d42e35b8716a931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-ag,v 1.1.1.1 2011/12/02 05:25:12 agc Exp $

quick and dirty script to make version.c, gets around python dependency

--- /dev/null	2011-12-01 18:44:19.000000000 -0800
+++ mkversion	2011-12-01 18:32:59.000000000 -0800
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+d=`date +%Y-%m-%d`
+t=`date +%H:%M:%S`
+os=`uname -s`
+mach=`uname -m`
+cat >> version.c << EOF
+#include <impl/framework.h>
+#include <pgm/version.h>
+
+/* globals */
+
+const unsigned pgm_major_version = 5;
+const unsigned pgm_minor_version = 1;
+const unsigned pgm_micro_version = 118;
+const char* pgm_build_date = "${d}";
+const char* pgm_build_time = "${t}";
+const char* pgm_build_system = "${os}";
+const char* pgm_build_machine = "${mach}";
+const char* pgm_build_revision = "1369";
+
+/* eof */
+EOF