Skip to content

Commit 2f142d5

Browse files
author
Daniel Kroening
committed
allow customizing the tar command for solver download
1 parent 7c0d750 commit 2f142d5

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

COMPILING.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,8 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
8888
```
8989
3. Get MiniSat2 by entering
9090
```
91-
cd cbmc-git
92-
wget http://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_2.2.1.orig.tar.gz
93-
gtar xfz minisat_2.2.1.orig.tar.gz
94-
mv minisat2-2.2.1 minisat-2.2.1
95-
(cd minisat-2.2.1; patch -p1 < ../scripts/minisat-2.2.1-patch)
91+
cd cbmc-git/src
92+
gmake minisat2-download DOWNLOADER=wget
9693
```
9794
4. Type
9895
```

src/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ $(patsubst %, %_clean, $(DIRS)):
8787
# minisat2 and glucose download, for your convenience
8888

8989
DOWNLOADER = lwp-download
90+
TAR = tar
9091

9192
minisat2-download:
9293
@echo "Downloading Minisat 2.2.1"
9394
@$(DOWNLOADER) http://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_2.2.1.orig.tar.gz
94-
@tar xfz minisat2_2.2.1.orig.tar.gz
95+
@$(TAR) xfz minisat2_2.2.1.orig.tar.gz
9596
@rm -Rf ../minisat-2.2.1
9697
@mv minisat2-2.2.1 ../minisat-2.2.1
9798
@(cd ../minisat-2.2.1; patch -p1 < ../scripts/minisat-2.2.1-patch)
@@ -100,7 +101,7 @@ minisat2-download:
100101
glucose-download:
101102
@echo "Downloading glucose-syrup"
102103
@$(DOWNLOADER) http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup.tgz
103-
@tar xfz glucose-syrup.tgz
104+
@$(TAR) xfz glucose-syrup.tgz
104105
@rm -Rf ../glucose-syrup
105106
@mv glucose-syrup ../
106107
@(cd ../glucose-syrup; patch -p1 < ../scripts/glucose-syrup-patch)

0 commit comments

Comments
 (0)