5 Jul
2010
5 Jul
'10
1:18 a.m.
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> --- checkpkg | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/checkpkg b/checkpkg index 47fb672..7765d80 100755 --- a/checkpkg +++ b/checkpkg @@ -27,6 +27,12 @@ if [ "$arch" == 'any' ]; then CARCH='any' fi +TEMPDIR=$(mktemp /tmp/checkpkg-script.XXXX) +rm $TEMPDIR +mkdir -p $TEMPDIR + +cd $TEMPDIR + for _pkgname in ${pkgname[@]}; do pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT} oldstylepkgfile=${_pkgname}-${pkgver}-${pkgrel}${PKGEXT} @@ -90,3 +96,5 @@ for _pkgname in ${pkgname[@]}; do echo "No filename differences for $_pkgname." fi done + +echo "Files saved to $TEMPDIR" -- 1.7.1.1