cbd53b4a8c
The only thing lost is ./ghci Speed: make fast used to take 20 seconds here, when rebuilding from touching Command/Unused.hs. With cabal, it's 29 seconds.
20 lines
332 B
Haskell
20 lines
332 B
Haskell
{- /bin/sh handling
|
|
-
|
|
- Copyright 2013 Joey Hess <joey@kitenet.net>
|
|
-
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
-}
|
|
|
|
{-# LANGUAGE CPP #-}
|
|
|
|
module Utility.Shell where
|
|
|
|
shellPath :: FilePath
|
|
#ifndef __ANDROID__
|
|
shellPath = "/bin/sh"
|
|
#else
|
|
shellPath = "/system/bin/sh"
|
|
#endif
|
|
|
|
shebang :: String
|
|
shebang = "#!" ++ shellPath
|