aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2004-01-27 07:14:56 +0000
committerBen Elliston <bje@gnu.org>2004-01-27 07:14:56 +0000
commit74bedcbd4d46ad9c1cd9af4cd624e46a74d4a4b0 (patch)
tree7ebee470277f513e17dac133af6bc6b780f4f26f
parent57d8e1e3c01e78f2b4ce17b8f13c0b3d8d05f853 (diff)
* Clean.tcl: Run tclsh via /usr/bin/env for portability.
(cleanfiles): Concatenate regular filenames that match .*.
-rw-r--r--ChangeLog5
-rwxr-xr-xClean.tcl3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index db21b9a..3f2d1ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2004-01-27 Ben Elliston <bje@wasabisystems.com>
+ * Clean.tcl: Run tclsh via /usr/bin/env for portability.
+ (cleanfiles): Concatenate regular filenames that match .*.
+
+2004-01-27 Ben Elliston <bje@wasabisystems.com>
+
* doc/overview: Remove all files.
2003-12-03 Ben Elliston <bje@wasabisystems.com>
diff --git a/Clean.tcl b/Clean.tcl
index b671d4e..0e8a954 100755
--- a/Clean.tcl
+++ b/Clean.tcl
@@ -1,4 +1,4 @@
-#!/usr/bin/tclsh
+#!/usr/bin/env tclsh
# Clean.tcl
# This script is used to remove all unwanted files from a
@@ -114,6 +114,7 @@ proc cleanfiles { directory } {
# get a list of all the files in this directory
set allfiles [glob -nocomplain "$directory/*"]
+ concat allfiles [glob -nocomplain -type f "$directory/.*"]
regsub -all "$directory/" $allfiles "" allfiles
# open the .clean file, which has the list of stuff we