summaryrefslogtreecommitdiff
path: root/cmd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cmd.sh')
-rwxr-xr-xcmd.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmd.sh b/cmd.sh
new file mode 100755
index 0000000..ed887f3
--- /dev/null
+++ b/cmd.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+(
+ echo // Code generated by cmd.sh. DO NOT EDIT.
+ echo
+ echo package mt
+ echo
+ awk '{ print "func (*ToClt"$2") cmd() {}" }' tocltcmds
+ echo
+ awk '{ print "func (*ToSrv"$2") cmd() {}" }' tosrvcmds
+) | gofmt >cmd.go