summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/mkversion.c
blob: 56afa1892ed003b4197c1895e80bd538f4f90993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <u.h>
#include <libc.h>

char *template =
	"// generated by mkversion.c; do not edit.\n"
	"package runtime\n"
	"const defaultGoroot = \"%s\"\n"
	"const theVersion = \"%s\"\n";

void
main(void)
{
	print(template, getgoroot(), getgoversion());
	exits(0);
}