...

Text file src/oss.terrastruct.com/d2/ci/release/gen_install.sh

Documentation: oss.terrastruct.com/d2/ci/release

     1#!/bin/sh
     2set -eu
     3cd -- "$(dirname "$0")/../.."
     4. ./ci/sub/lib.sh
     5
     6sh_c chmod +w ./install.sh
     7sh_c cat >./install.sh <<EOF
     8#!/bin/sh
     9set -eu
    10
    11# *************
    12# DO NOT EDIT
    13#
    14# install.sh was bundled together from
    15#
    16# - ./ci/sub/lib/rand.sh
    17# - ./ci/sub/lib/temp.sh
    18# - ./ci/sub/lib/log.sh
    19# - ./ci/sub/lib/flag.sh
    20# - ./ci/sub/lib/release.sh
    21# - ./ci/release/_install.sh
    22#
    23# The last of which implements the installation logic.
    24#
    25# Generated by ./ci/release/gen_install.sh.
    26# *************
    27
    28EOF
    29
    30# sed removes the sourcing dependency lines as we're bundled everything into a single
    31# script.
    32sh_c cat \
    33  ./ci/sub/lib/rand.sh \
    34  ./ci/sub/lib/temp.sh \
    35  ./ci/sub/lib/log.sh \
    36  ./ci/sub/lib/flag.sh \
    37  ./ci/sub/lib/release.sh \
    38  \| sed "-e'/^\. /d'" \>\> ./install.sh
    39sh_c cat ./ci/release/_install.sh \
    40  \| sed -n "'/cd -- \"\$(dirname/,/cd -/!p'" \>\> install.sh
    41sh_c chmod -w install.sh

View as plain text