#!/bin/sh

rm -rf niecza

# remove stale compiled file slipping through the cracks
rm -r ~/.local/share/NieczaModuleCache

git clone git://github.com/sorear/niecza.git
cd niecza
ln -s ../../roast t/spec
echo "#!/usr/bin/env perl" > perl6
echo 'exec "ulimit -t 15; ulimit -v 1260720; nice -20 mono ./run/Niecza.exe @ARGV"' >> perl6
chmod a+x ./perl6
make all
mono ./run/Niecza.exe -e "say 'BUILD SETTING'"
/home/coke/perl5/perlbrew/perls/perl-5.14.2/bin/perl t/spec/test_summary niecza 2>&1 | tee ../niecza_summary.out

#!/bin/sh

rm -rf niecza
git clone git://github.com/sorear/niecza.git
cd niecza
ln -s ../../roast t/spec
echo "#!/usr/bin/env perl" > perl6
echo 'exec "ulimit -t 15; ulimit -v 1260720; nice -20 mono ./run/Niecza.exe @ARGV"' >> perl6
chmod a+x ./perl6
make all
mono ./run/Niecza.exe -e "say 'BUILD SETTING'"
/home/coke/perl5/perlbrew/perls/perl-5.14.2/bin/perl t/spec/test_summary niecza 2>&1 | tee ../niecza_summary.out

--- 
+++ 
@@ -1,6 +1,10 @@
 #!/bin/sh
 
 rm -rf niecza
+
+# remove stale compiled file slipping through the cracks
+rm -r ~/.local/share/NieczaModuleCache
+
 git clone git://github.com/sorear/niecza.git
 cd niecza
 ln -s ../../roast t/spec
Remove stale file on every build.
