summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-05-07 13:50:34 +0000
committerIan Lynagh <igloo@earth.li>2009-05-07 13:50:34 +0000
commit36091517e6b1d87b8dacd5168fcc464ac75f65bd (patch)
tree4f1cb4d37de6523ea2f0322462d30b46551137b2
parented4beb8bc5e49d84e38b047c2dfc14eb22c74607 (diff)
downloadhaskell-36091517e6b1d87b8dacd5168fcc464ac75f65bd.tar.gz
Rename pwd to ghc-pwd
-rw-r--r--aclocal.m414
-rw-r--r--ghc.mk7
-rw-r--r--utils/ghc-pwd/Setup.hs (renamed from utils/pwd/Setup.hs)0
-rw-r--r--utils/ghc-pwd/ghc-pwd.cabal (renamed from utils/pwd/pwd.cabal)6
-rw-r--r--utils/ghc-pwd/ghc-pwd.hs (renamed from utils/pwd/pwd.hs)2
-rw-r--r--validate2
6 files changed, 17 insertions, 14 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index b43d7f5e27..14e6e2156a 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1243,19 +1243,19 @@ AC_DEFUN([FP_FIND_ROOT],[
AC_MSG_CHECKING(for path to top of build tree)
dnl This would be
-dnl make -C utils/pwd clean && make -C utils/pwd
+dnl make -C utils/ghc-pwd clean && make -C utils/ghc-pwd
dnl except we don't want to have to know what make is called. Sigh.
-if test ! -f utils/pwd/pwd && test ! -f utils/pwd/pwd.exe; then
- cd utils/pwd
+if test ! -f utils/ghc-pwd/ghc-pwd && test ! -f utils/ghc-pwd/ghc-pwd.exe; then
+ cd utils/ghc-pwd
rm -f *.o
rm -f *.hi
- rm -f pwd
- rm -f pwd.exe
- $WithGhc -v0 --make pwd -o pwd
+ rm -f ghc-pwd
+ rm -f ghc-pwd.exe
+ $WithGhc -v0 --make ghc-pwd -o ghc-pwd
cd ../..
fi
-hardtop=`utils/pwd/pwd`
+hardtop=`utils/ghc-pwd/ghc-pwd`
if ! test -d "$hardtop"; then
AC_MSG_ERROR([cannot determine current directory])
diff --git a/ghc.mk b/ghc.mk
index 8c917ca6a2..687f72da40 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -722,7 +722,7 @@ $(eval $(call bindist,.,\
mk/config.mk.in \
$(INPLACE_BIN)/mkdirhier \
$(INPLACE_BIN)/ghc-cabal \
- utils/pwd/pwd \
+ utils/ghc-pwd/ghc-pwd \
$(BINDIST_WRAPPERS) \
$(BINDIST_LIBS) \
$(BINDIST_HI) \
@@ -865,7 +865,10 @@ endif
.PHONY: clean
-CLEAN_FILES += utils/pwd/pwd utils/pwd/pwd.exe utils/pwd/pwd.hi utils/pwd/pwd.o
+CLEAN_FILES += utils/ghc-pwd/ghc-pwd
+CLEAN_FILES += utils/ghc-pwd/ghc-pwd.exe
+CLEAN_FILES += utils/ghc-pwd/ghc-pwd.hi
+CLEAN_FILES += utils/ghc-pwd/ghc-pwd.o
clean : clean_files
.PHONY: clean_files
diff --git a/utils/pwd/Setup.hs b/utils/ghc-pwd/Setup.hs
index 9a994af677..9a994af677 100644
--- a/utils/pwd/Setup.hs
+++ b/utils/ghc-pwd/Setup.hs
diff --git a/utils/pwd/pwd.cabal b/utils/ghc-pwd/ghc-pwd.cabal
index cff48f8a36..173b3cc1ee 100644
--- a/utils/pwd/pwd.cabal
+++ b/utils/ghc-pwd/ghc-pwd.cabal
@@ -1,4 +1,4 @@
-Name: pwd
+Name: ghc-pwd
Version: 0.1
Copyright: XXX
License: BSD
@@ -14,8 +14,8 @@ cabal-version: >=1.2
Flag base3
Description: Choose the new smaller, split-up base package.
-Executable pwd
- Main-Is: pwd.hs
+Executable ghc-pwd
+ Main-Is: ghc-pwd.hs
if flag(base3)
Build-Depends: base >= 3 && < 5,
directory >= 1 && < 1.1
diff --git a/utils/pwd/pwd.hs b/utils/ghc-pwd/ghc-pwd.hs
index 694941643d..91a5606ac3 100644
--- a/utils/pwd/pwd.hs
+++ b/utils/ghc-pwd/ghc-pwd.hs
@@ -13,7 +13,7 @@ main = do
[] -> do d <- getCurrentDirectory
putStr $ map forwardifySlashes d
_ -> do hPutStrLn stderr ("Bad args: " ++ show args)
- hPutStrLn stderr "Usage: pwd"
+ hPutStrLn stderr "Usage: ghc-pwd"
exitFailure
forwardifySlashes :: Char -> Char
diff --git a/validate b/validate
index 94de1cd20e..375d2c1785 100644
--- a/validate
+++ b/validate
@@ -80,7 +80,7 @@ if [ $no_clean -eq 0 ]; then
./configure --prefix="$INSTDIR" $config_args
fi
-thisdir=`utils/pwd/pwd`
+thisdir=`utils/ghc-pwd/ghc-pwd`
echo "Validating=YES" > mk/are-validating.mk