summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/mkversion.c
blob: 0d96aa3569e0790aa5110ed4f6ab73de0eaf0389 (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);
}