summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAntonio Ospite <ao2@ao2.it>2020-06-17 09:31:09 +0200
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-06-17 14:13:29 +0000
commit6fa45fe861019d4b626a8ce65be0adf1a109e98d (patch)
treeb7c3642403d1f3a0078b70234e6bceda25d7bc32 /tools
parent7f1d3e252f8c791260f050e2abfda92235bc5f66 (diff)
downloadgstreamer-plugins-bad-6fa45fe861019d4b626a8ce65be0adf1a109e98d.tar.gz
gst-project-maker: use $0 for the program name in usage and help text
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/184>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gst-project-maker6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gst-project-maker b/tools/gst-project-maker
index 7dcc407e7..7241ae30e 100755
--- a/tools/gst-project-maker
+++ b/tools/gst-project-maker
@@ -8,12 +8,12 @@ while [ "$1" ] ; do
case $1 in
--help)
cat <<-EOF
-Usage: gst-project-maker [OPTIONS] PROJECT_NAME
+Usage: $(basename "$0") [OPTIONS] PROJECT_NAME
Create an autotools project based on GStreamer from a template.
Options:
--help Print this information
--prefix PREFIX Use PREFIX instead of "gst"
-Example: 'gst-project-maker my_project' will create the project gst-my-project.
+Example: '$(basename "$0") my_project' will create the project gst-my-project.
EOF
exit 0
;;
@@ -36,7 +36,7 @@ EOF
done
if [ "$name" = "" ] ; then
- echo "Usage: gst-project-maker [OPTIONS] PROJECT_NAME"
+ echo "Usage: $(basename "$0") [OPTIONS] PROJECT_NAME"
exit 1
fi