cic-contracts/texify.sh

11 lines
225 B
Bash
Raw Normal View History

#!/bin/bash
for f in $(ls solidity/*.sol); do
fn=$(basename $f)
fb=${fn%.*}
fn="build/contract_${fb}.texi"
echo "@verbatim" > $fn
awk 'f;/interface [a-zA-Z0-9]* /{print;f=1}' $f >> $fn
echo "@end verbatim" >> $fn
done