Skip to content

Commit

Permalink
Minor tweaks to vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Feb 3, 2021
1 parent 96a98d5 commit d72842a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ VENDOR_DIR="$BUILD_DIR/vendor"
INSTALL_DIR="$VENDOR_DIR/gs/bin"
mkdir -p $INSTALL_DIR
INSTALL_FILE="$INSTALL_DIR/gs"
CACHE_FILE="$CACHE_DIR/gs"
PACKAGE_DIR="ghostscript-$GHOSTSCRIPT_VERSION-linux-x86_64"
PACKAGE_FILE="$PACKAGE_DIR.tgz"
PACKAGE_URL="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$GHOSTSCRIPT_VERSION_NUMBERS_ONLY/$PACKAGE_FILE"
CACHE_FILE="$CACHE_DIR/gs"
DOWNLOADED_BIN_FILE="$VENDOR_DIR/$PACKAGE_DIR/gs-$GHOSTSCRIPT_VERSION_NUMBERS_ONLY-linux-x86_64"

if [ ! -f $CACHE_FILE ]; then
echo "-----> Downloading Ghostscript from $PACKAGE_URL"
Expand All @@ -51,7 +50,7 @@ if [ ! -f $CACHE_FILE ]; then
tar xvf $VENDOR_DIR/$PACKAGE_FILE | indent

echo "-----> Caching Ghostscript installation"
mv $DOWNLOADED_BIN_FILE $CACHE_FILE
mv $VENDOR_DIR/$PACKAGE_DIR/gs-$GHOSTSCRIPT_VERSION_NUMBERS_ONLY-linux-x86_64 $CACHE_FILE
fi

echo "-----> Copying binaries"
Expand Down

0 comments on commit d72842a

Please sign in to comment.