aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2004-01-27 07:15:42 +0000
committerBen Elliston <bje@gnu.org>2004-01-27 07:15:42 +0000
commit0aa48021a97e0011b901a19f55f63c9687601d8c (patch)
tree3f483bceb7bcd3015e95ee6f9f5124cade6a62a3
parentc8c2d8e95f16b47bf33338bc294a619c42d41732 (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 b679516..4cc7dfc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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-12 Ben Elliston <bje@wasabisystems.com>
* baseboards/frv-sim.exp: Remove reference to devo/sim.
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