Mercurial > repo
view bin/preprocess-mtg @ 8072:90dbd630fd23
<b_jonas> `` perl -pi -e \'s/ (\\$c\\[rand\\(\\@c\\)])/($1 || "No card found.")/\' bin/random-card
author | HackBot |
---|---|
date | Mon, 16 May 2016 11:14:18 +0000 |
parents | e8a5bd0e20ab |
children |
line wrap: on
line source
#!/bin/bash set -e cd /hackenv/share/mtg && tr -d \\r < MagicCompRules.txt > rules.txt && echo written ~+/rules.txt