2023-03-25 12:14:46 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
for f in $(ls solidity/*.sol); do
|
|
|
|
fn=$(basename $f)
|
|
|
|
fb=${fn%.*}
|
|
|
|
fn="build/contract_${fb}.texi"
|
2023-08-02 11:19:33 +02:00
|
|
|
#echo "@verbatim" > $fn
|
|
|
|
echo -e "@example\n@verbatim" > $fn
|
2023-03-25 12:14:46 +01:00
|
|
|
awk 'f;/interface [a-zA-Z0-9]* /{print;f=1}' $f >> $fn
|
2023-08-02 11:19:33 +02:00
|
|
|
#echo "@end verbatim" >> $fn
|
|
|
|
echo -e "@end verbatim\n@end example" >> $fn
|
2023-03-25 12:14:46 +01:00
|
|
|
done
|