From f2f1ca8b02f1e9d96eaedee40ecb7f94fe7671f6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 21 Mar 2021 15:20:54 +0000 Subject: [PATCH] cards-oxymoron: Build arrangements Signed-off-by: Ian Jackson --- README.md | 3 ++- library/cards-oxymoron/.gitignore | 2 ++ library/cards-oxymoron/build | 13 +++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 library/cards-oxymoron/.gitignore create mode 100755 library/cards-oxymoron/build diff --git a/README.md b/README.md index 4d8e1b1b..82e917f7 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,8 @@ Setup ``` sudo apt install build-essential cpio git curl \ pkg-config libssl-dev \ - node-typescript inkscape bubblewrap + node-typescript inkscape bubblewrap \ + netpbm ``` 2. Install Rust. This is most easily done with [rustup](https://rustup.rs)): diff --git a/library/cards-oxymoron/.gitignore b/library/cards-oxymoron/.gitignore new file mode 100644 index 00000000..8c2b7dd4 --- /dev/null +++ b/library/cards-oxymoron/.gitignore @@ -0,0 +1,2 @@ +cards/src/*.gif +cards/src/make-cards.massaged diff --git a/library/cards-oxymoron/build b/library/cards-oxymoron/build new file mode 100755 index 00000000..b8b988a4 --- /dev/null +++ b/library/cards-oxymoron/build @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +cd library/cards-oxymoron/cards/src + +perl -pe make-cards.massaged ' + s{^#! */usr/bin/perl}{$& -w}; + print "sub xsystem { \$?=0; \$!=0; system \@_ and die \"$! $?\"; }\n" + if !m/\S/ && !$done++; + s{\bsystem\(}{x$&}g; +' +chmod +x ./make-cards.massaged +./make-cards.massaged -- 2.30.2