summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2023-01-12 21:30:29 +0100
committerLevente Polyak <anthraxx@archlinux.org>2023-05-20 00:08:11 +0200
commitd402d5f3081d9e0a1f269e3209b52c23bd355ff3 (patch)
treef2edacb8c80cd29d5c9f7d7e1a6cc46b7dcadfdf
parentc839d52793bb6de66bbf5895faa8c293beea7ee0 (diff)
downloaddevtools-d402d5f3081d9e0a1f269e3209b52c23bd355ff3.tar.xz
archrelease: print deprecation warning when executed directly
-rw-r--r--src/archrelease.in5
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