Diff for /scripts/pgallery/src/pgalleryindex.sh between versions 1.2 and 1.6

version 1.2, 2012/08/31 15:58:03 version 1.6, 2017/12/07 14:24:00
Line 1 Line 1
#!/bin/sh#!/usr/local/libexec/pgallerysh
 #  #
# THE BEER-WARE LICENSE 2012# THE BEER-WARE LICENSE 2012,13
 
 # <as@paefchen.net> wrote this file. As long as you retain this notice you  # <as@paefchen.net> wrote this file. As long as you retain this notice you
 # 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/pgalleryindex.sh,v 1.1 2012/08/31 12:33:07 as Exp $# $Paefchen: scripts/pgallery/src/pgalleryindex.sh,v 1.5 2013/04/03 08:33:29 as Exp $
 #  #
   
. $(dirname $0)/libpgallery. /usr/local/libexec/libpgallery
   
 ARG_TITLE="PGallery"  ARG_TITLE="PGallery"
 ARG_TNSIZE="180"  ARG_TNSIZE="180"
Line 88  fi Line 89  fi
 for n in $(set | awk -F= '{print $1}')  for n in $(set | awk -F= '{print $1}')
 do  do
         echo "$n" | grep -q '^ARG_' || continue          echo "$n" | grep -q '^ARG_' || continue
        eval "$n=\"\$(echo \"\$$n\" | iconv -f ISO-8859-1 -t UTF-8)\""        eval "$n=\"\$(echo \"\$$n\" | $BIN_ICONV -f ISO-8859-1 -t UTF-8)\""
 done  done
   
 title="$ARG_TITLE"  title="$ARG_TITLE"
Line 98  DIRS= Line 99  DIRS=
 for dir in $(find . -type d -maxdepth 1 -mindepth 1)  for dir in $(find . -type d -maxdepth 1 -mindepth 1)
 do  do
                 test -f "$dir/$ARGFILE" || continue                  test -f "$dir/$ARGFILE" || continue
                   ARG_INDEXIMG=
                   ARG_NOINDEX=
                 . "$dir/$ARGFILE"                  . "$dir/$ARGFILE"
                 test "$ARG_INDEXIMG" = "" && continue                  test "$ARG_INDEXIMG" = "" && continue
                   test "$ARG_NOINDEX" != "" && continue
                 DIRS="$DIRS $dir"                  DIRS="$DIRS $dir"
 done  done
   

Removed from v.1.2  
changed lines
  Added in v.1.6