fix prolog executor and instructions
This commit is contained in:
parent
2ca831f822
commit
87b124c737
|
@ -16,7 +16,8 @@ apt-get update
|
|||
apt-get install -y \
|
||||
nano wget build-essential pkg-config libxml2-dev \
|
||||
libsqlite3-dev mono-complete curl cmake libpython2.7-dev \
|
||||
ruby libtinfo-dev unzip git openssl libssl-dev sbcl libevent-dev
|
||||
ruby libtinfo-dev unzip git openssl libssl-dev sbcl libevent-dev \
|
||||
ninja-build
|
||||
|
||||
# install python2
|
||||
# final binary: /opt/python2/Python-2.7.17/python
|
||||
|
@ -294,7 +295,7 @@ rm $SUB_DIR.tar.gz
|
|||
cd $SUB_DIR
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DSWIPL_PACKAGES_JAVA=OFF -DSWIPL_PACKAGES_X=OFF -DMULTI_THREADED=OFF -G Ninja ..
|
||||
cmake -DSWIPL_PACKAGES_JAVA=OFF -DSWIPL_PACKAGES_X=OFF -DMULTI_THREADED=OFF -DINSTALL_DOCUMENTATION=OFF -G Ninja ..
|
||||
ninja
|
||||
echo "export PATH=\$PATH:/opt/swipl/$SUB_DIR/build/src" >> /opt/.profile
|
||||
source /opt/.profile
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
cd /tmp/$1
|
||||
|
||||
sed 's/^.*$/:- forall((Goal = (\0), call(Goal)), (write(Goal), nl))./' input.input |
|
||||
cat code.code - > code.pl
|
||||
sed 's/^.*$/:- forall((Goal = (\0), call(Goal)), (write(Goal), nl))./' stdin.stdin |
|
||||
cat code.code - > code.pl
|
||||
|
||||
timeout -s KILL 3 swipl -g true -t halt code.pl
|
||||
|
||||
|
|
Loading…
Reference in New Issue