comparison 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
comparison
equal deleted inserted replaced
471:cbe68fc0e933 472:c8dd56aed76d
73 usage 73 usage
74 exit 74 exit
75 fi 75 fi
76 76
77 FIND_STRING="find $* -maxdepth 10000 -type f " 77 FIND_STRING="find $* -maxdepth 10000 -type f "
78 78 EXTENSIONS_TO_FIND='\.cpp\|\.c\|\.S\|\.pd'
79 C_FILES=$($FIND_STRING -name "*.c") 79 FOUND_FILES=$($FIND_STRING | grep "$EXTENSIONS_TO_FIND")
80 CPP_FILES=$($FIND_STRING -name "*.cpp") 80 if [ -z "$FOUND_FILES" ]
81 ASM_FILES=$($FIND_STRING -name "*.S")
82
83 if [ -z "$C_FILES" ] && [ -z "$CPP_FILES" ] && [ -z "$ASM_FILES" ]
84 then 81 then
85 echo "Please provide a directory containing .c, .cpp or .S files." 82 printf "ERROR: Please provide a directory containing .c, .cpp, .S or .pd files.\n\n"
86 # echo "Usage: $THIS_SCRIPT [directory-with-source-files]" 83 # echo "Usage: $THIS_SCRIPT [directory-with-source-files]"
87 usage 84 usage
88 exit 85 exit
89 fi 86 fi
90 87