summaryrefslogtreecommitdiff
path: root/install-package.el
diff options
context:
space:
mode:
authorTorsten Hilbrich <torsten.hilbrich@gmx.net>2002-10-12 12:04:00 +0200
committerTorsten Hilbrich <torsten@hilbrich.net>2011-08-27 20:47:38 +0200
commit1dc8056d649e26117dd769b6dc36af5fcebe635c (patch)
treeb85d575042ebc84c38927e42ead36e6b591e5990 /install-package.el
parent05047f3e2b114acbe76355cdbc67209e21f9e809 (diff)
Imported version 1.8.4 from tarball
install-pkg was missing in the last tarball
Diffstat (limited to 'install-package.el')
-rw-r--r--install-package.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/install-package.el b/install-package.el
new file mode 100644
index 0000000..5b0474e
--- /dev/null
+++ b/install-package.el
@@ -0,0 +1,7 @@
+(defun install-package ()
+ (interactive)
+ (let ((filename (apply 'concat command-line-args-left)))
+ (message (concat "Installing package " filename))
+ (package-admin-add-binary-package filename)
+ (set-buffer "*Package Output*")
+ (message (buffer-substring (point-min) (point-max)))))