[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode 91834848b4 320/500: Generate AUTHORS.md
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode 91834848b4 320/500: Generate AUTHORS.md |
Date: |
Sat, 29 Jan 2022 08:27:17 -0500 (EST) |
branch: elpa/nix-mode
commit 91834848b4a8b59ea0f54aabeab69c49b8209174
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>
Generate AUTHORS.md
Taken from use-package scripts
---
Makefile | 18 +++++++++++++-----
default.nix | 4 ++--
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index d5b63a8cbf..c111c1f3ce 100644
--- a/Makefile
+++ b/Makefile
@@ -6,12 +6,10 @@ ELS = nix.el nix-company.el nix-drv-mode.el nix-format.el \
nix-shell.el nix-store.el
ELCS = $(ELS:.el=.elc)
-DOCS = nix-mode.info nix-mode.html # nix-mode.pdf
-
DESTDIR =
PREFIX = /usr
-all: $(ELCS) $(DOCS)
+all: $(ELCS) nix-mode.info nix-mode.html AUTHORS.md
check:
emacs -batch -L . \
@@ -19,16 +17,26 @@ check:
-l tests/nix-font-lock-tests.el \
-f ert-run-tests-batch-and-exit
-install: $(ELCS) $(DOCS)
+install: $(ELCS) nix-mode.info nix-mode.html AUTHORS.md
mkdir -p $(DESTDIR)$(PREFIX)/share/emacs/site-lisp/nix-mode/
cp $(ELCS) $(DESTDIR)$(PREFIX)/share/emacs/site-lisp/nix-mode/
mkdir -p $(DESTDIR)$(PREFIX)/share/doc/nix-mode/
cp nix-mode.html $(DESTDIR)$(PREFIX)/share/doc/nix-mode/
- mkdir -p $(DESTDIR)$(PREFIX)/share/info
+ mkdir -p $(DESTDIR)$(PREFIX)/share/info/
cp nix-mode.info $(DESTDIR)$(PREFIX)/share/info/
+ mkdir -p $(DESTDIR)$(PREFIX)/share/doc/
+ cp AUTHORS.md $(DESTDIR)$(PREFIX)/share/doc/
+
+AUTHORS.md:
+ @test -e .git \
+ && (printf "$$AUTHORS_HEADER\n" > $@ \
+ && git log --pretty=format:'- %aN <%aE>' | sort -u >> $@ \
+ && printf "done\n" ; ) \
+ || printf "FAILED (non-fatal)\n"
+
clean:
rm -f $(ELCS) $(DOCS)
diff --git a/default.nix b/default.nix
index 3f5f859043..6b447922d8 100644
--- a/default.nix
+++ b/default.nix
@@ -1,6 +1,6 @@
{ pkgs ? import <nixpkgs> {}}:
let
- inherit (pkgs) emacsWithPackages stdenvNoCC texinfo;
+ inherit (pkgs) emacsWithPackages stdenvNoCC texinfo git;
emacs = emacsWithPackages (epkgs: with epkgs; [
org-plus-contrib
company
@@ -10,7 +10,7 @@ let
in stdenvNoCC.mkDerivation {
name = "nix-mode";
src = ./.;
- nativeBuildInputs = [ emacs texinfo ];
+ nativeBuildInputs = [ emacs texinfo git ];
makeFlags = [ "PREFIX=$(out)" ];
shellHook = ''
echo Run make run to get vanilla emacs with nix-mode loaded.
- [nongnu] elpa/nix-mode 57ea981cb2 278/500: Use eval-when-compile for subr-x, (continued)
- [nongnu] elpa/nix-mode 57ea981cb2 278/500: Use eval-when-compile for subr-x, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1512d02830 279/500: Formatting, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0c0ec7dbd6 281/500: ert/indent: Add macro to easily test indentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 7f968e8a7f 284/500: Merge pull request #61 from etu/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 4ac7b5afb6 287/500: Add indent region function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ff0a773d31 297/500: fix-issue-72: Check the correct element from syntax-ppss, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1798168074 307/500: Use nix-indent-function when setting indent-line-function., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 022fac17a6 308/500: Un-delete nix-indent-line., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1cda7dabbc 309/500: Bug fix: replace memq with member, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 4016a1c89b 321/500: Release 1.4.0, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 91834848b4 320/500: Generate AUTHORS.md,
ELPA Syncer <=
- [nongnu] elpa/nix-mode 0bab799a87 325/500: Add failing test that checks indentation of closing parens., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode dd5f937a49 331/500: Change the description of a couple of tests., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 10ac680cd6 332/500: Merge pull request #80 from j-piecuch/smie-tweaks, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 907336cd0b 337/500: Silence byte compiler warnings in nix-shell, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 2f4bd0f09c 336/500: Release 1.4.1, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 00750803d9 356/500: Don't freeze full executable paths at load time, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3248864b56 348/500: Add failing tests that check for correct lexing of angle paths., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 8118a807a7 346/500: Handle more edge cases in keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode c2725000ab 349/500: Use pcase-exhaustive instead of pcase in nix-smie--skip-path, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 795cc0c4c5 350/500: Handle angle paths correctly, ELPA Syncer, 2022/01/29