Wherps, should have done this first
but now that I'm doing it, I might as well capture setup in a script...
This commit is contained in:
parent
73764bd0db
commit
8df2a13cd2
8
algs4/.gitignore
vendored
Normal file
8
algs4/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
algs4.jar
|
||||
bin/
|
||||
checkstyle-5.4/
|
||||
checkstyle.zip
|
||||
drjava.jar
|
||||
findbugs-1.3.9/
|
||||
findbugs.zip
|
||||
stdlib.jar
|
52
algs4/setup
Executable file
52
algs4/setup
Executable file
@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
mkdir -p bin
|
||||
test -f drjava.jar || wget http://algs4.cs.princeton.edu/linux/drjava.jar
|
||||
if [ ! -f bin/drjava ]
|
||||
then
|
||||
wget http://algs4.cs.princeton.edu/linux/drjava
|
||||
chmod 700 drjava
|
||||
mv drjava bin/
|
||||
fi
|
||||
test -f stdlib.jar || wget http://algs4.cs.princeton.edu/code/stdlib.jar
|
||||
test -f algs4.jar || wget http://algs4.cs.princeton.edu/code/algs4.jar
|
||||
if [ ! -d checkstyle-5.4 ]
|
||||
then
|
||||
wget http://algs4.cs.princeton.edu/linux/checkstyle.zip
|
||||
unzip checkstyle.zip
|
||||
fi
|
||||
if [ ! -d findbugs-1.3.9 ]
|
||||
then
|
||||
wget http://algs4.cs.princeton.edu/linux/findbugs.zip
|
||||
unzip findbugs.zip
|
||||
fi
|
||||
if [ ! -f checkstyle-5.4/checkstyle.xml ]
|
||||
then
|
||||
wget http://algs4.cs.princeton.edu/linux/checkstyle.xml
|
||||
mv checkstyle.xml checkstyle-5.4
|
||||
fi
|
||||
if [ ! -f findbugs-1.3.9/findbugs.xml ]
|
||||
then
|
||||
wget http://algs4.cs.princeton.edu/linux/findbugs.xml
|
||||
mv findbugs.xml findbugs-1.3.9
|
||||
fi
|
||||
if [ ! -f bin/checkstyle ]
|
||||
then
|
||||
wget http://algs4.cs.princeton.edu/linux/checkstyle
|
||||
chmod 700 checkstyle
|
||||
mv checkstyle bin
|
||||
fi
|
||||
if [ ! -f bin/findbugs ]
|
||||
then
|
||||
wget http://algs4.cs.princeton.edu/linux/findbugs
|
||||
chmod 700 findbugs
|
||||
mv findbugs bin
|
||||
fi
|
||||
if [ ! -f bin/config.sh ]
|
||||
then
|
||||
wget http://algs4.cs.princeton.edu/linux/config.sh
|
||||
mv config.sh bin
|
||||
fi
|
Loading…
Reference in New Issue
Block a user