projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4500f7
)
Changed the name of GP_ARCHIVE_DIR to IMAGE_ARCHIVE_DIR.
author
Francois Fleuret
<francois@fleuret.org>
Sat, 13 Mar 2010 22:12:51 +0000
(23:12 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Sat, 13 Mar 2010 22:12:51 +0000
(23:12 +0100)
archivepics.sh
patch
|
blob
|
history
diff --git
a/archivepics.sh
b/archivepics.sh
index
d96db4e
..
afaf5d4
100755
(executable)
--- 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
# 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
[[ ${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
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 }')
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
done