mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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>
This commit is contained in:
parent
7f1d3e252f
commit
6fa45fe861
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue