From: asterix Date: Tue, 28 Oct 2008 09:24:39 +0000 (+0000) Subject: Fix bertos copy command to work also on Mac OS, and exit when there is error. Use... X-Git-Tag: 2.0.0~32 X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=commitdiff_plain;h=d5642a0041cbc6b737a26d817b128073c0ef6202 Fix bertos copy command to work also on Mac OS, and exit when there is error. Use single quote to not allow the shell to expand perl command. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1902 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/test/nightly_test.sh b/test/nightly_test.sh index fcdb23ef..cb132d9d 100755 --- a/test/nightly_test.sh +++ b/test/nightly_test.sh @@ -35,10 +35,10 @@ MAKEFILE_TEST_DIR="." TEST_DIR="test" #Copy BeRTOS sources -cp -a bertos/ bertos.saved/ +cp -R bertos/ bertos.saved/ || exit 1 #Strip away TODOs and FIXME -find bertos/ -name "*.[ch]"|xargs perl -p -i -e "s/^\s*#warning\s*(TODO|FIXME).*//g;" +find bertos/ -name "*.[ch]" | xargs perl -p -i -e 's/^\s*#warning\s*(TODO|FIXME).*//g;' #Cpu target that we want to test