aboutsummaryrefslogtreecommitdiff
path: root/repo/git/cpt-bump
blob: e4b758f2d062a9a821d55190e5b8c04327f2982d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Commit the current directory as a version bump

case "$1" in --help|-h) printf '%s\n' "usage: ${0##*/}"; exit 0 ; esac

read ver _ < version || {
    printf '%s\n' "could not find version file, are you on a package directory?"
    exit 1
}

git reset; git add .
git commit -m "${PWD##*/}: bump to $ver"