diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2023-01-12 21:30:29 +0100 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-05-20 00:08:11 +0200 |
commit | d402d5f3081d9e0a1f269e3209b52c23bd355ff3 (patch) | |
tree | f2edacb8c80cd29d5c9f7d7e1a6cc46b7dcadfdf | |
parent | c839d52793bb6de66bbf5895faa8c293beea7ee0 (diff) | |
download | devtools-d402d5f3081d9e0a1f269e3209b52c23bd355ff3.tar.xz |
archrelease: print deprecation warning when executed directly
-rw-r--r-- | src/archrelease.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/archrelease.in b/src/archrelease.in index c3776e7..d206ab8 100644 --- a/src/archrelease.in +++ b/src/archrelease.in @@ -11,6 +11,11 @@ source "${_DEVTOOLS_LIBRARY_DIR}"/lib/valid-tags.sh set -e +# Deprecation warning +if [[ -z $_DEVTOOLS_COMMAND ]]; then + warning "${0##*/} is deprecated and will be removed. Use 'pkgctl release' instead" +fi + # parse command line options FORCE= while getopts ':f' flag; do |