Skip to content

Commit 939ae90

Browse files
Stebalienminad
authored andcommitted
Rename el_client.el to xelb-gen and make it a proper script
* el_client.el -> xelb-gen: Moved, marked executable, annotated with an emacs script shebang header, and marked as no-byte-compile. * Makefile: Execute xelb-gen as a script.
1 parent c4f1eb5 commit 939ae90

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
PROTO_PATH := ../xcb-proto/src
2-
3-
EMACS_BIN := emacs -Q
1+
PROTO_PATH := /usr/share/xcb
42

53
EXTENSIONS := bigreq composite damage dpms dri2 dri3 ge glx present randr \
64
record render res screensaver shape shm sync xc_misc xevie xf86dri \
@@ -13,7 +11,7 @@ all: clean $(LIBS)
1311

1412
xcb-%.el: $(PROTO_PATH)/%.xml
1513
@echo -n "\n"Generating $@...
16-
@$(EMACS_BIN) --script ./el_client.el $< > $@
14+
@./xelb-gen $< > $@
1715

1816
$(EXT_LIBS): xcb-xproto.el
1917

el_client.el renamed to xelb-gen

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
;;; el_client.el --- XELB Code Generator -*- lexical-binding: t -*-
1+
#!/usr/bin/env -S emacs -Q --script
2+
;;; xelb-gen --- XELB Code Generator -*- lexical-binding: t; no-byte-compile: t -*-
23

34
;; Copyright (C) 2015-2024 Free Software Foundation, Inc.
45

@@ -21,7 +22,7 @@
2122

2223
;;; Commentary:
2324

24-
;; 'el_client' is responsible for converting XCB XML description files into
25+
;; 'xelb-gen' is responsible for converting XCB XML description files into
2526
;; Elisp libraries. Here are a few design guidelines:
2627
;; + The generated codes should be human-readable and conform to the Elisp
2728
;; coding conventions. Names mentioned in X specifications are preferred.
@@ -726,4 +727,4 @@ The `combine-adjacent' attribute is simply ignored."
726727
(require 'xcb-types)
727728
(xelb-parse (car argv)))
728729

729-
;;; el_client.el ends here
730+
;;; xelb-gen ends here

0 commit comments

Comments
 (0)