#!/bin/bash

F=.tmp.$$.xx

function texify() {
	tfconvert < $1 >  $F;
	cat /dev/null > $1
	cat $F >> $1;
}

for i in $(find . ! -path "./scripts/winify" \
 ! -path "./Makefile" \
 ! -path "./Makefile.dos" \
 ! -path "./Rules.mk" \
 ! -path "./tests/Makefile" \
 ! -path "./include/menuet/syscall.h"  \
 ! -path "./scripts/genmld" \
 ! -path "./scripts/genemld" \
 ! -path "./scripts/genmgcc" \
 ! -path "./scripts/winrel" \
 -type f); do
	texify $i
done

rm -f $F


