#!/bin/bash
source ./env.sh

# thumb and html each directory
cd $MASTER
	$SCRIPTS/thumb_dir.sh $PICTURES/$1 $THUMBS/$1
	$SCRIPTS/html_dir.sh $1 $HTML/$1.html
	echo done with $1
cd ..
# build the index file.
$SCRIPTS/build_index.sh $HTML index.html


