#!/bin/bash
for i in *.fig ; do
        fig2dev -L pstex $i > ${i%%fig}pstex ;
        fig2dev -L pstex_t -p ${i%%fig}pstex $i > ${i%%fig}tex ;
done