Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archrelease
blob: dc86d3f3457b04c38bb1005065ae6191d9ce04b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash

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

if [ ! -d ../repos/$1 ]; then
    pushd ..
    svn copy -r HEAD trunk repos/$1
    svn commit -m "archrelease: new repo $1"
    pushd repos/$1
    svnmerge init
    svn commit -F svnmerge-commit-message.txt
    rm svnmerge-commit-message.txt
    popd
    popd
else
    svnmerge merge ../repos/$1
    pushd ..
    if [ -f trunk/svnmerge-commit-message.txt ]; then
        svn commit -F trunk/svnmerge-commit-message.txt
        if [ $? -ne 0 ]; then
            # The user is going to have to clean things up a bit
            echo "*** ATTENTION: There was a problem merging the package changes ***"
            echo "To fix it, edit the conflicting files in repos/$1 (the ones that are C in svn status)."
            echo "Once you have resolved conflicts, execute 'svn resolved <path to file>' to tell svn the error was resolved."
            echo "Then to finish the merge commit, execute 'svn commit -F trunk/svnmerge-commit-message.txt' and, if there are no problems, delete trunk/svnmerge-commit-message.txt"
            exit $?
        fi
        rm trunk/svnmerge-commit-message.txt
    else
        echo "Nothing to commit"
    fi
    popd
fi