view ibin/bf16 @ 5129:7d19c0f4d970

<b_jonas> echo $\'#!/usr/bin/perl\\n\'\'$_=shift;sub k{my$t;$t=~y/IVXLC/XLCDM/,$t.=("",I,II,III,IV,V,VI,VII,VIII,IX)[$_]for/./g;$$t=$_;$t}k for s""\\$"..4e3;print eval(),$/\' > bin/fromroman && chmod a+x bin/fromroman
author HackBot
date Fri, 14 Nov 2014 21:22:56 +0000
parents 33a6019d8e99
children 77ae80f1894d
line wrap: on
line source

#!/bin/sh
. lib/interp

# Get the bitwidth from the command
BW=`echo "$CMD" | sed 's/bf//'`
if [ "$BW" = "" ] ; then BW=8 ; fi

interp_file ./interps/egobf/src/egobfi$BW