• Summary of archiver command lines

    From Björn Wiberg@2:201/137 to g00r00 on Saturday, August 07, 2021 11:16:28
    Hello g00r00!

    For your reference, here's a short summary of "revised" archiver
    definitions for you, if you think you'd want to incorporate any of this in future releases of Mystic. (Please feel free to compare with what you have.)

    Active │ Yes
    Extension │ ZIP
    OS │ All
    Description │ Info-ZIP Utilities
    Pack Cmd │ zip -qj9 "%1" -- %2
    Unpack Cmd │ unzip -oqqjC -- "%1" "%2" -d "%3"
    View Cmd │

    Active │ Yes
    Extension │ RAR
    OS │ All
    Pack Cmd │ rar a -inul -cl -c- -ep -o+ -y -- "%1" "%2"
    Unpack Cmd │ rar e -inul -cl -c- -ep -o+ -y -- "%1" "%2" "%3"
    View Cmd │

    Active │ Yes
    Extension │ LHA
    OS │ Linux
    Description │ LHA (viewing only)
    Pack Cmd │
    Unpack Cmd │ lha -efiw="%3" "%1" "%2"
    View Cmd │

    (lha currently does not support creating archives on Linux, so empty Pack Cmd)

    Active │ Yes
    Extension │ LZH
    OS │ Linux
    Description │ LZH (viewing only)
    Pack Cmd │
    Unpack Cmd │ lha -efiw="%3" "%1" "%2"
    View Cmd │

    (lha currently does not support creating archives on Linux, so empty Pack Cmd)

    Active │ Yes
    Extension │ LHA
    OS │ Windows
    Description │ LHA (via 7-Zip)
    Pack Cmd │ 7z a -ba -y -- "%1" "%2"
    Unpack Cmd │ 7z e -ba -y -o"%3" -- "%1" "%2"
    View Cmd │

    Active │ Yes
    Extension │ LZH
    OS │ Windows
    Description │ LZH (via 7-Zip)
    Pack Cmd │ 7z a -ba -y -- "%1" "%2"
    Unpack Cmd │ 7z e -ba -y -o"%3" -- "%1" "%2"
    View Cmd │

    Active │ Yes
    Extension │ 7Z
    OS │ Windows
    Description │ 7-Zip
    Pack Cmd │ 7z a -ba -y -- "%1" "%2"
    Unpack Cmd │ 7z e -ba -y -o"%3" -- "%1" "%2"
    View Cmd │ 7z l -y -- "%1" >> "%3%2"

    Active │ Yes
    Extension │ 7Z
    OS │ Linux
    Description │ 7-Zip
    Pack Cmd │ 7z a -ba -y -- "%1" "%2"
    Unpack Cmd │ 7z e -ba -y -o"%3" -- "%1" "%2"
    View Cmd │ 7z l -y -- "%1" >> "%3%2" 2> /dev/null; exit $?

    Active │ No
    Extension │ ARJ
    OS │ All
    Description │ ARJ32 ARJ Utilities
    Pack Cmd │ arj a -e -i -y -- "%1" "%2"
    Unpack Cmd │ arj e -e -i -y -w"%3" -ht"%3" -- "%1" "%2"
    View Cmd │

    Active │ No
    Extension │ ARJ
    OS │ Windows
    Description │ ARJ32 ARJ Utilities
    Pack Cmd │ arj a -e -i -y -- "%1" "%2"
    Unpack Cmd │ arj e -e -i -y -w"%3" -ht"%3" -- "%1" "%2"
    View Cmd │ arj v -i -y -- "%1" >> "%3%2"

    Active │ Yes
    Extension │ ARJ
    OS │ Linux
    Description │ ARJ32 ARJ Utilities
    Pack Cmd │ arj a -e -i -y -- "%1" "%2"
    Unpack Cmd │ arj e -e -i -y -w"%3" -ht"%3" -- "%1" "%2"
    View Cmd │ arj v -i -y -- "%1" >> "%3%2" 2> /dev/null; exit $?

    (Viewing cannot be done in an OS-independent way due to Mystic redirecting stdout and stderr to /dev/null on Linux, but only stderr on Windows.)

    Active │ Yes
    Extension │ ZOO
    OS │ Linux
    Description │ ZOO
    Pack Cmd │ zoo ahP: "%1" %2
    Unpack Cmd │ cd "%3" > /dev/null 2>&1 && zoo xOOS: "%1" "%2" > /dev/null 2>&1; exit $?
    View Cmd │ zoo lVCm "%1" >> "%3%2" 2> /dev/null; exit $?

    Active │ Yes
    Extension │ ARC
    OS │ Linux
    Description │ ARC
    Pack Cmd │ arc awn "%1" %2
    Unpack Cmd │ cd "%3" > /dev/null 2>&1 && arc ewn "%1" "%2" > /dev/null
    &1; exit $?
    View Cmd │ arc vw "%1" >> "%3%2" 2> /dev/null; exit $?

    Active │ Yes
    Extension │ TAR
    OS │ Linux
    Description │ GNU tar
    Pack Cmd │ { cd "$(dirname "%2")" && tar -c -f "%1" -- $(basename "%2");
    }
    Unpack Cmd │ tar -x -f "%1" -C "%3" --xform='s,.*/,,' --overwrite -- "%2"
    View Cmd │ tar -t -f "%1" -v --full-time -- >> "%3%2" 2> /dev/null; exit $?

    Active │ Yes
    Extension │ TGZ
    OS │ Linux
    Description │ GNU tar + gzip
    Pack Cmd │ { cd "$(dirname "%2")" && tar -c -z -f "%1" -- $(basename "%2"); }
    Unpack Cmd │ tar -x -f "%1" -z -C "%3" --xform='s,.*/,,' --overwrite --
    "%2"
    View Cmd │ tar -t -f "%1" -z -v --full-time -- >> "%3%2" 2> /dev/null; exit $?

    NOTE: The TAR/TGZ Pack Cmds utilize command grouping ({ ... ; }) -- which
    might be unique to bash -- due to command line length limitations.

    Best regards
    Björn

    --- Mystic BBS v1.12 A47 2021/08/05 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From Stephen Walsh@3:633/280 to Björn Wiberg on Saturday, August 07, 2021 19:36:50

    Hello Björn!

    07 Aug 21 11:16, you wrote to g00r00:

    Active │ Yes
    Extension │ LHA
    OS │ Linux
    Description │ LHA (viewing only)
    Pack Cmd │
    Unpack Cmd │ lha -efiw="%3" "%1" "%2"
    View Cmd │

    (lha currently does not support creating archives on Linux, so empty
    Pack Cmd)

    Active │ Yes
    Extension │ LZH
    OS │ Linux
    Description │ LZH (viewing only)
    Pack Cmd │
    Unpack Cmd │ lha -efiw="%3" "%1" "%2"
    View Cmd │

    (lha currently does not support creating archives on Linux, so empty
    Pack Cmd)

    I'm not having any issues creating lha archives on linux. (Debian)

    Pack Cmd: lha -ao5fi "%1%" "%2%"

    Compiled from source: LHa for UNIX version 1.14i-ac20081023 (i686-pc-linux-gnu)




    Stephen


    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Dragon's Lair BBS, Telnet: dragon.vk3heg.net (3:633/280)
  • From Björn Wiberg@2:201/137 to Stephen Walsh on Saturday, August 07, 2021 12:03:48
    Hello Stephen!

    Thank you for your reply!

    On 07 Aug 2021, Stephen Walsh said the following...
    (lha currently does not support creating archives on Linux, so empty Pack Cmd)

    I'm not having any issues creating lha archives on linux. (Debian)

    Pack Cmd: lha -ao5fi "%1%" "%2%"

    Compiled from source: LHa for UNIX version 1.14i-ac20081023 (i686-pc-linux-gnu)

    Sorry -- I should have mentioned -- the problems (lack of archive creation support) are when using the Debian-packaged version of lha -- lhasa:

    root@glimmer:~# apt-cache show lhasa
    Package: lhasa
    Version: 0.3.1-3
    Installed-Size: 46
    Maintainer: Jonathan Dowland <jmtd@debian.org>
    Architecture: amd64
    Provides: lha, lzh-archiver
    Depends: libc6 (>= 2.4), liblhasa0 (= 0.3.1-3)
    Conflicts: lha (<< 1.14i-10.4)
    Description-en: lzh archive decompressor
    Lhasa lha is a tool for parsing LHA (.lzh) archives and a free
    replacement for the Unix LHA tool.
    .
    Currently it is only possible to read from (ie. decompress) archives;
    generating (compressing) LHA archives may be an enhancement for future
    versions. The aim is to be compatible with as many different variants
    of the LHA file format as possible, including LArc (.lzs) and
    PMarc (.pma).
    .
    The command line tool aims to be interface-compatible with the non-free
    Unix LHA tool (command line syntax and output), for backwards
    compatibility with tools that expect particular output.
    Description-md5: 11c02758a2e2ad3aa2ab14056e1b6be3
    Homepage: http://fragglet.github.com/lhasa/
    Section: utils
    Priority: optional
    Filename: pool/main/l/lhasa/lhasa_0.3.1-3_amd64.deb
    Size: 18240
    MD5sum: 96753d0565d28af28672db82e71160ec
    SHA256: 4954bd89e21986311f409e1264b51321f38b5a6db004b75eb3d56c77ea8337c3

    But you're right -- for those running "LHa for UNIX" (https://github.com/jca02266/lha), the Pack Cmds should be there. Thanks!

    Best regards
    Björn

    --- Mystic BBS v1.12 A47 2021/08/05 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From g00r00@1:129/215 to Björn Wiberg on Saturday, August 07, 2021 10:51:06
    For your reference, here's a short summary of "revised" archiver definitions for you, if you think you'd want to incorporate any of this
    in future releases of Mystic. (Please feel free to compare with what you have.)

    Thanks I have exported this message and I will try to go through it at some point here!

    ... Don't diet, download a virus to remove the FAT.

    --- Mystic BBS v1.12 A47 2021/07/31 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)