Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
clpm
clpm
Commits
fc940e9e
Commit
fc940e9e
authored
Feb 21, 2021
by
Eric Timmons
Browse files
Add install.sh to release archive
parent
816dcf4b
Changes
4
Hide whitespace changes
Inline
Side-by-side
clpm-asdf.asd
View file @
fc940e9e
...
...
@@ -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"
))))
clpm-asdf/install-script.lisp
0 → 100644
View file @
fc940e9e
;;;; 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
)))
clpm.asd
View file @
fc940e9e
...
...
@@ -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"
...
...
install.sh
View file @
fc940e9e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment