Skip to content

Commit

Permalink
Allow install -y to skip the individual overwrite links
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Sep 16, 2016
1 parent c88ba63 commit 9711ab7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ source=`pwd`
templates=~/.pandoc/templates
latex=`kpsexpand '$TEXMFHOME/tex/latex/dwp'`
bin=/usr/local/bin
if [ "$1" = "-y" ]
then
iarg=""
else
iarg="-i"
fi

cat <<EOF
DWP-Installation
Expand All @@ -23,14 +29,14 @@ EOF
read dolink
if [ "$dolink" = "j" ]
then
install='ln -s -v -i'
install='ln -s -v -f'
else
install='cp -r -p -v -i'
install='cp -r -p -v'
fi


mkdir -p "$templates"
$install "$source/DWP.latex" "$source"/*.csl "$templates/"
$install $iarg "$source/DWP.latex" "$source"/*.csl "$templates/"
mkdir -p "$latex"
$install "$source"/img/* "$latex/"
sudo $install "$source/dwp.py" "$bin/dwp"
$install $iarg "$source"/img/* "$latex/"
sudo $install $iarg "$source/dwp.py" "$bin/dwp"

0 comments on commit 9711ab7

Please sign in to comment.