File: mktest-clean

package info (click to toggle)
tkrev 9.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,972 kB
  • sloc: tcl: 30,582; sh: 2,296; makefile: 22; csh: 14
file content (62 lines) | stat: -rwxr-xr-x 1,417 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" -- ${1+"$@"}

set WD [pwd]

set CvsRoot [file join $WD "CVS_REPOSITORY"]
if {[ file isdirectory $CvsRoot ]} {
  file delete -force $CvsRoot
}
if {[ file isdirectory CVSROOT ]} {
  file delete -force CVSROOT
}
set oldirs [glob -nocomplain -- cvs_test*]
foreach od $oldirs {
  puts "Deleting $od"
  file delete -force $od
}

set SvnRoot [file join $WD "SVN_REPOSITORY"]
if {[ file isdirectory $SvnRoot ]} {
  file delete -force $SvnRoot
}
set oldirs [glob -nocomplain -- svn_test*]
foreach od $oldirs {
  puts "Deleting $od"
  file delete -force $od
}
set SvnRoot [file join $WD "SVN_NONCONFORM"]
if {[ file isdirectory $SvnRoot ]} {
  file delete -force $SvnRoot
}
set oldirs [glob -nocomplain -- svnnc_*]
foreach od $oldirs {
  puts "Deleting $od"
  file delete -force $od
}

set RcsRoot [file join $WD "RCS_REPOSITORY"]
if {[ file isdirectory $RcsRoot ]} {
  file delete -force $RcsRoot
}
set oldirs [glob -nocomplain -- rcs_test*]
foreach od $oldirs {
  puts "Deleting $od"
  file delete -force $od
}

set GitRoot [file join $WD "GIT_REPOSITORY.git"]
if {[ file isdirectory $GitRoot ]} {
  file delete -force $GitRoot
}
set oldirs [glob -nocomplain -- git_test*]
foreach od $oldirs {
  puts "Deleting $od"
  file delete -force $od
}
set oldirs [glob -nocomplain -- git_rcs_test*]
foreach od $oldirs {
  puts "Deleting $od"
  file delete -force $od
}