Reverted addition of .exe to Windows executables in cabalize.

It seems that Cabal does not expect these extensions.  Better
to handle this in the Makefile.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@191 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2006-12-13 17:42:14 +00:00
parent cc26d7cfed
commit 00fff7d940

View file

@ -38,11 +38,7 @@ if printf "$cabal_version\n1.1.3" | sort | tail -n 1 | grep -q '1\.1\.3'; then
HS_SOURCE_DIRS='Hs-Source-Dir'
fi
# If running Windows/Cygwin, add .exe to executable name
EXTENSION=$(uname | tr 'A-Z' 'a-z' | sed -ne 's/^cygwin.*$/\.exe/p')
sed -e "s#@HCFLAGS@#$HCFLAGS#g" \
-e "s#@BUILD_DEPENDS@#$BUILD_DEPENDS#g" \
-e "s#@HS_SOURCE_DIRS@#$HS_SOURCE_DIRS#g" \
-e "s#@VERSION@#$PANDOC_VERSION#g" \
-e "s#^\(Executable:[[:space:]]*pandoc\)#\1$EXTENSION#g"
-e "s#@VERSION@#$PANDOC_VERSION#g"