summaryrefslogtreecommitdiff
blob: 64eafa19daed8e80b942e9cfa777fe59d972d5e6 (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
#!/bin/bash

PACKAGE=$(/home/jokey/gentoo/my-scripts/package)
if [[ "${PACKAGE}" == "Can't figure out category/package.. sorry!" ]] ; then
    echo "Is this a package dir???"
    exit 1
fi

if [[ "$1" == "" ]] ; then
    echo "No commit message today?"
    exit 1
fi

if [[ "$2" != "" ]] ; then 
    MESSAGE=$2
    /home/jokey/gentoo/my-scripts/echangelog "${MESSAGE}"
else
    echo "no changelog message today?"
    MESSAGE=$1
fi

for each in *.ebuild; do
    ebuild $each manifest
done
git add .
git commit -a -m "${PACKAGE}: ${MESSAGE}"