Skip to content
Snippets Groups Projects
Unverified Commit 23966d10 authored by Matthew Pickering's avatar Matthew Pickering Committed by Zubin
Browse files

packaging: Don't include configure scripts in windows bindist

Fixes #19868

(cherry picked from commit 5412730e)
parent 8a521714
No related branches found
No related tags found
No related merge requests found
...@@ -165,17 +165,19 @@ bindistRules = do ...@@ -165,17 +165,19 @@ bindistRules = do
-- shipping it -- shipping it
removeFile (bindistFilesDir -/- mingwStamp) removeFile (bindistFilesDir -/- mingwStamp)
-- We then 'need' all the files necessary to configure and install -- These scripts are only necessary in the configure/install
-- (as in, './configure [...] && make install') this build on some -- workflow which is not supported on windows.
-- other machine. -- TODO: Instead of guarding against windows, we could offer the
need $ map (bindistFilesDir -/-) -- option to make a relocatable, but not installable bindist on any
(["configure", "Makefile"] ++ bindistInstallFiles) -- platform.
wrappers <- fmap concat (sequence [ pkgToWrappers p | p <- all_pkgs, isProgram p]) unless windowsHost $ do
need $ map ((bindistFilesDir -/- "wrappers") -/-) wrappers -- We then 'need' all the files necessary to configure and install
-- (as in, './configure [...] && make install') this build on some
-- other machine.
-- IO.removeFile link_path <|> return () need $ map (bindistFilesDir -/-)
-- IO.createFileLink versioned_exe_name link_path (["configure", "Makefile"] ++ bindistInstallFiles)
wrappers <- fmap concat (sequence [ pkgToWrappers p | p <- all_pkgs, isProgram p])
need $ map ((bindistFilesDir -/- "wrappers") -/-) wrappers
let buildBinDist :: Compressor -> Action () let buildBinDist :: Compressor -> Action ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment