2021-07-14 05:41:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Generate an installer script using the most recent version of qq2clone
|
|
|
|
|
|
|
|
|
|
|
|
{ [[ -e lv_api_do ]] && [[ -e qq2clone ]] &&
|
|
|
|
[[ -e "inst_fragment.bash" ]] ; } ||
|
|
|
|
{ echo "Current working directory does not contain required files"
|
|
|
|
exit 1; }
|
|
|
|
|
|
|
|
{
|
|
|
|
echo "#!/bin/bash"
|
2021-07-14 05:54:05 +00:00
|
|
|
echo
|
2021-07-14 05:41:59 +00:00
|
|
|
echo "# This script generated automatically by gen_installer.bash"
|
|
|
|
echo ""
|
2021-07-14 05:54:05 +00:00
|
|
|
echo -n "archive='"
|
|
|
|
tar -cz qq2clone lv_api_do | base64
|
|
|
|
echo "'"
|
|
|
|
echo
|
|
|
|
cat inst_fragment.bash
|
2021-07-14 05:41:59 +00:00
|
|
|
} > qq2clone_installer.bash
|
|
|
|
chmod +x qq2clone_installer.bash
|