changeset 2855:e126b9acab32 lwtools-port

rules.mak: Do not hardcode path for "echo" It is basically the only tool with full path here and I don't see any reason for it. We don't use special echo options that would fail on the shell built-in echo. Also don't hardcode path for losetup. sudo should make sure you have the relevant location in your path, and that the path is sanitized, otherwise your sudo setup is broken.
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 13 Jul 2013 11:30:31 +0200
parents 87130746d4d9
children 84d284e812cd
files rules.mak
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rules.mak	Sat Jul 13 01:28:39 2013 +0200
+++ b/rules.mak	Sat Jul 13 11:30:31 2013 +0200
@@ -62,7 +62,7 @@
 RM		= rm -f
 MERGE		= cat
 MOVE		= mv
-ECHO		= /bin/echo
+ECHO		= echo
 CD		= cd
 CP		= os9 copy -o=0
 CPL		= $(CP) -l
@@ -87,8 +87,8 @@
 PADROM		= os9 padrom
 MOUNT		= sudo mount
 UMOUNT		= sudo umount
-LOREMOVE	= sudo /sbin/losetup -d
-LOSETUP		= sudo /sbin/losetup
+LOREMOVE	= sudo losetup -d
+LOSETUP		= sudo losetup
 LINK		= ln
 SOFTLINK	= $(LINK) -s
 ARCHIVE		= zip -D -9 -j