X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=bin%2Fpreload.sh;h=7688ae868fb89a80bbd1537075e35abebf26886b;hb=399b2e251dfa539d95e81bd3a20b47f114d9a5e2;hp=12e49b97cdaed4c2a60ec5776c562240b99cfa36;hpb=f18bac8374119fa1f3c826e82cfc74ce2ce52dd7;p=brisk.git diff --git a/bin/preload.sh b/bin/preload.sh index 12e49b9..7688ae8 100755 --- a/bin/preload.sh +++ b/bin/preload.sh @@ -1,4 +1,24 @@ #!/bin/bash +# +# brisk - preload.sh +# +# Copyright (C) 2006 matteo.nastasi@milug.org +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABLILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. You should have received a +# copy of the GNU General Public License along with this program; if +# not, write to the Free Software Foundation, Inc, 59 Temple Place - +# Suite 330, Boston, MA 02111-1307, USA. +# +# + OUTFILE=web/preload_img.js IMGPATH=../brisk-img/img @@ -16,7 +36,7 @@ rm -f $OUTFILE echo "var g_preload_img_arr = new Array( " first=1 spa=" " -for i in `ls -S $IMGPATH/*.{jpg,png} | grep -v '/src_'`; do +for i in `ls -S $IMGPATH/*.{jpg,png,gif} | grep -v '/src_'`; do if [ $first -ne 1 ]; then echo -n ", " if [ $ct -eq 4 ]; then