Don't needlessly change source files every time.

This commit is contained in:
Andrew Gallant 2013-08-11 20:45:36 -04:00 committed by Přemysl Janouch
parent 0685fb57e1
commit b06a8ca976
Signed by: p
GPG Key ID: A0420B94F92B9493
29 changed files with 30 additions and 118 deletions

View File

@ -1,10 +1,7 @@
// Package bigreq is the X client API for the BIG-REQUESTS extension.
package bigreq
/*
This file was generated by bigreq.xml on Aug 11 2013 8:39:42pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from bigreq.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package composite is the X client API for the Composite extension.
package composite
/*
This file was generated by composite.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from composite.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package damage is the X client API for the DAMAGE extension.
package damage
/*
This file was generated by damage.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from damage.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package dpms is the X client API for the DPMS extension.
package dpms
/*
This file was generated by dpms.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from dpms.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package dri2 is the X client API for the DRI2 extension.
package dri2
/*
This file was generated by dri2.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from dri2.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package ge is the X client API for the Generic Event Extension extension.
package ge
/*
This file was generated by ge.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from ge.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package glx is the X client API for the GLX extension.
package glx
/*
This file was generated by glx.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from glx.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package randr is the X client API for the RANDR extension.
package randr
/*
This file was generated by randr.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from randr.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package record is the X client API for the RECORD extension.
package record
/*
This file was generated by record.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from record.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package render is the X client API for the RENDER extension.
package render
/*
This file was generated by render.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from render.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package res is the X client API for the X-Resource extension.
package res
/*
This file was generated by res.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from res.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package screensaver is the X client API for the MIT-SCREEN-SAVER extension.
package screensaver
/*
This file was generated by screensaver.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from screensaver.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package shape is the X client API for the SHAPE extension.
package shape
/*
This file was generated by shape.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from shape.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package shm is the X client API for the MIT-SHM extension.
package shm
/*
This file was generated by shm.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from shm.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package sync is the X client API for the SYNC extension.
package sync
/*
This file was generated by sync.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from sync.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xcmisc is the X client API for the XC-MISC extension.
package xcmisc
/*
This file was generated by xc_misc.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xc_misc.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xevie is the X client API for the XEVIE extension.
package xevie
/*
This file was generated by xevie.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xevie.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xf86dri is the X client API for the XFree86-DRI extension.
package xf86dri
/*
This file was generated by xf86dri.xml on Aug 11 2013 8:39:43pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xf86dri.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xf86vidmode is the X client API for the XFree86-VidModeExtension extension.
package xf86vidmode
/*
This file was generated by xf86vidmode.xml on Aug 11 2013 8:39:44pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xf86vidmode.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xfixes is the X client API for the XFIXES extension.
package xfixes
/*
This file was generated by xfixes.xml on Aug 11 2013 8:39:44pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xfixes.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -6,7 +6,6 @@ import (
"fmt"
"log"
"sort"
"time"
)
// Context represents the protocol we're converting to Go, and a writer
@ -56,11 +55,8 @@ func (c *Context) Morph(xmlBytes []byte) {
c.protocol.PkgName(), c.protocol.ExtXName)
c.Putln("package %s", c.protocol.PkgName())
c.Putln("")
c.Putln("/*")
c.Putln("\tThis file was generated by %s.xml on %s.",
c.protocol.Name, time.Now().Format("Jan 2 2006 3:04:05pm MST"))
c.Putln("\tThis file is automatically generated. Edit at your peril!")
c.Putln("*/")
c.Putln("// This file is automatically generated from %s.xml. "+
"Edit at your peril!", c.protocol.Name)
c.Putln("")
// Write imports. We always need to import at least xgb.

View File

@ -1,10 +1,7 @@
// Package xinerama is the X client API for the XINERAMA extension.
package xinerama
/*
This file was generated by xinerama.xml on Aug 11 2013 8:39:44pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xinerama.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xinput is the X client API for the XInputExtension extension.
package xinput
/*
This file was generated by xinput.xml on Aug 11 2013 8:39:44pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xinput.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xprint is the X client API for the XpExtension extension.
package xprint
/*
This file was generated by xprint.xml on Aug 11 2013 8:39:44pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xprint.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xproto is the X client API for the extension.
package xproto
/*
This file was generated by xproto.xml on Aug 11 2013 8:39:44pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xproto.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xselinux is the X client API for the SELinux extension.
package xselinux
/*
This file was generated by xselinux.xml on Aug 11 2013 8:39:44pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xselinux.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xtest is the X client API for the XTEST extension.
package xtest
/*
This file was generated by xtest.xml on Aug 11 2013 8:39:44pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xtest.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xv is the X client API for the XVideo extension.
package xv
/*
This file was generated by xv.xml on Aug 11 2013 8:39:44pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xv.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"

View File

@ -1,10 +1,7 @@
// Package xvmc is the X client API for the XVideo-MotionCompensation extension.
package xvmc
/*
This file was generated by xvmc.xml on Aug 11 2013 8:39:44pm EDT.
This file is automatically generated. Edit at your peril!
*/
// This file is automatically generated from xvmc.xml. Edit at your peril!
import (
"github.com/BurntSushi/xgb"