diff scripts/build_project.sh @ 472:c8dd56aed76d prerelease

Pd projects are build just like regular projects, so no need for run_pd_libpd anymore
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 20 Jun 2016 18:23:05 +0100
parents 67c45feec3c3
children 8e48dd7c8c23
line wrap: on
line diff
--- a/scripts/build_project.sh	Mon Jun 20 18:06:29 2016 +0100
+++ b/scripts/build_project.sh	Mon Jun 20 18:23:05 2016 +0100
@@ -75,14 +75,11 @@
 fi
 
 FIND_STRING="find $* -maxdepth 10000 -type f "
-
-C_FILES=$($FIND_STRING -name "*.c")
-CPP_FILES=$($FIND_STRING -name "*.cpp")
-ASM_FILES=$($FIND_STRING -name "*.S")
-
-if [ -z "$C_FILES" ] && [ -z "$CPP_FILES" ] && [ -z "$ASM_FILES" ]
+EXTENSIONS_TO_FIND='\.cpp\|\.c\|\.S\|\.pd'
+FOUND_FILES=$($FIND_STRING | grep "$EXTENSIONS_TO_FIND")
+if [ -z "$FOUND_FILES" ]
 then
-    echo "Please provide a directory containing .c, .cpp or .S files."
+    printf "ERROR: Please provide a directory containing .c, .cpp, .S or .pd files.\n\n"
 #    echo "Usage: $THIS_SCRIPT [directory-with-source-files]"
     usage
     exit