Version 0.1
This commit is contained in:
commit
deffaca3fc
243 files changed
+18198
No files matched your search
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
curr_dir=$(pwd)
|
||||
|
||||
for plt in $(find . -name "*.plt")
|
||||
do
|
||||
plt_folder=$( dirname $plt )
|
||||
plt_name=$( basename $plt )
|
||||
plt_name_no_ext=${plt_name%.*}
|
||||
|
||||
cd $plt_folder
|
||||
|
||||
gnuplot -e "load '$plt_name'"
|
||||
file_list=
|
||||
for f in *.eps
|
||||
do
|
||||
ps2pdf -dEPSCrop "${f%%.*}.eps" "${f%%.*}.pdf"
|
||||
rm "${f%%.*}.eps"
|
||||
file_list="$file_list ${f%%.*}.pdf"
|
||||
done
|
||||
run_echo gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="${plt_name_no_ext}.pdf" $file_list
|
||||
rm $file_list
|
||||
|
||||
cd $curr_dir
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user