Experimental package creation tool for MinGW.org
Revision | e61d0779ca4f7cdb1444daf92019bb2955ebe794 (tree) |
---|---|
Zeit | 2022-03-12 19:30:54 |
Autor | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Identify mkspec target directory more intelligently.
* src/modules/mkspec.sh (SPECSFILE_DIR): Assign it as...
[SRCDIR defined] (SRCDIR): ...this; otherwise assign it as...
[! SRCDIR defined] (PACKAGE_SRCDIR): ...this.
@@ -38,8 +38,8 @@ | ||
38 | 38 | # |
39 | 39 | ${write_stdout=false} || { |
40 | 40 | local SPECSFILE SPECSFILE_DIR |
41 | - SPECSFILE_DIR=${PACKAGE_SRCDIR-"."}/arch/${ARCH-"mingw32"} | |
42 | 41 | SPECSFILE=$PACKAGE-$VERSION${ARCH+"-$ARCH"}.pkgspec |
42 | + SPECSFILE_DIR=${SRCDIR-${PACKAGE_SRCDIR-"."}}/arch/${ARCH-"mingw32"} | |
43 | 43 | test -e "$SPECSFILE_DIR/$SPECSFILE" && { |
44 | 44 | ${force_overwrite-false} || { |
45 | 45 | ${edit_mode-false} || { |