Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Cache version in build file
Browse files Browse the repository at this point in the history
Since we added flags and want to be sure it's recompiled.
  • Loading branch information
henrik committed Sep 6, 2018
1 parent f3cf9ef commit b78e1ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ IMAGE_MAGICK_VERSION="$(cat $ENV_DIR/IMAGE_MAGICK_VERSION)"
IMAGE_MAGICK_SHA="$(cat $ENV_DIR/IMAGE_MAGICK_SHA)"
IMAGE_MAGICK_HOST="$(cat $ENV_DIR/IMAGE_MAGICK_HOST)"

CACHE_FILE="$CACHE_DIR/imagemagick-$IMAGE_MAGICK_VERSION.tar.gz"
# Bump this cache version if you e.g. change build script flags.
CACHE_FILE="$CACHE_DIR/imagemagick-$IMAGE_MAGICK_VERSION-v1.tar.gz"

if [ ! -f $CACHE_FILE ]; then
# install imagemagick
Expand Down

0 comments on commit b78e1ef

Please sign in to comment.