if test -z $argv[1]
echo directory missing
exit 1
end
set d $argv[1]
if test ! -d $d
echo $d is not a directory
exit 2
end
if test -f "1PDC $d.zip"
echo "1PDC $d.zip" alread exists
exit 3
end
echo Creating the original archive
set imgs $d/*.jpg $d/*.jpeg
zip "1PDC $d.zip" $d/*.pdf $imgs