Skip to content

Commit

Permalink
Don't needlessly change source files every time.
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Aug 12, 2013
1 parent c656fd0 commit 8bc7a09
Show file tree
Hide file tree
Showing 29 changed files with 30 additions and 118 deletions.
5 changes: 1 addition & 4 deletions bigreq/bigreq.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions composite/composite.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions damage/damage.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions dpms/dpms.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions dri2/dri2.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions ge/ge.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions glx/glx.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions randr/randr.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions record/record.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions render/render.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions res/res.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions screensaver/screensaver.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions shape/shape.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions shm/shm.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions sync/sync.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xcmisc/xcmisc.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xevie/xevie.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xf86dri/xf86dri.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xf86vidmode/xf86vidmode.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xfixes/xfixes.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 2 additions & 6 deletions xgbgen/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"log"
"sort"
"time"
)

// Context represents the protocol we're converting to Go, and a writer
Expand Down Expand Up @@ -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.
Expand Down
5 changes: 1 addition & 4 deletions xinerama/xinerama.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xinput/xinput.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xprint/xprint.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xproto/xproto.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xselinux/xselinux.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xtest/xtest.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xv/xv.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 1 addition & 4 deletions xvmc/xvmc.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 8bc7a09

Please sign in to comment.