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

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

[nongnu] elpa/sqlite3 47391311a9 12/62: edited sqlite3-api.el to adhere


From: ELPA Syncer
Subject: [nongnu] elpa/sqlite3 47391311a9 12/62: edited sqlite3-api.el to adhere to melpa guidelines
Date: Tue, 14 Mar 2023 11:01:45 -0400 (EDT)

branch: elpa/sqlite3
commit 47391311a98d4ea955bed28af9bfca7e3006aac5
Author: Y. N. Lo <gordonynlo@yahoo.com>
Commit: Y. N. Lo <gordonynlo@yahoo.com>

    edited sqlite3-api.el to adhere to melpa guidelines
---
 Makefile                            |  2 +-
 sqlite3-api-constants.el            | 15 ++++++++++++++-
 sqlite3-api.el                      | 15 ++++++++++++++-
 regression.el => test/regression.el |  0
 tools/gen-consts.py                 |  2 +-
 tools/run.sh                        | 13 +++++++++++++
 6 files changed, 43 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index c77e01e206..da34195e1f 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ consts:
 module: $(MODULE).so
        mkdir $(MODULE_BASENAME)
        echo "(define-package \"$(MODULE)\" \"$(MODULE_VERSION)\" \"SQLite3 API 
dynamic module\")" > $(MODULE_PKG_EL)
-       cp $(MODULE).so $(MODULE_BASENAME)
+       cp $(MODULE).so sqlite3-api-constants.el $(MODULE_BASENAME)
        tar cvf $(MODULE_TAR) $(MODULE_BASENAME)
        echo $(MODULE_TAR) > MODULE
 
diff --git a/sqlite3-api-constants.el b/sqlite3-api-constants.el
index 10f9bb931b..0e2d6176a6 100644
--- a/sqlite3-api-constants.el
+++ b/sqlite3-api-constants.el
@@ -1,3 +1,15 @@
+;;; sqlite3-api-constants.el --- Constants for SQLite3 API
+;;; Commentary:
+;; This package provides sqlite-* constants for sqlite3-api.
+;; The file is auto-generated. Do not edit.
+
+;; Author: Peking Duck <github.com/pekingduck>
+;; Version: 0.0.1
+;; Package-Version: 20170901
+;; Package-Requires: ((emacs "25.1"))
+;; Keywords: data, extensions
+;; URL: https://github.com/pekingduck/emacs-sqlite3-api
+
 ;; This program is free software: you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
 ;; the Free Software Foundation, either version 3 of the License, or
@@ -377,4 +389,5 @@
 (defconst sqlite-scanstat-name 3)
 (defconst sqlite-scanstat-explain 4)
 (defconst sqlite-scanstat-selectid 5)
-(provide 'sqlite3-api-constants)
\ No newline at end of file
+(provide 'sqlite3-api-constants)
+;;; sqlite3-api-constants.el ends here
diff --git a/sqlite3-api.el b/sqlite3-api.el
index fdc67201ad..833d794f8c 100644
--- a/sqlite3-api.el
+++ b/sqlite3-api.el
@@ -1,3 +1,14 @@
+;;; sqlite3-api.el --- SQLite3 API
+;;; Commentary:
+;; This package defines errors for sqlite3-api-module.
+;;
+;; Author: Peking Duck <github.com/pekingduck>
+;; Version: 0.0.1
+;; Package-Version: 20170901
+;; Package-Requires: ((emacs "25.1"))
+;; Keywords: data, extensions
+;; URL: https://github.com/pekingduck/emacs-sqlite3-api
+
 ;; This program is free software: you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
 ;; the Free Software Foundation, either version 3 of the License, or
@@ -12,7 +23,7 @@
 ;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 ;; sqlite-* constants
-(require 'sqlite3-api-constants)
+(require 'sqlite3-api-constants nil t)
 
 ;; Dynamic module
 (require 'sqlite3-api-module nil t)
@@ -52,6 +63,7 @@
                           (point-min)
                           (1- (point-max)))))
              (package-install-file tar)
+             (require 'sqlite3-api-module)
              (message "%s successfully installed" (file-name-base tar)))
          (error
           (message "Installation aborted: %S" err)))
@@ -59,3 +71,4 @@
       (cd cur-dir))))
 
 (provide 'sqlite3-api)
+;;; sqlite3-api.el ends here
diff --git a/regression.el b/test/regression.el
similarity index 100%
rename from regression.el
rename to test/regression.el
diff --git a/tools/gen-consts.py b/tools/gen-consts.py
index f2d21606e4..22cf46cdfd 100755
--- a/tools/gen-consts.py
+++ b/tools/gen-consts.py
@@ -21,5 +21,5 @@ for line in sys.stdin.readlines():
       print('  printf("(defconst {1} \\"%s\\")\\n", {0});'.format(fields[1], 
name))
     else:
       print('  printf("(defconst {1} %d)\\n", {0});'.format(fields[1], name))
-print('  printf("(provide \'sqlite3-api-constants)");')
+print('  printf("(provide \'sqlite3-api-constants)\\n");')
 print("}")
diff --git a/tools/run.sh b/tools/run.sh
index 2c0a918483..b591893cff 100755
--- a/tools/run.sh
+++ b/tools/run.sh
@@ -2,6 +2,18 @@
 
 DEST=../sqlite3-api-constants.el
 cat <<EOF > $DEST
+;;; sqlite3-api-constants.el --- Constants for SQLite3 API
+;;; Commentary:
+;; This package provides sqlite-* constants for sqlite3-api.
+;; The file is auto-generated. Do not edit.
+
+;; Author: Peking Duck <github.com/pekingduck>
+;; Version: 0.0.1
+;; Package-Version: 20170901
+;; Package-Requires: ((emacs "25.1"))
+;; Keywords: data, extensions
+;; URL: https://github.com/pekingduck/emacs-sqlite3-api
+
 ;; This program is free software: you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
 ;; the Free Software Foundation, either version 3 of the License, or
@@ -23,3 +35,4 @@ rm -f $EXE ${EXE}.c
 grep "^#define SQLITE" /usr/include/sqlite3.h | ./gen-consts.py > ${EXE}.c
 gcc -o $EXE ${EXE}.c -lsqlite3
 ${EXE} >> $DEST
+echo ";;; sqlite3-api-constants.el ends here" >> $DEST



reply via email to

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