aboutsummaryrefslogtreecommitdiffstats
path: root/bs/pkginfo-header.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbs/pkginfo-header.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/bs/pkginfo-header.sh b/bs/pkginfo-header.sh
new file mode 100755
index 000000000..0d5e4059d
--- /dev/null
+++ b/bs/pkginfo-header.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+# basic package info:
+. bs/pkginfo.sh
+cat <<EOF
+/* Basic package info: */
+#define PACKAGE "$p"
+#define VERSION "$v"
+#define PACKAGE_BUGREPORT "$b"
+#define PACKAGE_NAME "$p"
+#define PACKAGE_STRING "$p $v"
+#define PACKAGE_TARNAME "$p"
+#define PACKAGE_VERSION "$v"
+#define PROTOCOL_VERSION "$pv"
+
+EOF
+