Mercurial > hg > Members > kono > nitros9-code
annotate scripts/burst @ 3226:9749d0dfc4a2
Changed a puls PC to rts to save cycles
author | David Ladd <drencor-xeen@users.sourceforge.net> |
---|---|
date | Sat, 20 Jan 2018 19:32:22 -0600 |
parents | d9cb87a32d7a |
children |
rev | line source |
---|---|
2903
d76362b779c0
Update scripts/burst snapshot repo maintainer script
Tormod Volden <debian.tormod@gmail.com>
parents:
2739
diff
changeset
|
1 #!/bin/sh -e |
d76362b779c0
Update scripts/burst snapshot repo maintainer script
Tormod Volden <debian.tormod@gmail.com>
parents:
2739
diff
changeset
|
2 |
3042
f3decf362611
Update burst script to use uploader's date and filename
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
3 NAME=$1 |
f3decf362611
Update burst script to use uploader's date and filename
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
4 TAG=$2 |
f3decf362611
Update burst script to use uploader's date and filename
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
5 |
2903
d76362b779c0
Update scripts/burst snapshot repo maintainer script
Tormod Volden <debian.tormod@gmail.com>
parents:
2739
diff
changeset
|
6 HTDOCS=/home/project-web/nitros9/htdocs |
3042
f3decf362611
Update burst script to use uploader's date and filename
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
7 |
f3decf362611
Update burst script to use uploader's date and filename
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
8 if [ -z "$TAG" ]; then |
f3decf362611
Update burst script to use uploader's date and filename
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
9 echo "$0: Missing name and date tag" |
f3decf362611
Update burst script to use uploader's date and filename
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
10 exit 1 |
f3decf362611
Update burst script to use uploader's date and filename
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
11 fi |
2903
d76362b779c0
Update scripts/burst snapshot repo maintainer script
Tormod Volden <debian.tormod@gmail.com>
parents:
2739
diff
changeset
|
12 |
d76362b779c0
Update scripts/burst snapshot repo maintainer script
Tormod Volden <debian.tormod@gmail.com>
parents:
2739
diff
changeset
|
13 cd $HTDOCS |
3094
d9cb87a32d7a
burst script: Rename "latest" to "snapshot"
Tormod Volden <debian.tormod@gmail.com>
parents:
3042
diff
changeset
|
14 mkdir snapshot-$TAG |
d9cb87a32d7a
burst script: Rename "latest" to "snapshot"
Tormod Volden <debian.tormod@gmail.com>
parents:
3042
diff
changeset
|
15 cd snapshot-$TAG |
3042
f3decf362611
Update burst script to use uploader's date and filename
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
16 unzip -o ../$NAME-$TAG.zip |
2903
d76362b779c0
Update scripts/burst snapshot repo maintainer script
Tormod Volden <debian.tormod@gmail.com>
parents:
2739
diff
changeset
|
17 echo "Options +Indexes" > .htaccess |
d76362b779c0
Update scripts/burst snapshot repo maintainer script
Tormod Volden <debian.tormod@gmail.com>
parents:
2739
diff
changeset
|
18 |
d76362b779c0
Update scripts/burst snapshot repo maintainer script
Tormod Volden <debian.tormod@gmail.com>
parents:
2739
diff
changeset
|
19 cd $HTDOCS |
3094
d9cb87a32d7a
burst script: Rename "latest" to "snapshot"
Tormod Volden <debian.tormod@gmail.com>
parents:
3042
diff
changeset
|
20 rm snapshot |
d9cb87a32d7a
burst script: Rename "latest" to "snapshot"
Tormod Volden <debian.tormod@gmail.com>
parents:
3042
diff
changeset
|
21 ln -s snapshot-$TAG snapshot |
3042
f3decf362611
Update burst script to use uploader's date and filename
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
22 rm $NAME.zip |
f3decf362611
Update burst script to use uploader's date and filename
Tormod Volden <debian.tormod@gmail.com>
parents:
2903
diff
changeset
|
23 ln -s $NAME-$TAG.zip $NAME.zip |