summaryrefslogtreecommitdiff
path: root/plan9/fndvers
diff options
context:
space:
mode:
Diffstat (limited to 'plan9/fndvers')
-rw-r--r--plan9/fndvers9
1 files changed, 9 insertions, 0 deletions
diff --git a/plan9/fndvers b/plan9/fndvers
new file mode 100644
index 0000000000..c45c42bdf9
--- /dev/null
+++ b/plan9/fndvers
@@ -0,0 +1,9 @@
+#!/bin/rc
+
+. plan9/buildinfo
+
+ed config.plan9 <<!
+g/_P9P_VERSION/s//$p9pvers/g
+g/_P9P_OBJTYPE/s//$objtype/g
+w $1
+!