forked from rjust/defects4j
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeps.sh
34 lines (28 loc) · 868 Bytes
/
deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
apt-get update -y && \
apt-get install software-properties-common -y && \
apt-get install -y openjdk-11-jdk \
git \
build-essential \
subversion \
perl \
curl \
unzip \
cpanminus \
make
if [ -d "/defects4j" ]; then
echo "/defects4j directory already exists, skipping the setup."
export PATH="$PATH:/defects4j/framework/bin"
echo 'export PATH="/defects4j/framework/bin:${PATH}"' >> ~/.bashrc
else
cd /
# Clone the Defects4J repository
git clone https://github.com/rjust/defects4j.git defects4j
# Install defects4j
cd /defects4j
cpanm -n Module::Pluggable
cpanm --installdeps .
./init.sh
export PATH="$PATH:/defects4j/framework/bin"
echo 'export PATH="/defects4j/framework/bin:${PATH}"' >> ~/.bashrc
fi