provide a global temporary directory
authorBert Wesarg <bert.wesarg@googlemail.com>
Wed, 20 Oct 2010 20:17:46 +0000 (22:17 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 2 Nov 2010 21:00:41 +0000 (22:00 +0100)
commit52cbcb78ed100ce2d7ac28d98f6694a77a6a1235
tree1bb28d3aac81c452cf775a3f9a3ae1bf28203571
parent2670b3333351c8f15bceabdbf6b3bbc17a25dd0e
provide a global temporary directory

The standard procedure 'tmp=mktemp; trap "rm $tmp" 0' was broken with the
introduction of the pager. Which overwrites the trap itself to close and
remove the pager fifo.

Now tg provides a temp playground and all other temp files should be created
inside this directory and only this directory will be removed with the exit
trap. setup_pager still overwrites the trap, but keeps the rm command from
the global temp directory. To simplify this the new function get_temp() is
provided.

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
hooks/pre-commit.sh
tg-export.sh
tg-info.sh
tg-mail.sh
tg-patch.sh
tg-push.sh
tg-summary.sh
tg-update.sh
tg.sh