I have the following command in my .bashrc:
alias mfigpdf='for FIG in *.fig; do fig2dev -L pdftex "$FIG" "${FIG%.*}.pdftex"; done;
for FIG in *.fig; do fig2dev -L pstex_t -p "${FIG%.*}.pdftex" "$FIG" "${FIG%.*}.pdftex_t"; done'
And I want to execute the mfigpdf command in my Rakefile:
desc "convert all images to pdftex (or png)"
task :pdf do
sh "mfigpdf"
system "mfigpdf"
end
But none of these tasks work. I could just copy the command into rakefile to paste it into the shellscript file, but I have duplicate code.
Thank you for your help!
Matthias
source
share