summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/mkversion.c
blob: 9790d3f093f9c539b88d1be57d1a3d33bfdad34c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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"
	"const theGoarch = \"%s\"\n"
	"const theGoos = \"%s\"\n";

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