cpt-extra

Extra utilities for cpt
git clone git://git.carbslinux.org/cpt-extra
Log | Files | Refs | README | LICENSE

cpt-bump (315B)


      1 #!/bin/sh
      2 # Commit the current directory as a version bump
      3 
      4 case "$1" in --help|-h) printf '%s\n' "usage: ${0##*/}"; exit 0 ; esac
      5 
      6 read ver _ < version || {
      7     printf '%s\n' "could not find version file, are you on a package directory?"
      8     exit 1
      9 }
     10 
     11 git reset; git add .
     12 git commit -m "${PWD##*/}: bump to $ver"