Skip to content

Commit

Permalink
Merge pull request #3 from guidance-guarantee-programme/master
Browse files Browse the repository at this point in the history
Configure license from $PRINCE_LICENSE
  • Loading branch information
gjvis committed Dec 8, 2015
2 parents df76136 + 3dd3390 commit 8b83a83
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ echo "-----> Installing PrinceXML $PRINCE_VERSION"
[ -d .downloads ] || mkdir .downloads
(cd .downloads; [ -d "prince-$PRINCE_VERSION-linux-amd64-static" ] ||
curl -s http://www.princexml.com/download/prince-$PRINCE_VERSION-linux-generic-x86_64.tar.gz | tar xzf -)

if [ -f $3/PRINCE_LICENSE ]; then
echo " Configuring license file"
cp $3/PRINCE_LICENSE ./.downloads/prince-$PRINCE_VERSION-linux-generic-x86_64/lib/prince/license/license.dat
else
echo " No license found"
fi

echo $1 | ./.downloads/prince-$PRINCE_VERSION-linux-generic-x86_64/install.sh
cat >$1/bin/prince <<EOF
#!/bin/sh
Expand Down

0 comments on commit 8b83a83

Please sign in to comment.