* Purging files
@ 2002-04-28 21:56 Nigel King
2002-04-29 21:03 ` Henning Hraban Ramm
0 siblings, 1 reply; 2+ messages in thread
From: Nigel King @ 2002-04-28 21:56 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 720 bytes --]
Enclosed is a script for purging the debris left behind by texexec
compilation.
After some time using ConTeXt I find the disc gets many extra files and it
becomes difficult to find the files of interest.
It should work on Unix and Linux systems. It looks for *.tuo files in all of
the directories in /Users/ by default. Wherever it finds one it first runs
texutil --purge and then deletes the tuo file.
Install in your bin folder and then run rehash. The command texpurge.tcsh
should now be active. The full command is 'texpurge.tcsh <directory>' where
directory is the top of the search tree.
Use with caution this is a powerful command. It assumes that *.tuo files are
exclusively for ConTeXt.
regards
--
Nigel
[-- Attachment #2: texpurge.tcsh --]
[-- Type: application/octet-stream, Size: 396 bytes --]
#!/usr/bin/tclsh
# Install Mathematica fonts into tetex
set startdir [lindex $argv 0]
if {$startdir == ""} {
set startdir "/Users"
}
puts "find $startdir -name *.tuo"
set files [split [exec find $startdir -name "*.tuo"] "\n"]
puts "files = $files"
foreach file $files {
set dir [file dirname $file]
puts "dir = $dir"
cd $dir
exec texutil --purge ;# >&@ stdout
file delete $file
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Purging files
2002-04-28 21:56 Purging files Nigel King
@ 2002-04-29 21:03 ` Henning Hraban Ramm
0 siblings, 0 replies; 2+ messages in thread
From: Henning Hraban Ramm @ 2002-04-29 21:03 UTC (permalink / raw)
Cc: ConTeXt-ML
Am Sonntag, 28. April 2002 23:56 schrieb Nigel King:
> Enclosed is a script for purging the debris left behind by texexec
> compilation.
did you try "texutil --purge" before?
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
---
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-29 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-28 21:56 Purging files Nigel King
2002-04-29 21:03 ` Henning Hraban Ramm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).