X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=src%2Flibswift%2Fmfold%2Fcompile.default.sh;fp=src%2Flibswift%2Fmfold%2Fcompile.default.sh;h=45f999ac4885a162fee52c5e92d81de042b075b2;hb=45963a7511531cd1656ad5d3847d2dafd015c54d;hp=0000000000000000000000000000000000000000;hpb=d069796805ad79542fd7e4406d1e9c6d2d8c2ef7;p=swifty.git diff --git a/src/libswift/mfold/compile.default.sh b/src/libswift/mfold/compile.default.sh new file mode 100644 index 0000000..45f999a --- /dev/null +++ b/src/libswift/mfold/compile.default.sh @@ -0,0 +1,20 @@ +if [ -e ~/.building_swift ]; then + exit 0 +fi + +touch ~/.building_swift + +cd swift || exit 1 +if [ ! -d bin ]; then mkdir bin; fi +git pull origin $BRANCH:$BRANCH || exit 2 +rm bin/swift-pg bin/swift-o3 bin/swift-dbg + +g++ -I. *.cpp ext/seq_picker.cpp -pg -o bin/swift-pg & +g++ -I. *.cpp ext/seq_picker.cpp -g -o bin/swift-dbg & +g++ -I. *.cpp ext/seq_picker.cpp -O3 -o bin/swift-o3 & +wait +if [ ! -e bin/swift-pg ]; then exit 4; fi +if [ ! -e bin/swift-dbg ]; then exit 5; fi +if [ ! -e bin/swift-o3 ]; then exit 6; fi + +rm ~/.building_swift