makepkg: add srcdir and pkgdir variables

We already have $startdir, so this introduces two more shorthand variables
for the most commonly accessed directories.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2007-05-30 14:32:04 -04:00
parent f4d6efeee0
commit b3535db2aa
1 changed files with 6 additions and 4 deletions

View File

@ -35,7 +35,9 @@ TEXTDOMAINDIR='@localedir@'
export TEXTDOMAINDIR
myver='@PACKAGE_VERSION@'
startdir=$(pwd)
startdir="$(pwd)"
srcdir="$startdir/src"
pkgdir="$startdir/pkg"
# Only use ABSROOT if we haven't been passed a SRCROOT on the command line.
if [ -z "$SRCROOT" ]; then
@ -284,9 +286,9 @@ handledeps() {
exit 1
fi
success=0
for pkgdir in $candidates; do
if [ -f "$pkgdir/$BUILDSCRIPT" ]; then
cd "$pkgdir"
for packagedir in $candidates; do
if [ -f "$packagedir/$BUILDSCRIPT" ]; then
cd "$packagedir"
if [ "$RMDEPS" = "1" ]; then
PKGDEST="$PKGDEST" makepkg -i -c -b -r
else