From 5f6fcfb341a9a60426d2e012aa0295f8c17435d6 Mon Sep 17 00:00:00 2001 From: jhermann Date: Sun, 22 Jul 2018 13:27:49 +0200 Subject: [PATCH] Docker build: copy .npmrc, use sed 'g' flags --- doc/examples/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/examples/build.sh b/doc/examples/build.sh index 3498de2..5aad947 100755 --- a/doc/examples/build.sh +++ b/doc/examples/build.sh @@ -20,11 +20,12 @@ staging_dir="build/staging" rm -rf $staging_dir 2>/dev/null || true mkdir -p $staging_dir git ls-files >build/git-files +test ! -f .npmrc || echo .npmrc >>build/git-files tar -c --files-from build/git-files | tar -C $staging_dir -x sed -i -r -e 1s/stretch/$codename/g $staging_dir/debian/changelog sed -r -e s/#UUID#/$(< /proc/sys/kernel/random/uuid)/g \ -e s/#DIST_ID#/$dist_id/g -e s/#CODENAME#/$codename/g \ - -e s/#NODEREPO#/$NODEREPO/ -e s/#PYPI#/$pypi_name/ -e s/#PKGNAME#/$pkgname/ \ + -e s/#NODEREPO#/$NODEREPO/g -e s/#PYPI#/$pypi_name/g -e s/#PKGNAME#/$pkgname/g \ $staging_dir/Dockerfile # Build in Docker container, save results, and show package info