Codebase list ponyprog / 8531dac
d/rules: convert ponyprog.html to utf-8 if needed Carsten Schoenert 3 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1616
1717 ICON_SIZES=128x128 64x64 48x48 32x32 24x24 16x16
1818
19 # detect the encoding of the file ponyprog.html
20 HTML_FILE_ENCODING = $(shell file -b --mime-encoding distribution/innosetup/ponyprog.html)
1921 # out of tree build folder for application
2022 DEB_BUILD_DIR=debian/build
2123 # default install folder
4244 # configuring PonyProg application #
4345 ####################################
4446 dh_auto_configure --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR) -- $(DEB_PONYPROG_CMAKE_OPTS)
47 # convert ponyprog.html to utf-8 if needed
48 if [ "$(HTML_FILE_ENCODING)" != "utf-8" ]; then \
49 mv ./distribution/innosetup/ponyprog.html ./distribution/innosetup/ponyprog.html.in ;\
50 iconv -f $(HTML_FILE_ENCODING) -t utf8 ./distribution/innosetup/ponyprog.html.in > ./distribution/innosetup/ponyprog.html ;\
51 fi
4552
4653 override_dh_auto_build:
4754 dh_auto_build --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)