[Vm-dev] [commit][2966] Add exit traps to the linux build scripts
gettimothy
gettimothy at zoho.com
Wed Jun 11 00:08:49 UTC 2014
---- On Tue, 10 Jun 2014 16:14:34 -0700 Eliot Miranda <eliot.miranda at gmail.com> wrote ----
...
Add an exit trap though:
#!/bin/bash
trap 'exit 2' HUP INT PIPE TERM 0
for d in newspeak.cog.* newspeak.stack.* squeak.*; do
if test -d "$d"; then
(cd $d;./makeallclean)
else
echo no $d directory found
fi
done
Freaking awesome.
I have added this technique to my notes.
Thank you for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20140610/bebc2737/attachment.htm
More information about the Vm-dev
mailing list