Skip to content

Commit

Permalink
moving haskell dependency files out of the way
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun committed Jul 10, 2016
1 parent 63432e7 commit 41deacd
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion etc/build/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rm -rf dist \
cabal.sandbox.config .cabal-sandbox \
src/RepositoryVersion.hs \
cabal.config \
cabal.config-${GHC_VERSION}
etc/hs-deps/cabal.config-${GHC_VERSION}

find . -name "*.prof" -delete
find . -name "*.hi" -delete
Expand Down
4 changes: 2 additions & 2 deletions etc/build/freeze-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
source ${SCRIPT_DIR}/default_envvars.sh
echo "Creating a cabal-freeze file for GHC ${GHC_VERSION}"
cabal freeze --enable-tests
cat cabal.config | grep -v ' base ==' > cabal.config-${GHC_VERSION}
cat cabal.config | grep -v ' base ==' > etc/hs-deps/cabal.config-${GHC_VERSION}
rm -f cabal.config
git diff cabal.config-${GHC_VERSION}
git diff etc/hs-deps/cabal.config-${GHC_VERSION}
8 changes: 4 additions & 4 deletions etc/build/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ esac

if [ ${GHC_VERSION} = "head" ] ; then
rm -f cabal.config
elif [ -f cabal.config-${GHC_VERSION} ]; then
cp cabal.config-${GHC_VERSION} cabal.config
echo "using a cabal freeze file: cabal.config-${GHC_VERSION}"
elif [ -f etc/hs-deps/cabal.config-${GHC_VERSION} ]; then
cp etc/hs-deps/cabal.config-${GHC_VERSION} cabal.config
echo "using a cabal freeze file: etc/hs-deps/cabal.config-${GHC_VERSION}"
else
echo "not using a cabal freeze file: cabal.config-${GHC_VERSION} not found"
echo "not using a cabal freeze file: etc/hs-deps/cabal.config-${GHC_VERSION} not found"
fi

# install conjure, finally
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 41deacd

Please sign in to comment.