aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-10-03 17:41:29 -0400
committerDave Barach <dave@barachs.net>2018-10-03 17:42:20 -0400
commit5958769b2c9463f2c8da85a380da1ec439354a10 (patch)
treeb19cbbe70de56e2c690e921b00ea325031adc354
parent3f2e775e45e9c42819cd950a96135e83a00b8bbd (diff)
LISP ONLY: maintain the make-plugin.sh script
Make sure it's invoked in .../src/plugins Change-Id: I85a05dbd863f3254c017962f635d505482548979 Signed-off-by: Dave Barach <dave@barachs.net>
-rwxr-xr-xextras/emacs/make-plugin.sh17
1 files changed, 14 insertions, 3 deletions
diff --git a/extras/emacs/make-plugin.sh b/extras/emacs/make-plugin.sh
index de5eb04ff94..2508377d2df 100755
--- a/extras/emacs/make-plugin.sh
+++ b/extras/emacs/make-plugin.sh
@@ -13,6 +13,17 @@
;;; See the License for the specific language governing permissions and
;;; limitations under the License.
-(load-file "./all-skel.el")
-(make-plugin)
-(save-some-buffers t)
+(setq start-dir default-directory)
+
+(if (string-match "/src/plugins" start-dir)
+ (progn (setq cd-args (concat start-dir "../../extras/emacs"))
+ (setq default-directory cd-args)
+ (load-file "./all-skel.el")
+ (setq default-directory start-dir)
+ (make-plugin)
+ (save-some-buffers t)
+ (message "OK..."))
+ (message "Please run this script from .../src/plugins"))
+
+
+