#!/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}"