From: Nigel King <king@dircon.co.uk>
Subject: Purging files
Date: Sun, 28 Apr 2002 22:56:02 +0100 [thread overview]
Message-ID: <B8F22E83.818F%king@dircon.co.uk> (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
}
next reply other threads:[~2002-04-28 21:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-28 21:56 Nigel King [this message]
2002-04-29 21:03 ` Henning Hraban Ramm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B8F22E83.818F%king@dircon.co.uk \
--to=king@dircon.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).