2022-11-16 18:48:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
set -eu
|
|
|
|
|
cd -- "$(dirname "$0")/../.."
|
|
|
|
|
. ./ci/sub/lib.sh
|
|
|
|
|
|
|
|
|
|
sh_c chmod +w ./ci/release/template/scripts/lib.sh
|
|
|
|
|
sh_c cat >./ci/release/template/scripts/lib.sh <<EOF
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
# *************
|
|
|
|
|
# DO NOT EDIT
|
|
|
|
|
#
|
|
|
|
|
# lib.sh was bundled together from
|
|
|
|
|
#
|
|
|
|
|
# - ./ci/sub/lib/rand.sh
|
|
|
|
|
# - ./ci/sub/lib/log.sh
|
2022-12-01 20:26:32 +00:00
|
|
|
# - ./ci/sub/lib/release.sh
|
2022-11-16 18:48:39 +00:00
|
|
|
#
|
|
|
|
|
# Generated by ./ci/release/gen_template_lib.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 \
|
2022-12-01 20:26:32 +00:00
|
|
|
./ci/sub/lib/release.sh \
|
2022-11-16 18:48:39 +00:00
|
|
|
\| sed "-e'/^\. /d'" \>\>./ci/release/template/scripts/lib.sh
|
|
|
|
|
sh_c chmod -w ./ci/release/template/scripts/lib.sh
|