Skip to content

Commit

Permalink
updates to set environment
Browse files Browse the repository at this point in the history
  • Loading branch information
keegnotrub committed Oct 7, 2013
1 parent 0fbfd54 commit 9b87951
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@

echo "-----> Installing Ghostscript 9.10"

cd $1
curl https://elbongurk-public.s3.amazonaws.com/ghostscript.tgz -s -O
mkdir -p vendor/gs
tar -C vendor/gs -xvf ghostscript.tgz
BUILD_DIR=$1
PACKAGE="https://elbongurk-public.s3.amazonaws.com/ghostscript.tgz"
LOCATION="$BUILD_DIR/vendor/gs"

mkdir -p $LOCATION
curl $PACKAGE -s -o - | tar xzf - -C $LOCATION

echo "-----> Building runtime environment for Ghostscript"

mkdir -p $BUILD_DIR/.profile.d
echo "export PATH=\"$LOCATION/bin:\$PATH\"" > $BUILD_DIR/.profile.d/ghostscript.sh
2 changes: 1 addition & 1 deletion bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
cat <<EOF
---
config_vars:
PATH: /app/vendor/gs/bin:$PATH
PATH: bin:/usr/local/bin:/usr/bin:/bin
EOF

0 comments on commit 9b87951

Please sign in to comment.