Don't use rm-old-pkg option by default.
authorChris Hanson <org/chris-hanson/cph>
Thu, 21 Nov 2002 03:39:51 +0000 (03:39 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 21 Nov 2002 03:39:51 +0000 (03:39 +0000)
v7/src/edwin/Clean.sh
v7/src/etc/Clean.sh

index e1af8594579c4faa49e126985246c4c4aaa3b3a2..7d4303a1a6bacf36a5335d20be1ef4bef125a3ca 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh
 #
-# $Id: Clean.sh,v 1.6 2002/11/20 19:45:57 cph Exp $
+# $Id: Clean.sh,v 1.7 2002/11/21 03:39:51 cph Exp $
 #
-# Copyright (c) 2000, 2001 Massachusetts Institute of Technology
+# Copyright (c) 2000, 2001, 2002 Massachusetts Institute of Technology
 #
 # This file is part of MIT Scheme.
 #
@@ -29,7 +29,7 @@ if [ $# -ne 1 ]; then
     exit 1
 fi
 
-../etc/Clean.sh "${1}" rm-bin rm-com rm-pkg
+../etc/Clean.sh "${1}"
 
 echo "rm -f edwin-unx.* edwin-w32.* edwin-os2.* edwin.bld"
 rm -f edwin-unx.* edwin-w32.* edwin-os2.* edwin.bld
index 83404c7a2ae8fbbbbaadf7ee14882667dc6aaf69..d38676315939e4b731aa21657de928a00a0341dd 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh
 #
-# $Id: Clean.sh,v 1.7 2002/11/20 19:46:05 cph Exp $
+# $Id: Clean.sh,v 1.8 2002/11/21 03:39:27 cph Exp $
 #
-# Copyright (c) 2000, 2001 Massachusetts Institute of Technology
+# Copyright (c) 2000, 2001, 2002 Massachusetts Institute of Technology
 #
 # This file is part of MIT Scheme.
 #
 # The working directory must be the build directory.
 
 if [ $# -eq 1 ]; then
-    COMMAND="$1"
-    KEYWORDS="rm-bin rm-com rm-old-pkg rm-pkg"
+    COMMAND="${1}"
+    KEYWORDS="rm-bin rm-com rm-pkg"
 elif [ $# -ge 2 ]; then
-    COMMAND="$1"
+    COMMAND="${1}"
     shift
     KEYWORDS="$*"
 else
@@ -36,31 +36,48 @@ else
     exit 1
 fi
 
+FULL="no"
+DIST="no"
+MAINTAINER="no"
 case "${COMMAND}" in
-mostlyclean | clean)
+mostlyclean)
+    ;;
+clean)
+    FULL="yes"
     ;;
 distclean)
+    FULL="yes"
+    DIST="yes"
+    ;;
+maintainer-clean)
+    FULL="yes"
+    DIST="yes"
+    MAINTAINER="yes"
+    ;;
+*)
+    echo "$0: Unknown command ${COMMAND}"
+    exit 1
+    ;;
+esac
+
+if [ "${DIST}" = "yes" ]; then
     if [ -f Makefile.in ] && [ -f Makefile ]; then
        echo "rm Makefile"
        rm Makefile
     fi
-    ;;
-maintainer-clean)
+fi
+
+if [ "${MAINTAINER}" = "yes" ]; then
     for FN in .edwin-ffi Clean.sh Makefile Setup.sh Stage.sh Tags.sh; do
        if [ -L ${FN} ]; then
            echo "rm ${FN}"
            rm ${FN}
        fi
     done
-    ;;
-*)
-    echo "$0: Unknown command ${1}"
-    exit 1
-    ;;
-esac
+fi
 
 for KEYWORD in ${KEYWORDS}; do
-    case ${KEYWORD} in
+    case "${KEYWORD}" in
     rm-bin)
        echo "rm -f *.bin *.ext"
        rm -f *.bin *.ext