message: improve naming of variables used in MD5 conversion script
diff: # This script should be called from build directory (OSPRay root should be in ../)
  #
  # Usage:
  -# export CI_TARGET_MACHINE_PATH=user@machine-name:/target/path
  -# export BASELINE_MD5_DIR=/dir/with/md5/hashes
  -# export BASELINE_DIR=/dir/with/files/to/be/synced
  +# export BASELINE_OUTPUT_DIR=user@machine-name:/target/path
  +# export BASELINE_MD5_OUTPUT_DIR=/dir/with/md5/hashes
  +# export BASELINE_INPUT_IMAGES_DIR=/dir/with/files/to/be/synced
  # ../scripts/files-to-md5.sh
  @@ -28,21 +28,21 @@ md5 () {
  md5sum $1 | awk '{print $1 }'
  }
  -if [[ ! $CI_TARGET_MACHINE_PATH ]]
  +if [[ ! $BASELINE_OUTPUT_DIR ]]
  then
  - echo "Please set CI_TARGET_MACHINE_PATH env variable"
  + echo "Please set BASELINE_OUTPUT_DIR env variable"
  exit 1
  fi
  -if [[ ! $BASELINE_MD5_DIR ]]
  +if [[ ! $BASELINE_MD5_OUTPUT_DIR ]]
  then
  - echo "Please set BASELINE_MD5_DIR env variable"
  + echo "Please set BASELINE_MD5_OUTPUT_DIR env variable"
  exit 1
  fi
  -if [[ ! $BASELINE_DIR ]]
  +if [[ ! $BASELINE_INPUT_IMAGES_DIR ]]
  then
  - echo "Please set BASELINE_DIR env variable"
  + echo "Please set BASELINE_INPUT_IMAGES_DIR env variable"
  exit 1
  fi
  @@ -56,15 +56,15 @@ mkdir $LOCAL_TMP_DIR
  # From now on any command should stop executing script
  set -e
  -for FILE in $BASELINE_DIR/*; do
  +for FILE in $BASELINE_INPUT_IMAGES_DIR/*; do
  # Copy file to local tmp directory with new name (based on md5 from this img)
  cp $FILE $LOCAL_TMP_DIR/`md5 $FILE`
  # Create/Filll metadata file in ospray repo
  # so we can link img in remote repo by this md5 string
  - md5 $FILE > $BASELINE_MD5_DIR/`basename $FILE`.md5
  + md5 $FILE > $BASELINE_MD5_OUTPUT_DIR/`basename $FILE`.md5
  done
  # Copy all files (only when there is need to update) to target CI machine
  -rsync --progress -au --no-o --no-g $LOCAL_TMP_DIR/* $CI_TARGET_MACHINE_PATH
  +rsync --progress -au --no-o --no-g $LOCAL_TMP_DIR/* $BASELINE_OUTPUT_DIR
  # Another cleanup - we don't want to leave any files locally
  rm -rf $LOCAL_TMP_DIR/*
  