aboutsummaryrefslogtreecommitdiff
path: root/Build/BundledPrograms.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <id@joeyh.name>2013-05-14 19:59:14 -0500
committerGravatar Joey Hess <id@joeyh.name>2013-05-14 19:59:14 -0500
commitc838b0ae045452f693ebdac22b81eb02e06f44d1 (patch)
tree58f63c35f3dedea4d46b33875a4080c25bfaa8b1 /Build/BundledPrograms.hs
parentb3372adb7e6c6dca8809e15278fd83c5ca394322 (diff)
windows installer is fully working
Diffstat (limited to 'Build/BundledPrograms.hs')
-rwxr-xr-xBuild/BundledPrograms.hs46
1 files changed, 46 insertions, 0 deletions
diff --git a/Build/BundledPrograms.hs b/Build/BundledPrograms.hs
new file mode 100755
index 000000000..570af4adf
--- /dev/null
+++ b/Build/BundledPrograms.hs
@@ -0,0 +1,46 @@
+{- Bundled programs
+ -
+ - Copyright 2013 Joey Hess <joey@kitenet.net>
+ -
+ - Licensed under the GNU GPL version 3 or higher.
+ -}
+
+{-# LANGUAGE CPP #-}
+
+module Build.BundledPrograms where
+
+import Data.Maybe
+
+import Build.SysConfig as SysConfig
+
+{- Programs that git-annex uses, to include in the bundle.
+ -
+ - These may be just the command name, or the full path to it. -}
+bundledPrograms :: [FilePath]
+bundledPrograms = catMaybes
+ [ Nothing
+#ifndef mingw32_HOST_OS
+ -- git is not included in the windows bundle
+ , Just "git"
+#endif
+ , Just "cp"
+ , Just "xargs"
+ , Just "rsync"
+ , Just "ssh"
+#ifndef mingw32_HOST_OS
+ , Just "sh"
+#endif
+ , ifset SysConfig.gpg "gpg"
+ , ifset SysConfig.curl "curl"
+ , ifset SysConfig.wget "wget"
+ , ifset SysConfig.bup "bup"
+ , SysConfig.lsof
+ , SysConfig.sha1
+ , SysConfig.sha256
+ , SysConfig.sha512
+ , SysConfig.sha224
+ , SysConfig.sha384
+ ]
+ where
+ ifset True s = Just s
+ ifset False _ = Nothing