view scripts/burst @ 3205:e85fdf0e52ae

corsham,atari: Include OS9GEN in disk image creation This requires ToolShed 2.2 or newer. The os9gen command from previous ToolShed versions would corrupt the disk image.
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 09 Sep 2017 22:37:18 +0200
parents d9cb87a32d7a
children
line wrap: on
line source

#!/bin/sh -e

NAME=$1
TAG=$2

HTDOCS=/home/project-web/nitros9/htdocs

if [ -z "$TAG" ]; then
	echo "$0: Missing name and date tag"
	exit 1
fi

cd $HTDOCS
mkdir snapshot-$TAG
cd snapshot-$TAG
unzip -o ../$NAME-$TAG.zip
echo "Options +Indexes" > .htaccess

cd $HTDOCS
rm snapshot
ln -s snapshot-$TAG snapshot
rm $NAME.zip
ln -s $NAME-$TAG.zip $NAME.zip