[Pkg-haskell-commits] darcs: haskell-devscripts: Add handy "run" shell function for better debugging

Joachim Breitner mail at joachim-breitner.de
Tue Apr 28 08:48:12 UTC 2015


Tue Apr 28 08:22:00 UTC 2015  Joachim Breitner <mail at joachim-breitner.de>
  * Add handy "run" shell function for better debugging

    M ./Dh_Haskell.sh +7
    M ./hlibrary.mk +3

Tue Apr 28 08:22:00 UTC 2015  Joachim Breitner <mail at joachim-breitner.de>
  * Add handy "run" shell function for better debugging
diff -rN -u old-haskell-devscripts/Dh_Haskell.sh new-haskell-devscripts/Dh_Haskell.sh
--- old-haskell-devscripts/Dh_Haskell.sh	2015-04-28 08:48:12.661099407 +0000
+++ new-haskell-devscripts/Dh_Haskell.sh	2015-04-28 08:48:12.685099402 +0000
@@ -1,3 +1,10 @@
+run () {
+  echo -n "Running"
+  printf " %q" "$@"
+  echo
+  "$@"
+}
+
 cpu(){
   ghc -e 'putStr System.Info.arch'
 }
diff -rN -u old-haskell-devscripts/hlibrary.mk new-haskell-devscripts/hlibrary.mk
--- old-haskell-devscripts/hlibrary.mk	2015-04-28 08:48:12.661099407 +0000
+++ new-haskell-devscripts/hlibrary.mk	2015-04-28 08:48:12.673099406 +0000
@@ -19,6 +19,9 @@
 
 export GREP_OPTIONS :=
 
+# DH_haskell.sh uses shell features
+export SHELL = /bin/bash
+
 # Set a dummy HOME variable upon build. Some build daemons do not set HOME, but
 # cabal expects it to be available.
 export HOME = /homedoesnotexistatbuildtime




More information about the Pkg-haskell-commits mailing list