aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/dix/buildatoms
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-11-19 10:16:38 +0100
committermarha <marha@users.sourceforge.net>2012-11-19 10:16:38 +0100
commit3744281b9ae8aa0ab86ceaee1afe8a603e3aeb2c (patch)
treef59b9749730728729691a8a1efd54dce95f0177c /xorg-server/dix/buildatoms
parent8d57b7fcb22cf1a52203ee57c745b64bba649249 (diff)
downloadvcxsrv-3744281b9ae8aa0ab86ceaee1afe8a603e3aeb2c.tar.gz
vcxsrv-3744281b9ae8aa0ab86ceaee1afe8a603e3aeb2c.tar.bz2
vcxsrv-3744281b9ae8aa0ab86ceaee1afe8a603e3aeb2c.zip
dos -> unix
Diffstat (limited to 'xorg-server/dix/buildatoms')
-rw-r--r--xorg-server/dix/buildatoms86
1 files changed, 43 insertions, 43 deletions
diff --git a/xorg-server/dix/buildatoms b/xorg-server/dix/buildatoms
index efc61b6f9..dfbbca8a9 100644
--- a/xorg-server/dix/buildatoms
+++ b/xorg-server/dix/buildatoms
@@ -1,43 +1,43 @@
-#!/bin/sh
-hfile=../../../include/Xatom.h
-cfile=initatoms.c
-rm -f $hfile $cfile
-umask 222
-awk '
-BEGIN {
- hfile = "'$hfile'";
- cfile = "'$cfile'";
- hformat = "#define XA_%s ((Atom) %d)\n";
- printf("#ifndef XATOM_H\n") > hfile;
- printf("#define XATOM_H 1\n\n") > hfile;
- printf("/* THIS IS A GENERATED FILE\n") > hfile;
- printf(" *\n") > hfile;
- printf(" * Do not change! Changing this file implies a protocol change!\n") > hfile;
- printf(" */\n\n") > hfile;
-
- printf("/* THIS IS A GENERATED FILE\n") > cfile;
- printf(" *\n") > cfile;
- printf(" * Do not change! Changing this file implies a protocol change!\n") > cfile;
- printf(" */\n\n") > cfile;
- printf("#include \"X.h\"\n") > cfile;
- printf("#include \"Xatom.h\"\n") > cfile;
- printf("#include \"misc.h\"\n") > cfile;
- printf("#include \"dix.h\"\n") > cfile;
- printf("void MakePredeclaredAtoms()\n") > cfile;
- printf("{\n") > cfile;
-
- }
-
-NF == 2 && $2 == "@" {
- printf(hformat, $1, ++atomno) > hfile ;
- printf(" if (MakeAtom(\"%s\", %d, 1) != XA_%s) AtomError();\n", $1, length($1), $1) > cfile ;
- }
-
-END {
- printf("\n") > hfile;
- printf(hformat, "LAST_PREDEFINED", atomno) > hfile ;
- printf("#endif /* XATOM_H */\n") > hfile;
- printf("}\n") > cfile ;
- }
-' BuiltInAtoms
-exit 0
+#!/bin/sh
+hfile=../../../include/Xatom.h
+cfile=initatoms.c
+rm -f $hfile $cfile
+umask 222
+awk '
+BEGIN {
+ hfile = "'$hfile'";
+ cfile = "'$cfile'";
+ hformat = "#define XA_%s ((Atom) %d)\n";
+ printf("#ifndef XATOM_H\n") > hfile;
+ printf("#define XATOM_H 1\n\n") > hfile;
+ printf("/* THIS IS A GENERATED FILE\n") > hfile;
+ printf(" *\n") > hfile;
+ printf(" * Do not change! Changing this file implies a protocol change!\n") > hfile;
+ printf(" */\n\n") > hfile;
+
+ printf("/* THIS IS A GENERATED FILE\n") > cfile;
+ printf(" *\n") > cfile;
+ printf(" * Do not change! Changing this file implies a protocol change!\n") > cfile;
+ printf(" */\n\n") > cfile;
+ printf("#include \"X.h\"\n") > cfile;
+ printf("#include \"Xatom.h\"\n") > cfile;
+ printf("#include \"misc.h\"\n") > cfile;
+ printf("#include \"dix.h\"\n") > cfile;
+ printf("void MakePredeclaredAtoms()\n") > cfile;
+ printf("{\n") > cfile;
+
+ }
+
+NF == 2 && $2 == "@" {
+ printf(hformat, $1, ++atomno) > hfile ;
+ printf(" if (MakeAtom(\"%s\", %d, 1) != XA_%s) AtomError();\n", $1, length($1), $1) > cfile ;
+ }
+
+END {
+ printf("\n") > hfile;
+ printf(hformat, "LAST_PREDEFINED", atomno) > hfile ;
+ printf("#endif /* XATOM_H */\n") > hfile;
+ printf("}\n") > cfile ;
+ }
+' BuiltInAtoms
+exit 0