mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Add help header to the installer help
This commit is contained in:
parent
06e448b4d0
commit
0964f9cbcd
@ -75,6 +75,22 @@ tmp_dir=$(mktemp -d "/tmp/.$rel_name.XXXXXX")
|
|||||||
trap 'rm -rf "$tmp_dir"' INT TERM EXIT
|
trap 'rm -rf "$tmp_dir"' INT TERM EXIT
|
||||||
umask 022
|
umask 022
|
||||||
|
|
||||||
|
create_help_file()
|
||||||
|
{
|
||||||
|
local file="$1"
|
||||||
|
|
||||||
|
cat >"$file" <<-EOF
|
||||||
|
This is the $rel_name $rel_vsn-$iteration installer for linux-$arch
|
||||||
|
|
||||||
|
Visit
|
||||||
|
https://www.ejabberd.im/
|
||||||
|
|
||||||
|
ejabberd Documentation site:
|
||||||
|
https://docs.ejabberd.im/
|
||||||
|
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
create_setup_script()
|
create_setup_script()
|
||||||
{
|
{
|
||||||
local dir="$1"
|
local dir="$1"
|
||||||
@ -222,8 +238,9 @@ do
|
|||||||
test -e "$tgz_name" || tools/make-binaries
|
test -e "$tgz_name" || tools/make-binaries
|
||||||
echo "$myself: Putting together installer for $arch ..."
|
echo "$myself: Putting together installer for $arch ..."
|
||||||
gzip -c -d <"$tgz_name" >"$tmp_dir/$tar_name"
|
gzip -c -d <"$tgz_name" >"$tmp_dir/$tar_name"
|
||||||
|
create_help_file "$tmp_dir/help.txt"
|
||||||
create_setup_script "$tmp_dir" "$tar_name"
|
create_setup_script "$tmp_dir" "$tar_name"
|
||||||
"$makeself" "$tmp_dir" "$installer_name" "$rel_name $rel_vsn" './setup'
|
"$makeself" --help-header "$tmp_dir/help.txt" "$tmp_dir" "$installer_name" "$rel_name $rel_vsn" './setup'
|
||||||
find "$tmp_dir" -mindepth 1 -delete
|
find "$tmp_dir" -mindepth 1 -delete
|
||||||
done
|
done
|
||||||
echo "$myself: Created installers successfully."
|
echo "$myself: Created installers successfully."
|
||||||
|
Loading…
Reference in New Issue
Block a user