From 2fda6048c122dd8126d62441633c84bc9aea3993 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 9 Oct 2022 12:15:12 -0700 Subject: [PATCH] perl: remove excessive quoting --- cosmo-perl/Dockerfile | 52 +++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/cosmo-perl/Dockerfile b/cosmo-perl/Dockerfile index 58d99cd..e775afe 100644 --- a/cosmo-perl/Dockerfile +++ b/cosmo-perl/Dockerfile @@ -74,14 +74,14 @@ RUN : \ && shed hints/cosmo.sh '/x86_64-linux-musl/d' \ && shed Makefile.SH 's/.*-musl-objcopy/\tobjcopy/g' \ \ - && COSMO_MODE="" COSMO_REPO="/cosmopolitan" sh Configure -d -e \ - -Dprefix="/zip" \ + && COSMO_MODE= COSMO_REPO=/cosmopolitan sh Configure -d -e \ + -Dprefix=/zip \ -Dusedevel \ -Uversiononly \ - -Doptimize="-Os" \ - -Dmyhostname="cosmo" \ - -Dmydomain="invalid" \ - -Dcf_by="cosmo" \ + -Doptimize=-Os \ + -Dmyhostname=cosmo \ + -Dmydomain=invalid \ + -Dcf_by=cosmo \ ; RUN make -j2 @@ -89,41 +89,41 @@ RUN make -j2 RUN make -j2 minitest devtty=/dev/zero | tee minitest_results.txt RUN : \ - && mkdir "/perl/cosmo" \ - && mkdir "/perl/cosmo/o" \ - && mkdir "/perl/cosmo/o/tmp" \ - && cp "/perl/perl.com" "/perl/cosmo/o/tmp/perl.com" \ - && make "DESTDIR=/perl/cosmo/o/tmp" install.perl \ + && mkdir /perl/cosmo \ + && mkdir /perl/cosmo/o \ + && mkdir /perl/cosmo/o/tmp \ + && cp /perl/perl.com /perl/cosmo/o/tmp/perl.com \ + && make DESTDIR=/perl/cosmo/o/tmp install.perl \ ; RUN : \ - && cd "/perl/cosmo/o/tmp/zip" \ - && rm "bin/perl" "bin/perl5.36.0" \ + && cd /perl/cosmo/o/tmp/zip \ + && rm bin/perl bin/perl5.36.0 \ && find lib -name '*.a' -delete \ && find lib -name '*.h' -delete \ && find -name '*.pod' -delete \ - && cp "../perl.com" "../perl.com.bak" \ - && chmod u+w "../perl.com" \ - && zip -qr "../perl.com" "lib" \ - && mv "../perl.com" "../../perl.com" \ + && cp ../perl.com ../perl.com.bak \ + && chmod u+w ../perl.com \ + && zip -qr ../perl.com lib \ + && mv ../perl.com ../../perl.com \ ; COPY --from=downloader /perltidy /perltidy RUN : \ - && cd "/perltidy" \ + && cd /perltidy \ && /perl/cosmo/o/perl.com pm2pl \ - && mv "perltidy-"*".pl" /perl/perltidy.pl \ - && cd "/perl/cosmo/o/tmp/zip" \ + && mv perltidy-*.pl /perl/perltidy.pl \ + && cd /perl/cosmo/o/tmp/zip \ && find -type f -name '*.pm' -exec \ /cosmopolitan/o/ape/ape.elf ../../perl.com /perl/perltidy.pl \ --mangle --delete-all-comments --backup-and-modify-in-place --backup-file-extension=/ {} \ + \ ; RUN : \ - && cd "/perl/cosmo/o/tmp/zip" \ - && cp "../perl.com.bak" "../perl.com" \ - && chmod u+w "../perl.com" \ - && zip -qr "../perl.com" "bin" \ - && zip -qr "../perl.com" "lib" \ - && mv "../perl.com" "../../perl.com" \ + && cd /perl/cosmo/o/tmp/zip \ + && cp ../perl.com.bak ../perl.com \ + && chmod u+w ../perl.com \ + && zip -qr ../perl.com bin \ + && zip -qr ../perl.com lib \ + && mv ../perl.com ../../perl.com \ ; FROM scratch AS runner