From a41a84d02789431d7e2e3475a16093c48a81b700 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 23 Jan 2012 11:29:50 +0400 Subject: [PATCH] Avoid message "Must specify package names on the command line" --- smake.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smake.sh b/smake.sh index d95bfc6..07319c2 100755 --- a/smake.sh +++ b/smake.sh @@ -61,8 +61,8 @@ while true ; do done # ======= Show Environment ======= -INCLUDES="$INCLUDES `pkg-config --cflags $PACKAGES`" -REP_LIBS="$REP_LIBS `pkg-config --libs $PACKAGES`" +INCLUDES="$INCLUDES `pkg-config --cflags $PACKAGES 2>/dev/null`" +REP_LIBS="$REP_LIBS `pkg-config --libs $PACKAGES 2>/dev/null`" SOURCES="`echo $SOURCES | sed 's~ ~\n~g' | sort -u | tr '\n' ' '`" PACKAGES="`echo $PACKAGES | sed 's~ ~\n~g' | sort -u | tr '\n' ' '`" INCLUDES="`echo $INCLUDES | sed 's~ ~\n~g' | sort -u | tr '\n' ' '`"