#!/bin/bash # It's important that your server's svn(1) and svnadmin(1) be wrappers like this: # # $ cat `type -p svn` # #!/bin/sh # umask 002 # /usr/bin/svn.orig "$@" # $ # # It's not possible to work around ownership/permissions problems in this # script, because each check-in risks messing things up unless the umask is # always set appropriately. Subversion itself does nothing to help you with # this. if [ $# != 2 ]; then echo "Usage: $0 " exit 1 fi # Hard-coding @jessies.org might seem like a mistake, but it's just to make # it clear that the rest of this script still makes assumptions about # directory layout and the like that you will need to change if you change # this line. svn_user_and_host=$1@jessies.org software_user_and_host=software@jessies.org project_name=$2 projects_dir=~/Projects if [ -d $projects_dir/$project_name ]; then echo "Project '$project_name' already exists!" exit 1 fi # salma-hayek only has the LGPL. GPL=$projects_dir/evergreen/COPYING if [ ! -f $GPL ]; then echo "Couldn't find a copy of the GPL! (Don't you have a checked-out copy of Evergreen?)" exit 1 fi echo "Creating new project '$project_name'..." mkdir -p /tmp/$$ cd /tmp/$$ echo "Creating directories..." mkdir -p $project_name mkdir -p $project_name/src echo "Creating Makefile..." cat > $project_name/Makefile <