Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2022-04-11 11:28:18 +0300
committerBadlop <badlop@process-one.net>2022-05-04 03:39:12 +0300
commit0964f9cbcddea886e93879d7e9058551a934d8fe (patch)
treee1f426bf76318d2fcc14452c9a7768ac67b30889 /tools
parent06e448b4d0a83623c8d36df91c14e187474f55e8 (diff)
Add help header to the installer help
Diffstat (limited to 'tools')
-rwxr-xr-xtools/make-installers19
1 files changed, 18 insertions, 1 deletions
diff --git a/tools/make-installers b/tools/make-installers
index 16253a130..11b5d4104 100755
--- a/tools/make-installers
+++ b/tools/make-installers
@@ -75,6 +75,22 @@ tmp_dir=$(mktemp -d "/tmp/.$rel_name.XXXXXX")
trap 'rm -rf "$tmp_dir"' INT TERM EXIT
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()
{
local dir="$1"
@@ -222,8 +238,9 @@ do
test -e "$tgz_name" || tools/make-binaries
echo "$myself: Putting together installer for $arch ..."
gzip -c -d <"$tgz_name" >"$tmp_dir/$tar_name"
+ create_help_file "$tmp_dir/help.txt"
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
done
echo "$myself: Created installers successfully."