source: main/trunk/greenstone3/web/create-new-installation.sh@ 37631

Last change on this file since 37631 was 37631, checked in by davidb, 13 months ago

Script that prints out the svn commands to run to create a new installation

  • Property svn:executable set to *
File size: 916 bytes
Line 
1#!/bin/bash
2
3if [ $# != 1 ] ; then
4 echo "" >&2
5 echo "Usage: $0 installation-name" >&2
6 echo "" >&2
7 exit 1
8fi
9
10
11install_name=$1
12
13svn_message="Creating initial directory structure for installation '$install_name'"
14
15echo ""
16echo "To create an initial directory structure, select and run from the following:"
17echo "----"
18echo " # Top-level folder for '$install_name'"
19echo " " svn mkdir -m \""$svn_message"\" https://svn.greenstone.org/gs3-installations/$install_name/trunk
20
21echo ""
22echo " # Site files for '$install_name'"
23echo " " svn mkdir --parents -m \""$svn_message"\" https://svn.greenstone.org/gs3-installations/$install_name/trunk/sites/$install_name
24
25echo ""
26echo " # Interface files for '$install_name'"
27echo " " svn mkdir --parents -m \""$svn_message"\" https://svn.greenstone.org/gs3-installations/$install_name/trunk/interfaces/$install_name
28echo "----"
29
30echo ""
Note: See TracBrowser for help on using the repository browser.