Skip to content

Commit

Permalink
Merge branch 'master' of github.com:batterseapower/scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
batterseapower committed Mar 1, 2012
2 parents 6a0e71b + 19b3c9f commit 6d91744
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cabal-inplace
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@
#

if [ $# -lt 1 ] ; then
echo "Usage: $0 ../ghc/stage2-inplace"
echo "Usage: $0 <ghc-dir> <cabal options>"
exit 1
fi

INPLACE_DIR=$(cd $1; pwd)
shift; CABAL_ARGS=$*
INPLACE_DIR=$(cd $1/inplace; pwd); shift

# Want to produce commands like the following:
# cabal install --with-compiler=/Users/mbolingbroke/Programming/Checkouts/ghc.transfer2/ghc/stage2-inplace/ghc ghc-syb --package-db=/Users/mbolingbroke/Programming/Checkouts/ghc.transfer2/inplace-datadir/./package.conf
echo "cabal $CABAL_ARGS --with-compiler=$INPLACE_DIR/ghc --package-db=$INPLACE_DIR/../../inplace-datadir/package.conf"
cabal $CABAL_ARGS --with-compiler=$INPLACE_DIR/ghc --package-db=$INPLACE_DIR/../../inplace-datadir/package.conf
cabal $* --with-ghc=$INPLACE_DIR/bin/ghc-stage2 --with-ghc-pkg=$INPLACE_DIR/bin/ghc-pkg --package-db=$INPLACE_DIR/lib/package.conf.d
8 changes: 8 additions & 0 deletions tabful-haskell
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

echo "=== Files not containing tabs:"
find . -iname '*.lhs' -o -iname '*.hs' | xargs grep -v -R -H -l $'\t'

echo
echo "=== Files containing tabs:"
find . -iname '*.lhs' -o -iname '*.hs' | xargs grep -R -H -l $'\t'

0 comments on commit 6d91744

Please sign in to comment.