From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: Bit manipulation
Date: 2000/11/22
Date: 2000-11-22T00:00:00+00:00 [thread overview]
Message-ID: <slrn91n4o1.id.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: uem05kqn8.fsf@gsfc.nasa.gov
* Stephen Leake wrote:
>lutz@iks-jena.de (Lutz Donnerhacke) writes:
>> Giving something back to the community (bash scripts to ease development):
>> <snip bash scripts>
>
>These scripts may be useful, and they even may be well written. But
>since there are no comments, and no other descriptions of what they
>are supposed to do, or why I might want to use them, I can't tell!
>
>Bash syntax includes comments; please use them!
Ok.
function clearall() { # unlinks all temporary files can be regenerated
for i in *.ad[bs]; do # all Ada source files
if [ -s "$i" ]; then # existing ones
j="${i%.*}" # remove extension
rm -fv "$i"~ "$i".bak "$j".o "$j".ali "b_$j".c "$j".s ?~"$j".ad[bs]
fi
done
for i in *.[hc] *.cpp; do # all C or C++ source files
if [ -s "$i" ]; then
j="${i%.*}"
rm -fv "$i"~ "$i".bak "$j".o "$j".s
fi
done
for i in *.tex; do # all TeX or LaTeX sources
if [ -s "$i" ]; then
j="${i%.*}"
rm -fv "$i"~ "$i".bak "$j".dvi "$j".aux "$j".toc "$j".lo[ftg]
rm -fv "$j".glo "$j".idx "$j".ilg "$j".ind "$j".ind.aux
fi
done
for i in *.mf; do # all METAFONT sources
if [ -s "$i" ]; then
j="${i%.*}"
rm -fv "$i"~ "$i".bak "$j".dvi "$j".log "$j".[1-9]*gf
fi
done
for i in *.web; do # all Web sources (meta programming/documentation l.)
if [ -s "$i" ]; then
j="${i%.*}"
rm -fv "$i"~ "$j".p "$j".tex
fi
done
rm -fv *.txt{~,.bak} # all editor backups of text files
}
\f
#! /bin/sh
DEST="$1"
if [ -z "$DEST" ]; then # no argument given => choose best match
for DEST in *adb; do # try all files with real work
[ -s $(basename "$DEST" b)s ] || break # select those w/o specification
done
fi
DEST=$(basename "$DEST" .adb) # remove extension
if gnatmake `[ -s .gnat_opts ] && cat .gnat_opts` "$DEST"; then
# Compiles without errors
[ -d html/ ] && # there is a documentation directory
[ ! -s html/index.htm -o "$DEST" -nt html/index.htm ] && # remake necessary
gnathtml.pl -f -d "$DEST"
fi
--
the \year=2001 TeX calendar; IKS Garamond, 2000; ISBN 3-934601-10-3
next prev parent reply other threads:[~2000-11-22 0:00 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-07 0:00 Bit manipulation Sandro Binetti
2000-11-07 0:00 ` Larry Kilgallen
2000-11-07 0:00 ` John English
2000-11-08 0:00 ` gdemont
2000-11-08 0:00 ` Robert Dewar
2000-11-08 0:00 ` Sandro Binetti
2000-11-08 0:00 ` Dale Stanbrough
2000-11-09 0:00 ` Sandro Binetti
2000-11-09 0:00 ` gdemont
2000-11-09 0:00 ` Ken Garlington
2000-11-10 0:00 ` Scott Ingram
2000-11-08 0:00 ` gdemont
2000-11-09 4:00 ` Ken Garlington
2000-11-09 0:00 ` Larry Kilgallen
2000-11-09 0:00 ` Ken Garlington
2000-11-08 0:00 ` Nicolas Brunot
2000-11-09 3:59 ` Ken Garlington
2000-11-09 4:52 ` Robert Dewar
2000-11-08 0:00 ` gdemont
2000-11-08 0:00 ` Larry Kilgallen
2000-11-09 4:50 ` Robert Dewar
2000-11-10 0:00 ` Lao Xiao Hai
2000-11-09 4:47 ` Robert Dewar
2000-11-09 0:00 ` gdemont
2000-11-11 0:00 ` Redryder
2000-11-11 0:00 ` Jeff Carter
2000-11-11 0:00 ` Redryder
2000-11-12 2:07 ` Ken Garlington
2000-11-12 5:56 ` Jeff Carter
2000-11-12 0:00 ` Robert Dewar
2000-11-12 0:00 ` tmoran
2000-11-13 0:00 ` Robert Dewar
2000-11-14 0:00 ` Marc A. Criley
2000-11-13 0:54 ` Ken Garlington
2000-11-12 6:40 ` tmoran
2000-11-13 0:00 ` Lutz Donnerhacke
2000-11-13 0:00 ` Robert Dewar
2000-11-13 0:00 ` Lutz Donnerhacke
2000-11-13 0:00 ` Robert Dewar
2000-11-13 0:00 ` Lutz Donnerhacke
2000-11-13 0:00 ` Robert Dewar
2000-11-13 0:00 ` Lutz Donnerhacke
2000-11-13 0:00 ` Robert Dewar
2000-11-13 0:00 ` Lutz Donnerhacke
2000-11-13 0:00 ` Pat Rogers
2000-11-13 0:00 ` Brian Rogoff
2000-11-13 0:00 ` Pat Rogers
2000-11-13 0:00 ` F. Britt Snodgrass
2000-11-15 0:00 ` Lutz Donnerhacke
2000-11-14 0:00 ` Georg Bauhaus
2000-11-15 0:00 ` Lutz Donnerhacke
2000-11-14 0:00 ` Martin Dowie
2000-11-15 0:00 ` Lutz Donnerhacke
2000-11-20 0:00 ` Randy Brukardt
2000-11-21 0:00 ` Lutz Donnerhacke
2000-11-21 0:00 ` Stephen Leake
2000-11-22 0:00 ` Lutz Donnerhacke [this message]
2000-11-08 7:18 ` Sandro Binetti
2000-11-07 0:00 ` gdemont
2000-11-08 7:22 ` Sandro Binetti
2000-11-10 7:24 ` Thank you all for your contribution ! Sandro Binetti
-- strict thread matches above, loose matches on Subject: below --
2005-02-07 12:37 Bit manipulation Maurizio
2005-02-07 13:20 ` Martin Krischik
2005-02-07 15:32 ` Martin Dowie
2005-02-07 18:04 ` Martin Krischik
2005-02-08 0:32 ` Randy Brukardt
2005-02-08 3:11 ` Steve
2005-02-08 18:51 ` tmoran
1999-04-04 0:00 bit manipulation Jack Chow
1999-04-04 0:00 ` Matthew Heaney
1999-04-05 0:00 ` dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox