summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2024-10-12 00:48:59 +0200
committerAndreas Fankhauser hiddenalpha.ch2024-10-12 00:48:59 +0200
commit323f8a8805e6cbda1d69a65ab6b6725d26a265dd (patch)
tree68b74f58cd2da6d03c29a8084e78a298f905e6bb /contrib
parentf3b8232c0ce532ef43e9292e9add0482c87176cd (diff)
downloadbulk-ln-0.0.3.zip
bulk-ln-0.0.3.tar.gz
cleanup 'configure'v0.0.3
Diffstat (limited to 'contrib')
-rw-r--r--contrib/build-env-setup/setup9
1 files changed, 2 insertions, 7 deletions
diff --git a/contrib/build-env-setup/setup b/contrib/build-env-setup/setup
index b9f0f28..f5f51ce 100644
--- a/contrib/build-env-setup/setup
+++ b/contrib/build-env-setup/setup
@@ -7,15 +7,12 @@ exit 1
true \
&& GIT_TAG="master" \
&& CONFIGURE_OPTS= \
+ && WORKDIR="${HOME:?}/work" \
&& PKGS_TO_ADD="ca-certificates curl gcc git make libc-dev tar" \
- && PKGS_TO_DEL="curl gcc git make libc-dev" \
&& SUDO=sudo \
&& PKGINIT="$SUDO apt update" \
&& PKGADD="$SUDO apt install -y --no-install-recommends" \
- && PKGDEL="$SUDO apt purge -y" \
- && PKGCLEAN="$SUDO apt clean" \
- && WORKDIR="${HOME:?}/work" \
- && true \
+ && `# prepare` \
&& mkdir -p "${WORKDIR:?}" && cd "${WORKDIR:?}" \
&& ${PKGINIT:?} && ${PKGADD:?} $PKGS_TO_ADD \
&& git clone --depth 42 --branch "${GIT_TAG:?}" https://github.com/hiddenalpha/bulk-ln.git . \
@@ -24,8 +21,6 @@ true \
&& ./configure $CONFIGURE_OPTS \
&& make clean && make -j$(nproc) \
&& $SUDO make install \
- && find . -not -wholename './dist*' -delete \
- && ${PKGDEL:?} $PKGS_TO_DEL && ${PKGCLEAN:?} \
&& dirOfDistBundle="$(realpath dist)" \
&& printf '\n SUCCESS :) Distribution bundle is ready in:\n\n %s\n\n Tip: Before pulling out your hair about how to get that archive out of\n your qemu VM. STOP kluding around with silly tools and learn how\n basic tools do the job perfectly fine:\n\n ssh %s@localhost -p%d -T '\''true && cd "%s" && tar c *'\'' | tar x\n\n BTW: In addition bulk-ln got installed and is ready-to-use.\n\n' "${dirOfDistBundle:?}" "$USER" "$(env|grep SSH_CLIENT|cut -d' ' -f3)" "${dirOfDistBundle:?}" \
&& true