Commit 1f7203ea authored by Vitaly Lipatov's avatar Vitaly Lipatov

move have_patool and 7z detection to erc-sh-archive

parent 8786c474
#!/bin/bash
#
# Copyright (C) 2013 Etersoft
# Copyright (C) 2013 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2013, 2023 Etersoft
# Copyright (C) 2013, 2023 Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
......@@ -17,6 +17,20 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
have_patool()
{
# TODO: optimize?
is_command patool
}
HAVE_7Z=''
if ! have_patool ; then
# TODO: try install patool and p7zip
is_command 7za && HAVE_7Z="7za"
is_command 7z && HAVE_7Z="7z"
fi
list_subformats()
{
local i
......
......@@ -43,18 +43,6 @@ build_target_name()
return 1
}
have_patool()
{
# TODO: optimize?
is_command patool
}
HAVE_7Z=''
if ! have_patool ; then
# TODO: try install patool and p7zip
is_command 7za && HAVE_7Z="7za"
is_command 7z && HAVE_7Z="7z"
fi
# TODO: list of $HAVE_7Z supported (see list_formats)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment