ci: Implement gen_install.sh
This commit is contained in:
parent
d8b54c2e42
commit
9989816b4b
1 changed files with 31 additions and 0 deletions
|
|
@ -1,2 +1,33 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eu
|
set -eu
|
||||||
|
cd -- "$(dirname "$0")/../.."
|
||||||
|
. ./ci/sub/lib.sh
|
||||||
|
|
||||||
|
cat >./install.sh <<EOF
|
||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
# *************
|
||||||
|
# DO NOT EDIT
|
||||||
|
#
|
||||||
|
# install.sh was bundled together from
|
||||||
|
#
|
||||||
|
# - ./ci/sub/lib/rand.sh
|
||||||
|
# - ./ci/sub/lib/log.sh
|
||||||
|
# - ./ci/sub/lib/flag.sh
|
||||||
|
# - ./ci/release/_install.sh
|
||||||
|
#
|
||||||
|
# The last of which implements the installation logic.
|
||||||
|
#
|
||||||
|
# Generated by ./ci/release/gen_install.sh.
|
||||||
|
# *************
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# sed removes the sourcing dependency lines as we're bundled everything into a single
|
||||||
|
# script.
|
||||||
|
sh_c cat \
|
||||||
|
./ci/sub/lib/rand.sh \
|
||||||
|
./ci/sub/lib/log.sh \
|
||||||
|
./ci/sub/lib/flag.sh \
|
||||||
|
./ci/release/_install.sh \
|
||||||
|
| sed '/^\. /d' >> ./install.sh
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue