summaryrefslogtreecommitdiff
path: root/cgg-dirgen
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-02-26 22:50:39 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-02-26 22:50:39 +0100
commit89c58dc04c264c5778ae34d1428e12483f3ac5ac (patch)
treed5aef506841b3b0e2e91016d0c0bbb608535873c /cgg-dirgen
parent10a77c7a1c4648693ded958d6ac8641afcdf1d34 (diff)
downloadcataract-89c58dc04c264c5778ae34d1428e12483f3ac5ac.tar.xz
Autotoolize
Diffstat (limited to 'cgg-dirgen')
-rwxr-xr-xcgg-dirgen54
1 files changed, 0 insertions, 54 deletions
diff --git a/cgg-dirgen b/cgg-dirgen
deleted file mode 100755
index 44dd256..0000000
--- a/cgg-dirgen
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/bash
-## Cataract Gallery Generator - a simple static web photo gallery
-## cgg-dirgen - Directory index.xml generator
-## Copyright (C) 2008 Tomas Bzatek <tbzatek@users.sourceforge.net>
-##
-## 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 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
-## MERCHANTABILITY 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-##
-
-## Optional arguments (must be in order, for now):
-## -d Use preview pictures from the "preview" folder
-## -o Do not include original image (removes link to original size)
-## -t Generate thumbnails from the "thumbnails" folder
-
-
-cat << XML_HEADER_STOP
-<?xml version="1.0" encoding="utf-8"?>
-<gallery type="album">
- <general>
- <ID>Album ID</ID>
- <title>Album Title</title>
- <description><![CDATA[Album description<br/>
- ]]></description>
- </general>
-
- <items>
-XML_HEADER_STOP
-
-for i in `find -L . -maxdepth 1 -type f -iname '*.jpg' -or -iname '*.jpeg' -or -iname '*.gif' -or -iname '*.png' | sort`; do
- INCL="";
- INCL2="";
- INCL3="";
- if [ "$1" = "-d" ]; then INCL=" preview=\"preview/`echo $i | cut -b 3-`\""; fi
- if [ "$2" = "-o" ]; then INCL2=" <nofullsize />\n"; fi
- if [ "$3" = "-t" ]; then INCL3=" thumbnail=\"thumbnails/`echo $i | cut -b 3-`\""; fi
- echo -e " <item src=\"`echo $i | cut -b 3-`\"${INCL}${INCL3}>\n${INCL2} <title> </title>\n <title_description> </title_description>\n </item>\n";
-done
-
-cat << XML_FOOTER_STOP
- </items>
-</gallery>
-XML_FOOTER_STOP
-