fix build in clean tree
removeDirectoryRecursive fails if the directory DNE.
This commit is contained in:
parent
88e5ebcda7
commit
bdfe6f7420
1 changed files with 4 additions and 2 deletions
|
@ -155,12 +155,14 @@ installLocales topdir = cp "/usr/share/i18n" (topdir </> "i18n")
|
||||||
installSkel :: FilePath -> FilePath -> IO ()
|
installSkel :: FilePath -> FilePath -> IO ()
|
||||||
#ifdef darwin_HOST_OS
|
#ifdef darwin_HOST_OS
|
||||||
installSkel topdir basedir = do
|
installSkel topdir basedir = do
|
||||||
removeDirectoryRecursive basedir
|
whenM (doesDirectoryExist basedir) $
|
||||||
|
removeDirectoryRecursive basedir
|
||||||
unlessM (boolSystem "cp" [Param "-R", File "standalone/osx/git-annex.app", File basedir]) $
|
unlessM (boolSystem "cp" [Param "-R", File "standalone/osx/git-annex.app", File basedir]) $
|
||||||
error "cp failed"
|
error "cp failed"
|
||||||
#else
|
#else
|
||||||
installSkel topdir _basedir = do
|
installSkel topdir _basedir = do
|
||||||
removeDirectoryRecursive topdir
|
whenM (doesDirectoryExist topdir) $
|
||||||
|
removeDirectoryRecursive topdir
|
||||||
unlessM (boolSystem "cp" [Param "-R", File "standalone/linux/skel", File topdir]) $
|
unlessM (boolSystem "cp" [Param "-R", File "standalone/linux/skel", File topdir]) $
|
||||||
error "cp failed"
|
error "cp failed"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue