Commit fc940e9e authored by Eric Timmons's avatar Eric Timmons
Browse files

Add install.sh to release archive

parent 816dcf4b
......@@ -18,4 +18,5 @@
(:file "version" :depends-on ("package"))
(:file "system" :depends-on ("package" "features" "version"))
(:file "dependencies-license-op" :depends-on ("package" "system"))
(:file "client" :depends-on ("package" "system"))))
(:file "client" :depends-on ("package" "system"))
(:file "install-script" :depends-on ("package" "system"))))
;;;; Install script
;;;;
;;;; This software is part of CLPM. See README.org for more information. See
;;;; LICENSE for license information.
(in-package #:clpm-asdf)
(defclass release-clpm-install-script (ops::release-file)
((type
:initform "sh")))
(defmethod ops::release-component-class-by-type (parent (type (eql :clpm-install-script)))
'release-clpm-install-script)
(defmethod ops::release-op-build-action ((o ops:release-stage-op) (c release-clpm-install-script))
nil)
(defmethod asdf:input-files ((o ops:release-stage-op) (c release-clpm-install-script))
(list (asdf:system-relative-pathname :clpm "install.sh")))
(defmethod asdf:output-files ((o ops:release-stage-op) (c release-clpm-install-script))
(values
(list (merge-pathnames "install.sh" (asdf:component-pathname c)))
(ops::release-op-ignore-output-translations-p o c)))
(defmethod asdf:perform ((o ops:release-stage-op) (c release-clpm-install-script))
(let ((input (first (asdf:input-files o c)))
(output (asdf:output-file o c)))
(funcall (uiop:find-symbol* :copy-file :asdf-release-ops) input output)))
......@@ -34,7 +34,8 @@
:release-directory "../releases/"
:release-structure
((:module "bin"
((:clpm-install-script "install.sh" :if-feature (:not :os-windows))
(:module "bin"
:components
((:program-file "clpm")))
(:module "share"
......
......@@ -4,7 +4,7 @@ INSTALL_ROOT=${INSTALL_ROOT:-/usr/local}
install_directory() {
install -d "$INSTALL_ROOT/$1"
find "build/$1" -maxdepth 1 -type f -exec install {} "$INSTALL_ROOT/$1/" \;
find "$1" -maxdepth 1 -type f -exec install {} "$INSTALL_ROOT/$1/" \;
# I don't think this works with hidden directories, but we have none of
# those...
for f in "build/$1"/*; do
......@@ -16,8 +16,7 @@ install_directory() {
}
install_directory bin
install_directory lib/clpm
install_directory man/man1
install_directory share
# Local Variables:
# sh-basic-offset: 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment