Diff for /scripts/pgallery/src/pgallery.sh between versions 1.27 and 1.28

version 1.27, 2013/04/03 08:14:52 version 1.28, 2017/12/07 14:24:00
Line 6 Line 6
 # can do whatever you want with this stuff. If we meet some day, and you think  # can do whatever you want with this stuff. If we meet some day, and you think
 # this stuff is worth it, you can buy me a beer in return Aron Schlesinger  # this stuff is worth it, you can buy me a beer in return Aron Schlesinger
 #  #
# $Paefchen: scripts/pgallery/src/pgallery.sh,v 1.26 2013/04/03 08:06:44 as Exp $# $Paefchen: scripts/pgallery/src/pgallery.sh,v 1.27 2013/04/03 08:14:52 as Exp $
 #  #
   
 . /usr/local/libexec/libpgallery  . /usr/local/libexec/libpgallery
Line 28  ARG_MAILFROM="PGallery <${USER}@${HOST}>" Line 28  ARG_MAILFROM="PGallery <${USER}@${HOST}>"
 ARG_URL=  ARG_URL=
 ARG_EXIF="0x920a 0x829d 0x829a ISO 0x8827 / 0x010f - 0x0110"  ARG_EXIF="0x920a 0x829d 0x829a ISO 0x8827 / 0x010f - 0x0110"
 ARG_INDEXIMG=  ARG_INDEXIMG=
   ARG_NOINDEX=
 ARG_STARTTS=  ARG_STARTTS=
 ARG_ENDTS=  ARG_ENDTS=
 ARG_LINK=  ARG_LINK=
Line 55  Options: Line 56  Options:
   -f files      gallery images    -f files      gallery images
   -h            this page    -h            this page
   -i name       index file name (default: $ARG_INDEX)    -i name       index file name (default: $ARG_INDEX)
     -x            ignore gallery on index
   -l url        gallery link    -l url        gallery link
   -m image      image for pgalleryindex. default the first image    -m image      image for pgalleryindex. default the first image
   -n name       page title (default: $ARG_TITLE)    -n name       page title (default: $ARG_TITLE)
Line 72  Options: Line 74  Options:
                 the syntax of the file is MAKE(1)                  the syntax of the file is MAKE(1)
                 supported variable: TITLE COPYRIGHT INDEX FILETYPES TNSIZE URL                  supported variable: TITLE COPYRIGHT INDEX FILETYPES TNSIZE URL
                                     TNQALITY BIGSIZE BIGQALITY MAILTO MAILFROM                                      TNQALITY BIGSIZE BIGQALITY MAILTO MAILFROM
                                    EXIF INDEXIMG LINK NAVI                                    EXIF INDEXIMG LINK NAVI NOINDEX
   -T mailto     send update infos to this address. if not set, no mail delivery    -T mailto     send update infos to this address. if not set, no mail delivery
   -U            no update, new calculation of all images.    -U            no update, new calculation of all images.
                 normally only new and modified images will calculated                  normally only new and modified images will calculated
Line 159  do Line 161  do
                         exit;;                          exit;;
                 -w)                  -w)
                         ARG_NAVI=1;;                          ARG_NAVI=1;;
                   -x)
                           ARG_NOINDEX=1;;
                 *)                  *)
                         echo "unknown argument $arg"                          echo "unknown argument $arg"
                         exit                          exit
Line 174  if [ "$ARG_INFOFILE" != "" ] Line 178  if [ "$ARG_INFOFILE" != "" ]
 then  then
         test -f $ARG_INFOFILE || err "info file not found \`\`$ARG_INFOFILE''"          test -f $ARG_INFOFILE || err "info file not found \`\`$ARG_INFOFILE''"
         for n in TITLE COPYRIGHT INDEX FILETYPES TNSIZE TNQALITY BIGSIZE \          for n in TITLE COPYRIGHT INDEX FILETYPES TNSIZE TNQALITY BIGSIZE \
                BIGQALITY MAILTO MAILFROM URL EXIF INDEXIMG LINK NAVI                BIGQALITY MAILTO MAILFROM URL EXIF INDEXIMG NOINDEX LINK NAVI
         do          do
                 v=$(make -f $ARG_INFOFILE -V$n)                  v=$(make -f $ARG_INFOFILE -V$n)
                 test "$v" = "" && continue                  test "$v" = "" && continue
Line 239  test "$ARG_INDEXIMG" = "" && ARG_INDEXIMG=$(echo $FLIS Line 243  test "$ARG_INDEXIMG" = "" && ARG_INDEXIMG=$(echo $FLIS
   
 # find start and end ts  # find start and end ts
 ARG_STARTTS=$(get_exif_ts $(echo $FLIST | awk '{print $1}'))  ARG_STARTTS=$(get_exif_ts $(echo $FLIST | awk '{print $1}'))
   # XXX:
   if [ "$ARG_STARTTS" = "-1" ]
   then
           ARG_STARTTS=$(get_exif_ts $(echo $FLIST | awk '{print $2}'))
   fi
 ARG_ENDTS=$(get_exif_ts $(echo $FLIST | awk '{print $NF}'))  ARG_ENDTS=$(get_exif_ts $(echo $FLIST | awk '{print $NF}'))
   
 # find new and to update images  # find new and to update images

Removed from v.1.27  
changed lines
  Added in v.1.28