summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno2010-12-07 13:58:30 -0200
committerIsmael Luceno2010-12-07 13:58:30 -0200
commit1f96ac979fe669662500f77d6f7a6c42227d6ae0 (patch)
tree4c34fc048bf8bc08e3d8062f04254667f26b4057
parentd9ec2e4154d89243d2550016f9f936a54fa93f5a (diff)
emacs-lisp: move generic functionality from yasnippet to FUNCTIONS
-rwxr-xr-xemacs-lisp/FUNCTIONS8
-rwxr-xr-xemacs-lisp/yasnippet/INSTALL3
2 files changed, 9 insertions, 2 deletions
diff --git a/emacs-lisp/FUNCTIONS b/emacs-lisp/FUNCTIONS
index fbc8feca4d..48ea60811a 100755
--- a/emacs-lisp/FUNCTIONS
+++ b/emacs-lisp/FUNCTIONS
@@ -1,4 +1,12 @@
#-------------------------------------------------------------------------
+## Helper to install extra directories and files.
+#-------------------------------------------------------------------------
+function emacs_lisp_install() {
+ cp -vr "${@/#/$SOURCE_DIRECTORY/}" \
+ "$INSTALL_ROOT/usr/share/emacs/site-lisp/$SPELL/"
+}
+
+#-------------------------------------------------------------------------
## Section-default build script.
#-------------------------------------------------------------------------
function default_build_emacs_lisp() {
diff --git a/emacs-lisp/yasnippet/INSTALL b/emacs-lisp/yasnippet/INSTALL
index 81561ed1b5..396c009736 100755
--- a/emacs-lisp/yasnippet/INSTALL
+++ b/emacs-lisp/yasnippet/INSTALL
@@ -1,3 +1,2 @@
default_install &&
-cp -vr "$SOURCE_DIRECTORY/snippets" \
- "$INSTALL_ROOT/usr/share/emacs/site-lisp/$SPELL"
+emacs_lisp_install snippets