#!/bin/bash if [ -z "$1" -o "$1" = "-h" -o "$1" = "--help" ]; then cat << HELP slide-show-create.sh -- generate a simple image slideshow in html/javascript Usage: slide-show-create.sh [-h] imagefile1 imagefile2 ... Example: slide-show-create.sh *.jpg > index.html Options: -h this help It is recommended to use image files (jpg or png) of a reasonable size (up to 1.5MB) and not too many (less than 10) because the web browser will load all the images and network bandwidth and start-up times become a problem. HELP exit 0 fi # ---------------- cat << FRIST_PART image slide show
FRIST_PART for imgfile in $@; do echo "" done cat << SECOND_PART
SECOND_PART