[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 35c9e17240 037/308: Rewrote Makefile.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 35c9e17240 037/308: Rewrote Makefile. |
Date: |
Tue, 25 Jan 2022 10:59:07 -0500 (EST) |
branch: elpa/drupal-mode
commit 35c9e172404b790a91bf2163abf76ac17f9bac6d
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Rewrote Makefile.
README and drupal-mode-pkg.el will now be generated by the Makefile.
Derive the version number from drupal-mode.el
Requires `package-build.el' from https://github.com/milkypostman/melpa
to be available in your Emacs load-path.
---
.gitignore | 2 +
Makefile | 35 +++++++++---
README | 162 -----------------------------------------------------
drupal-mode-pkg.el | 3 -
4 files changed, 28 insertions(+), 174 deletions(-)
diff --git a/.gitignore b/.gitignore
index c749fdf253..399be34aaa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
*.elc
drupal-mode-*.tar
+drupal-mode-pkg.el
+README
diff --git a/Makefile b/Makefile
index 00202591c2..14fea6b753 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,13 @@
-.PHONY: all elpa-package elpa-install
+.PHONY: all clean install
-VERSION=0.2.0
+ARCHIVE_NAME=drupal-mode
+VERSION=$(shell emacs --batch --eval "(with-temp-buffer \
+ (require 'package)\
+ (insert-file \"$(ARCHIVE_NAME).el\")\
+ (princ (aref (package-buffer-info) 3)))")
+PACKAGE_NAME=$(ARCHIVE_NAME)-$(VERSION)
-all: drupal-mode.info README
+all: $(PACKAGE_NAME).tar
drupal-mode.info: README.md
pandoc -t texinfo $^ | makeinfo -o $@
@@ -10,13 +15,25 @@ drupal-mode.info: README.md
README: README.md
pandoc --atx-headers -t plain -o $@ $^
+# requires package-build.el from https://github.com/milkypostman/melpa
+# to be available in your emacs load-path
+$(ARCHIVE_NAME)-pkg.el: $(ARCHIVE_NAME).el
+ emacs --batch --user `whoami` --eval "(progn \
+ (require 'package-build) \
+ (pb/write-pkg-file \
+ \"$(ARCHIVE_NAME)-pkg.el\" \
+ (with-temp-buffer \
+ (insert-file \"$(ARCHIVE_NAME).el\") \
+ (package-buffer-info))))"
+
# create a tar ball in package.el format for uploading to
http://marmalade-repo.org
-elpa-package: README drupal-mode.el drupal-mode-pkg.el drupal-mode.info dir
drupal/*.el
- tar -c -s "@^@drupal-mode-${VERSION}/@" -f drupal-mode-${VERSION}.tar $^
+$(PACKAGE_NAME).tar: README $(ARCHIVE_NAME).el $(ARCHIVE_NAME)-pkg.el
drupal-mode.info dir drupal/*.el
+ tar -c -s "@^@$(PACKAGE_NAME)/@" -f $(PACKAGE_NAME).tar $^
-elpa-install: elpa-package
- emacs --batch --eval "(progn \
- (require 'package)\
- (add-to-list 'package-archives '(\"marmalade\" .
\"http://marmalade-repo.org/packages/\"))\
+install: $(PACKAGE_NAME).tar
+ emacs --batch --user `whoami` --eval "(progn \
(package-initialize)\
(package-install-file \"`pwd`/drupal-mode-${VERSION}.tar\"))"
+
+clean:
+ $(RM) $(ARCHIVE_NAME)-*.tar $(ARCHIVE_NAME)-pkg.el README
diff --git a/README b/README
deleted file mode 100644
index 46891b8adb..0000000000
--- a/README
+++ /dev/null
@@ -1,162 +0,0 @@
-Drupal mode
-
-Drupal mode is an advanced minor mode for developing in Drupal.
-
-The approach taken is somewhat different from other attempts at creating
-a Drupal mode.
-
-This mode is a minor mode and can be applied to all files in a Drupal
-project no matter what major mode they use - whether it be php-mode or
-something else.
-
-Besides giving access to general functionality in all modes (i.e.
-clearing cache through Drush) it will also adapt it self to the major
-mode to enable functionality only for that particular major mode (i.e.
-adhering to Drupals PHP coding standards only in php-mode).
-
-Drupal mode will try not to enforce specific ways of working with Emacs
-on to you. Emacs can be extended in a million different ways and you
-should use the parts and extensions that fit you and your working
-habits.
-
-If Drupal mode recognizes you using an extension that it knows about it
-will adapt the extension to be useful in Drupal mode and with Drupal.
-I.e. it will recognize if you have loaded etags support and setup your
-buffers to use the TAGS file in your DRUPAL_ROOT folder.
-
-Drupal mode won't embed other libraries but will suggest some (see
-below) and depend on a few through the packaging system (i.e. php-mode).
-
-Installation
-
-The easiest way to install Drupal mode is probably to install it via the
-ELPA archive at Marmalade.
-
-ELPA (package.el) is part of Emacs 24. For Emacs 23 see Marmalade for
-installation instructions.
-
-Features of Drupal mode
-
-Drupal Coding Standards
-
-Drupal mode will make you write code that adheres to Drupals coding
-standards.
-
-It does this by:
-
-Indentation
-
-In php-mode code will be indented according to Drupals coding standards.
-If not it is considered a bug!
-
-Fixing line endings
-
-If your files are not written with unix style line endings Drupal mode
-will ask your to convert them to unix style line endings on saving
-buffers.
-
-This behavior can be customized be the variable
-drupal-convert-line-ending.
-
-The default is to ask if you want the file to be converted. By asking
-you we hopefully won't trick you into making a commit in your version
-control system consisting of a bunch of functionality changes with every
-line also changed by a new line ending. If you have ever read 1000 of
-commits/diffs you will appreciate this.
-
-Delete trailing white space
-
-In Drupal mode buffers we will enable Emacs' delete-trailing-whitespace.
-
-This behavior can be customized be the variable
-drupal-delete-trailing-whitespace.
-
-Search documentation
-
-You can search Drupal documentation for the symbol at point by issuing
-C-c d f or M-x drupal-search-documentation or from the Drupal menu
-entry.
-
-Files that are part of a Drupal project will try to identify the used
-version of Drupal core and look up the documentation for the
-corresponding version at http://api.drupal.org.
-
-If the symbol at point is believed to be a drush command the
-documentation will be looked up at http://api.drush.org instead. If
-Drush is installed it will identify the version of Drush and look up the
-documentation for that version.
-
-You can change where to search for documentation be customizing
-drupal-search-url (besides api.drupal.org it also has a predefined
-setting for api.drupalcontrib.org) and drupal-drush-search-url.
-
-Clearing all caches
-
-If Drush is installed you can issue a drush cc all from within Emacs by
-issuing C-c d c or M-x drupal-drush-cache-clear or from the Drupal menu
-entry.
-
-Drush editing minor mode
-
-If the buffer you visit is believe to be a Drush command (we think it is
-its name or path contains "drush") we will also enter a Drush minor
-mode.
-
-There is currently no functionality connected to drupal-drush-mode.
-
-Emacs modes and extensions that Drupal mode will enhance
-
-etags
-
-If you have generated a TAGS file in your DRUPAL_ROOT folder Drupal mode
-will setup all buffers running drupal-mode to set tags-file-name to
-point to that TAGS file.
-
-Etags is a builtin part of Emacs.
-
-GNU Globals / gtags
-
-If you load GNU Globals / gtags support in Emacs then Drupal mode will
-set gtags-rootdir to your DRUPAL_ROOT.
-
-ispell
-
-If ispell.el is loaded in Emacs then Drupal mode will set the language
-of your Drupal mode buffers to american as stated in Drupals coding
-standards.
-
-ispell.el is a builtin part of Emacs. A external program must be
-installed to run the actual spell checking, i.e. ispell, aspell, or
-hunspell.
-
-flymake-phpcs
-
-If support for flymake-phpcs.el is loaded in emacs and you have
-installed Drupal Code Sniffer rules then Drupal mode will enable
-flymake-phpcs under php-mode.
-
-For this to work you need:
-
-- PHP CodeSniffer
-- flymake-phpcs.el
-- Drupal Code Sniffer rules
-
-Making all of them work together can be a bit of a puzzle. Especially
-notice the need to run phpcs through a wrapper you get with
-flymake-phpcs.el.
-
-Other takes on a Drupal mode
-
-There are quite a few attempts at writing a Drupal mode out in the wild:
-
-- Search Github for drupal-mode
-- At drupal.org:
- - http://drupal.org/sandbox/bartlantz/1405156
- - http://drupal.org/project/emacs
-
-All of them more or less based on Configuring Emacs.
-
-Development of Drupal mode
-
-Drupal mode is actively developed at GitHub. Feature requests, ideas,
-bug reports, and pull request are more that welcome!
diff --git a/drupal-mode-pkg.el b/drupal-mode-pkg.el
deleted file mode 100644
index 4b09fae582..0000000000
--- a/drupal-mode-pkg.el
+++ /dev/null
@@ -1,3 +0,0 @@
-(define-package "drupal-mode" "0.2.0"
- "Advanced minor mode for Drupal development"
- '((php-mode "1.5.0")))
- [nongnu] elpa/drupal-mode 07eaf83729 015/308: New var drupal-root. Use it for `tags-file-name'., (continued)
- [nongnu] elpa/drupal-mode 07eaf83729 015/308: New var drupal-root. Use it for `tags-file-name'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 50fb7ad1f9 007/308: Add api.drupalcontrib.org for doc search., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 571f94535f 011/308: Added 'elpa-install' target., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3f20a5b31b 008/308: Improve drupal-style indentation for comments., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 00fa57745f 005/308: Cleanup., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b7f50ec381 012/308: Detecting version shouldn't fail on non-files., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode bcde7079ab 021/308: Moved etags support to its own file., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode c1385212f4 018/308: Add basic drush support., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode db24ec6bf9 023/308: Added gtags support to drupal-mode., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8828357fe8 031/308: Stripped section heading lines in plain ascii., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 35c9e17240 037/308: Rewrote Makefile.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 85dabbf20a 030/308: Refactored a lot of code., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 74fe12bd47 033/308: Bumped version to 0.2.0., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f95aa10028 038/308: Optimized variable expansion in Makefile., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f04ae2825d 034/308: Merge branch 'release/0.2.0', ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode c8832210b3 032/308: Documentation was rewritten and extended., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode dec5279338 041/308: Removed generated file drupal-mode.info., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode c68f560494 075/308: Fixed regexp for extracting function arguments., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode cda13dfb21 063/308: Added better bootstrapping of Drupal mode., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 55a523b65f 046/308: No need to restart check since flymake-phpcs 1.0.4, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f02cb3d8eb 044/308: Drupal version also outside full projects., ELPA Syncer, 2022/01/25