perl: remove excessive quoting

This commit is contained in:
Connor Olding 2022-10-09 12:15:12 -07:00
parent c8b4c2e6b3
commit 2fda6048c1

View file

@ -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