1
0
Fork 0

More giza functions for satid in conversion script

giza-pure
Jeff Moe 2022-08-20 15:08:01 -06:00
parent 539acd1e1c
commit b7cd5db4be
1 changed files with 10 additions and 2 deletions

View File

@ -9,10 +9,13 @@ C2GFILE="$1"
sed -i -e 's/cpgbox/giza_box/g' $C2GFILE
sed -i -e 's/cpgcirc/giza_circle_float/g' $C2GFILE
sed -i -e 's/cpgctab/giza_set_colour_table_float/g' $C2GFILE
sed -i -e 's/cpgcurs/giza_get_key_press_float/g' $C2GFILE
sed -i -e 's/cpgdraw/giza_draw_float/g' $C2GFILE
sed -i -e 's/cpgend/giza_close_device/g' $C2GFILE
sed -i -e 's/cpgeras/giza_draw_background/g' $C2GFILE
sed -i -e 's/cpgimag/giza_render_float/g' $C2GFILE
sed -i -e 's/cpglab/giza_label/g' $C2GFILE
sed -i -e 's/cpgmove/giza_move_float/g' $C2GFILE
sed -i -e 's/cpgmtxt/giza_annotate_float/g' $C2GFILE
sed -i -e 's/cpgpt1/giza_single_point_float/g' $C2GFILE
@ -27,6 +30,7 @@ sed -i -e 's/cpgscr/giza_set_colour_representation_float/g' $C2GFILE
sed -i -e 's/cpgsfs/giza_set_fill/g' $C2GFILE
sed -i -e 's/cpgsls/giza_set_line_style/g' $C2GFILE
sed -i -e 's/cpgslw/giza_set_line_width_float/g' $C2GFILE
sed -i -e 's/cpgstbg/giza_set_text_background/g' $C2GFILE
sed -i -e 's/cpgsvp/giza_set_viewport_float/g' $C2GFILE
sed -i -e 's/cpgtext/giza_text_float/g' $C2GFILE
sed -i -e 's/cpgwnad/giza_set_window_equal_scale_float/g' $C2GFILE
@ -43,10 +47,14 @@ grep -c -w cpgscf $C2GFILE 1>/dev/null && \
echo "WARNING: Function is cpgscf is partially implemented as giza_set_font. Add a fontname such as Helvetica."
sed -i -e 's/cpgscf/giza_set_font/g' $C2GFILE
grep -c -w 'giza.h' $C2GFILE 1>/dev/null || \
echo -e "Add to top of $C2GFILE:\n\n#include <giza.h>\n"
grep -c -w 'cpgplot.h' $C2GFILE 1>/dev/null && \
echo -e "Remove cpgplot.h from $C2GFILE\n"
#for i in XYZ
# do grep -c -w $i $C2GFILE 1>/dev/null \
# && echo "A function for $i isn't fully implemented in Giza"
#done
grep -c -w 'giza.h' $C2GFILE 1>/dev/null || \
echo -e "Add to top of $C2GFILE:\n\n#include <giza.h>\n"