Skip to content
archrelease 487 B
Newer Older
#!/bin/bash

if [ "$1" = "" ]; then
    echo "Usage: archrelease <repo>"
    exit 1
fi

if [ ! -d ../repos/$1 ]; then
    svn copy -r HEAD trunk repos/$1
    svn commit -m "archrelease: new repo $1"
    popd
    svnmerge merge ../repos/$1
    pushd ..
    if [ -f trunk/svnmerge-commit-message.txt ]; then
        svn commit -F trunk/svnmerge-commit-message.txt
        rm trunk/svnmerge-commit-message.txt
    else
        echo "Nothing to commit"
    fi
    popd