From 3e3bb4260766082847fb162baf1a99aa4fbf7c49 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 14 Aug 2008 21:33:56 +0200 Subject: Moving win32-loader inclusion support from external hook into main program (Closes: #476546). --- helpers/lh_binary_includes | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'helpers/lh_binary_includes') diff --git a/helpers/lh_binary_includes b/helpers/lh_binary_includes index 6954377c0..c90e75c9c 100755 --- a/helpers/lh_binary_includes +++ b/helpers/lh_binary_includes @@ -164,5 +164,20 @@ then sed -i -e "s|DEBIAN_NAME|${DEBIAN_NAME}|g" -e "s|DEBIAN_DATE|${DEBIAN_DATE}|g" -e "s|DEBIAN_TOOLS|${DEBIAN_TOOLS_TXT}|g" binary/README.txt fi +# Copying win32-loader +if [ "${LH_WIN32_LOADER}" = "enabled" ] +then + case "${LH_ARCHITECTURE}" in + amd64|i386) + if Find_files /usr/lib/win32-loader/* + then + cp /usr/lib/win32-loader/* binary + else + Echo_warning "win32-loader inclusion is enabled but not found, ignoring." + fi + ;; + esac +fi + # Creating stage file Create_stagefile .stage/binary_includes -- cgit v1.2.3