From 78d6c0bc5fb5033c2ad8235fac4f2da27230850f Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Sat, 13 Mar 2010 23:12:51 +0100 Subject: [PATCH] Changed the name of GP_ARCHIVE_DIR to IMAGE_ARCHIVE_DIR. --- archivepics.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/archivepics.sh b/archivepics.sh index d96db4e..afaf5d4 100755 --- a/archivepics.sh +++ b/archivepics.sh @@ -24,14 +24,14 @@ # accompanying JPG for the MOV) # (3) Move the JPG and MOV to an archive directory of the form -# ${GP_ARCHIVE_DIR}/year/month, create the directory when necessary. +# ${IMAGE_ARCHIVE_DIR}/year/month, create the directory when necessary. [[ ${archive_size_min} ]] || archive_size_min=1048576 # 1Mb set -e -if [[ ! ${GP_ARCHIVE_DIR} ]]; then - echo "You have to set \$GP_ARCHIVE_DIR" >&2 +if [[ ! ${IMAGE_ARCHIVE_DIR} ]]; then + echo "You have to set \$IMAGE_ARCHIVE_DIR" >&2 exit 1 fi @@ -83,10 +83,10 @@ for i in "$@"; do ARCHIVING_PATH=$(ls -l --time-style=+%Y/%b --format=verbose $i | awk '{ print $6 }') - mkdir -p ${GP_ARCHIVE_DIR}/${ARCHIVING_PATH} + mkdir -p ${IMAGE_ARCHIVE_DIR}/${ARCHIVING_PATH} - echo "Archiving ${GP_ARCHIVE_DIR}/${ARCHIVING_PATH}/$(basename $i)" + echo "Archiving ${IMAGE_ARCHIVE_DIR}/${ARCHIVING_PATH}/$(basename $i)" - cp -p -i $i ${GP_ARCHIVE_DIR}/${ARCHIVING_PATH} + cp -p -i $i ${IMAGE_ARCHIVE_DIR}/${ARCHIVING_PATH} done -- 2.39.5