pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

smake: Make pkglint happy



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By:	micha
Date:		Thu Sep 27 15:19:14 2018 +0200
Changeset:	03b63cc7e7797400b27af4f7c4eddff721702cde

Modified Files:
	smake/Makefile.common

Log Message:
smake: Make pkglint happy

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=03b63cc7e7797400b27af4f7c4eddff721702cde

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 smake/Makefile.common | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diffs:
diff --git a/smake/Makefile.common b/smake/Makefile.common
index 2bf568663a..d5023e5a7b 100644
--- a/smake/Makefile.common
+++ b/smake/Makefile.common
@@ -19,10 +19,10 @@ MAKE_FLAGS+=	CCOM=cc
 # Some rules were copied from old packages (that are now part of schilytools
 # too) to not break what people have done in the past.
 pre-configure:
-	@printf "Create OS rules...\n"
-	@cd ${WRKSRC}/RULES && . ${WRKSRC}/RULES/MKLINKS
-	@printf "Create pkgsrc OS rules...\n"
-	@cd ${WRKSRC}/RULES && unset r ;				\
+	printf "Create OS rules...\n"
+	cd ${WRKSRC}/RULES && . ${WRKSRC}/RULES/MKLINKS
+	printf "Create pkgsrc OS rules...\n"
+	cd ${WRKSRC}/RULES && unset r ;				\
 	for i in arm mipsel x86_64 sparc64 powerpc ;			\
 	do								\
 		r="$$r i386-netbsd-gcc.rul@$$i-netbsd-gcc.rul" ;	\
@@ -40,16 +40,16 @@ pre-configure:
 									\
 	for i in $$r ;							\
 	do								\
-		existing=$$(printf "%s\n" $$i | ${SED} -e 's/@.*//') ;	\
-		target=$$(printf "%s\n" $$i | ${SED} -e 's/.*@//') ;	\
+		existing=`printf "%s\\n" $$i | ${SED} -e 's/@.*//'` ;	\
+		target=`printf "%s\\n" $$i | ${SED} -e 's/.*@//'` ;	\
 		printf "%s " "$$target";				\
-		if ! test -e "$$existing" ;				\
+		if ! ${TEST} -e "$$existing" ;				\
 		then							\
 			printf "(Link target %s not present)\n"		\
 				"$$existing";				\
 			continue ;					\
 		fi;							\
-		if ! test -e "$$target" ;				\
+		if ! ${TEST} -e "$$target" ;				\
 		then							\
 			${LN} -s "$$existing" "$$target" ;		\
 			printf "(created)\n" ;				\


Home | Main Index | Thread Index | Old Index