2014-03-12 04:17:51 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-04-04 17:51:27 -05:00
|
|
|
rm -f LICENSE *.cc *.h
|
2014-03-12 04:17:51 -05:00
|
|
|
git clone --depth 1 https://github.com/niklasso/minisat minisat_upstream
|
|
|
|
rm minisat_upstream/minisat/*/Main.cc
|
|
|
|
mv minisat_upstream/LICENSE minisat_upstream/minisat/*/*.{h,cc} .
|
|
|
|
rm -rf minisat_upstream
|
|
|
|
|
2014-07-20 18:00:39 -05:00
|
|
|
sed -i -e 's,^#include *"minisat/[^/]\+/\?,#include ",' *.cc *.h
|
2014-03-12 17:28:10 -05:00
|
|
|
sed -i -e 's/Minisat::memUsedPeak()/Minisat::memUsedPeak(bool)/' System.cc
|
|
|
|
sed -i -e 's/PRI[iu]64/ & /' Options.h Solver.cc
|
2017-11-23 22:34:46 -06:00
|
|
|
sed -i -e '1 i #ifndef __STDC_LIMIT_MACROS\n#define __STDC_LIMIT_MACROS\n#endif' *.cc
|
|
|
|
sed -i -e '1 i #ifndef __STDC_FORMAT_MACROS\n#define __STDC_FORMAT_MACROS\n#endif' *.cc
|
2014-04-20 07:17:40 -05:00
|
|
|
|
2014-07-24 20:31:16 -05:00
|
|
|
patch -p0 < 00_PATCH_mkLit_default_arg.patch
|
|
|
|
patch -p0 < 00_PATCH_remove_zlib.patch
|
2017-03-27 07:32:43 -05:00
|
|
|
patch -p0 < 00_PATCH_no_fpu_control.patch
|
2017-03-27 07:36:24 -05:00
|
|
|
patch -p0 < 00_PATCH_typofixes.patch
|
2019-11-11 03:23:06 -06:00
|
|
|
patch -p0 < 00_PATCH_wasm.patch
|