emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/xelb 939ae90c87 1/2: Rename el_client.el to xelb-gen an


From: ELPA Syncer
Subject: [elpa] externals/xelb 939ae90c87 1/2: Rename el_client.el to xelb-gen and make it a proper script
Date: Wed, 17 Jan 2024 12:59:41 -0500 (EST)

branch: externals/xelb
commit 939ae90c872e496da55fd8495151e97d9894d2ae
Author: Steven Allen <steven@stebalien.com>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    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.
---
 Makefile                 | 6 ++----
 el_client.el => xelb-gen | 7 ++++---
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index da36c8a8bd..b86df9d896 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,4 @@
-PROTO_PATH := ../xcb-proto/src
-
-EMACS_BIN := emacs -Q
+PROTO_PATH := /usr/share/xcb
 
 EXTENSIONS := bigreq composite damage dpms dri2 dri3 ge glx present randr \
 record render res screensaver shape shm sync xc_misc xevie xf86dri \
@@ -13,7 +11,7 @@ all: clean $(LIBS)
 
 xcb-%.el: $(PROTO_PATH)/%.xml
        @echo -n "\n"Generating $@...
-       @$(EMACS_BIN) --script ./el_client.el $< > $@
+       @./xelb-gen $< > $@
 
 $(EXT_LIBS): xcb-xproto.el
 
diff --git a/el_client.el b/xelb-gen
old mode 100644
new mode 100755
similarity index 99%
rename from el_client.el
rename to xelb-gen
index 12203b5fcc..6a4779ae4d
--- a/el_client.el
+++ b/xelb-gen
@@ -1,4 +1,5 @@
-;;; el_client.el --- XELB Code Generator  -*- lexical-binding: t -*-
+#!/usr/bin/env -S emacs -Q --script
+;;; xelb-gen --- XELB Code Generator  -*- lexical-binding: t; no-byte-compile: 
t -*-
 
 ;; Copyright (C) 2015-2024 Free Software Foundation, Inc.
 
@@ -21,7 +22,7 @@
 
 ;;; Commentary:
 
-;; 'el_client' is responsible for converting XCB XML description files into
+;; 'xelb-gen' is responsible for converting XCB XML description files into
 ;; Elisp libraries.  Here are a few design guidelines:
 ;; + The generated codes should be human-readable and conform to the Elisp
 ;;   coding conventions.  Names mentioned in X specifications are preferred.
@@ -726,4 +727,4 @@ The `combine-adjacent' attribute is simply ignored."
   (require 'xcb-types)
   (xelb-parse (car argv)))
 
-;;; el_client.el ends here
+;;; xelb-gen ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]