...
1#!/bin/sh
2set -eu
3cd -- "$(dirname "$0")/../.."
4. ./ci/sub/lib.sh
5
6sh_c chmod +w ./ci/release/template/scripts/lib.sh
7sh_c cat >./ci/release/template/scripts/lib.sh <<EOF
8#!/bin/sh
9
10# *************
11# DO NOT EDIT
12#
13# lib.sh was bundled together from
14#
15# - ./ci/sub/lib/rand.sh
16# - ./ci/sub/lib/temp.sh
17# - ./ci/sub/lib/log.sh
18# - ./ci/sub/lib/release.sh
19#
20# Generated by ./ci/release/gen_template_lib.sh.
21# *************
22
23EOF
24
25# sed removes the sourcing dependency lines as we're bundled everything into a single
26# script.
27sh_c cat \
28 ./ci/sub/lib/rand.sh \
29 ./ci/sub/lib/temp.sh \
30 ./ci/sub/lib/log.sh \
31 ./ci/sub/lib/release.sh \
32 \| sed "-e'/^\. /d'" \>\>./ci/release/template/scripts/lib.sh
33sh_c chmod -w ./ci/release/template/scripts/lib.sh
View as plain text