regress/replace-interpreter: ensure order of targets
This commit is contained in:
parent
21f3a65861
commit
825bbe2a20
3 changed files with 41 additions and 0 deletions
31
regress/replace-interpreter/Makefile
Normal file
31
regress/replace-interpreter/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
# $NetBSD: Makefile,v 1.1 2020/05/09 18:25:28 rillig Exp $
|
||||
#
|
||||
# Ensures that replace-interpreter comes before check-portability.
|
||||
# Without this, it would not be possible to quickly and easily patch
|
||||
# bash programs that declare /bin/sh as their interpreter.
|
||||
#
|
||||
|
||||
PKGNAME= replace-interpreter-2020.05.09
|
||||
CATEGORIES= pkgtools
|
||||
DISTFILES= # none
|
||||
|
||||
COMMENT= Ensures correct order of replace-interpreter
|
||||
LICENSE= 2-clause-bsd
|
||||
|
||||
USE_TOOLS+= printf chmod bash
|
||||
WRKSRC= ${WRKDIR}
|
||||
BUILD_DIRS= # none
|
||||
DESCR_SRC= /dev/null
|
||||
AUTO_MKDIRS= yes
|
||||
|
||||
REPLACE_BASH= command
|
||||
|
||||
do-extract:
|
||||
${RUN} printf '%s\n' '#! /bin/sh' 'test a == b' > ${WRKSRC}/command
|
||||
${RUN} chmod +x ${WRKSRC}/command
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/command \
|
||||
${DESTDIR}${PREFIX}/bin/regress-replace-interpreter
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
2
regress/replace-interpreter/PLIST
Normal file
2
regress/replace-interpreter/PLIST
Normal file
|
@ -0,0 +1,2 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2020/05/09 18:25:28 rillig Exp $
|
||||
bin/regress-replace-interpreter
|
8
regress/replace-interpreter/spec
Normal file
8
regress/replace-interpreter/spec
Normal file
|
@ -0,0 +1,8 @@
|
|||
# $NetBSD: spec,v 1.1 2020/05/09 18:25:28 rillig Exp $
|
||||
|
||||
MAKEARGS_TEST="install"
|
||||
MAKEARGS_CLEAN="deinstall clean"
|
||||
|
||||
check_result() {
|
||||
exit_status 0
|
||||
}
|
Loading…
Reference in a new issue