3 # make resource files for each platforms
6 _VERSION2=$(grep VERSION include/hpdf_consts.h | awk '{print $3}' | sed 's/"//g')".0"
7 _VERSION1=$(grep VERSION include/hpdf_consts.h | awk '{print $3}' | sed 's/"//g;s/\./,/g')",0"
12 echo "windres does not exist."
16 echo "create .res file for haru$_VERSION1"
21 cat win32/libhpdf.rc.template | sed "s/_VERSION1/$_VERSION1/g;s/_VERSION2/$_VERSION2/g;s/_COMPILER/$_COMPILER/g" > win32/mingw/libhpdf_mingw.rc
23 windres -O coff win32/mingw/libhpdf_mingw.rc win32/mingw/libhpdf_mingw.res
28 cat win32/libhpdf.rc.template | sed "s/_VERSION1/$_VERSION1/g;s/_VERSION2/$_VERSION2/g;s/_COMPILER/$_COMPILER/g" > win32/mingw/libhpdf_cygwin.rc
30 windres -O coff win32/mingw/libhpdf_cygwin.rc win32/mingw/libhpdf_cygwin.res
36 cat win32/libhpdf.rc.template | sed "s/_VERSION1/$_VERSION1/g;s/_VERSION2/$_VERSION2/g;s/_COMPILER/$_COMPILER/g" > win32/bcc32/libhpdf.rc
38 windres win32/bcc32/libhpdf.rc win32/bcc32/libhpdf.res
43 cat win32/libhpdf.rc.template | sed "s/_VERSION1/$_VERSION1/g;s/_VERSION2/$_VERSION2/g;s/_COMPILER/$_COMPILER/g" > win32/msvc/libhpdf.rc
45 windres win32/msvc/libhpdf.rc win32/msvc/libhpdf.res