artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c32774
)
Switch to build user if run as root. Prompt output $ or # affects test.
author
bluhm
<bluhm@openbsd.org>
Tue, 4 Jul 2017 23:54:52 +0000
(23:54 +0000)
committer
bluhm
<bluhm@openbsd.org>
Tue, 4 Jul 2017 23:54:52 +0000
(23:54 +0000)
regress/bin/ksh/edit/Makefile
patch
|
blob
|
history
diff --git
a/regress/bin/ksh/edit/Makefile
b/regress/bin/ksh/edit/Makefile
index
23fe460
..
3d823be
100644
(file)
--- a/
regress/bin/ksh/edit/Makefile
+++ b/
regress/bin/ksh/edit/Makefile
@@
-5,10
+5,13
@@
SRCS= edit.c
CFLAGS+= -Wall
LDADD+= -lutil
+# Switch to build user if run as root. Prompt output $ or # affects test.
+SU!!= if [ "$$USER" = root ]; then echo su build; else echo sh; fi
+
emacs: edit
-
@sh
${.CURDIR}/emacs.sh ${.CURDIR}
+
${SU}
${.CURDIR}/emacs.sh ${.CURDIR}
vi: edit
-
@sh
${.CURDIR}/vi.sh ${.CURDIR}
+
${SU}
${.CURDIR}/vi.sh ${.CURDIR}
.include <bsd.regress.mk>