OSDN Git Service

Add a warning when building commands out of pending.
[android-x86/external-toybox.git] / scripts / make.sh
index e827a5c..9fbf086 100755 (executable)
@@ -66,6 +66,11 @@ CFLAGS="$CFLAGS $(cat generated/cflags)"
 BUILD="$(echo ${CROSS_COMPILE}${CC} $CFLAGS -I . $OPTIMIZE $GITHASH)"
 FILES="$(echo lib/*.c main.c $TOYFILES)"
 
+if [ "${FILES/pending//}" != "$FILES" ]
+then
+  echo -e "\n\033[1;31mwarning: using unfinished code from toys/pending\033[0m"
+fi
+
 genbuildsh()
 {
   # Write a canned build line for use on crippled build machines.