view scripts/burst @ 3162:c44cd20907bd

sysgo.asm: Delete trailing whitespace, fix indent (no functional change) Add comments and vertical whitespace for readability.
author Neal Crook <foofoobedoo@gmail.com>
date Thu, 06 Apr 2017 22:04:46 +0100
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