diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-07-11 13:45:51 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-07-11 13:45:51 +0200 |
commit | a01ed3869cb03952a6891b1746087cc1134b7187 (patch) | |
tree | 1dc05d0810a43f2f72110149efed90e4be9d2f9a | |
parent | e656ec7052d90a2501f31ed350137e81ea3136ae (diff) | |
download | devtools-a01ed3869cb03952a6891b1746087cc1134b7187.tar.gz devtools-a01ed3869cb03952a6891b1746087cc1134b7187.tar.xz |
checkpkg: Use temporary working directory
-rwxr-xr-x | checkpkg | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -27,6 +27,9 @@ if [ "$arch" == 'any' ]; then CARCH='any' fi +TEMPDIR=$(mktemp -d /tmp/checkpkg-script.XXXX) +cd $TEMPDIR + for _pkgname in ${pkgname[@]}; do pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT} oldstylepkgfile=${_pkgname}-${pkgver}-${pkgrel}${PKGEXT} @@ -90,3 +93,5 @@ for _pkgname in ${pkgname[@]}; do echo "No filename differences for $_pkgname." fi done + +echo "Files saved to $TEMPDIR" |