Fix bertos copy command to work also on Mac OS, and exit when there is error. Use...
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 28 Oct 2008 09:24:39 +0000 (09:24 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 28 Oct 2008 09:24:39 +0000 (09:24 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1902 38d2e660-2303-0410-9eaa-f027e97ec537

test/nightly_test.sh

index fcdb23efb0bdfa5bbd57c8d63346b810920f5439..cb132d9db187a711acdb466d76f169051191f1fa 100755 (executable)
@@ -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