From d5642a0041cbc6b737a26d817b128073c0ef6202 Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 28 Oct 2008 09:24:39 +0000 Subject: [PATCH] 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 --- test/nightly_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1