diff --git a/aptpkg b/aptpkg index 6e3d37c..b4be141 100755 --- a/aptpkg +++ b/aptpkg @@ -18,6 +18,7 @@ Usage: aptpkg --all [directory] Build all folders under directory aptpkg --auto (commit id) Autobuild modified packages from commit aptpkg -h, --help Show help + aptpkg -v, --version Show version EOF } @@ -170,6 +171,8 @@ case $1 in --auto) shift change_autobuild_pkgs "$1" ;; + -v|--version) + echo "aptpkg $APTPKG_VERSION" ;; *) if [ $# -ne 1 ]; then error_usage_die "You must provide one directory" diff --git a/docs/aptpkg.1.scd b/docs/aptpkg.1.scd index 9d9453f..aaf6810 100644 --- a/docs/aptpkg.1.scd +++ b/docs/aptpkg.1.scd @@ -9,10 +9,13 @@ aptpkg - easily create/ get debian packages *aptpkg* _path_ *aptpkg* --all _path_ + *aptpkg* --auto [git commit hash] *aptpkg* -h | --help +*aptpkg* -v | --version + # DESCRIPTION aptpkg can be used to easily create/ get debian packages, and can be used with