UnTGZ plug-in: Difference between revisions
m (Wikipedia python library) |
m (Updated author and download links, and changed format of some pages.) |
||
Line 1: | Line 1: | ||
== Links == | == Links == | ||
[[Image:Zip.gif]] [http://www.darklogic.org/win32/nsis/plugins/untgz.1.0.8.zip | <attach>Untgz.1.0.8.zip</attach><br> | ||
[[Image:Zip.gif]] [http://www.darklogic.org/win32/nsis/plugins/untgz.1.0.8.zip Untgz.1.0.8.zip] (56 KB) (Mirror #1) | |||
== Description == | == Description == | ||
'''Version:''' 1.0.8. | |||
UnTGZ plugin is similar to ExtractDLL and ZipDLL plugins, except it allows one to extract the files from a tarball (*.tgz/*.tar.gz) | UnTGZ plugin is similar to ExtractDLL and ZipDLL plugins, except it allows one to extract the files from a tarball (*.tgz/*.tar.gz) | ||
Original may be found at http://www.darklogic.org/win32/nsis/plugins/ | Original may be found at http://www.darklogic.org/win32/nsis/plugins/.<br> | ||
For problems, corrections, etc. send email to jeremyd --at-- fdos.org | For problems, corrections, etc. send email to jeremyd --at-- fdos.org | ||
== Usage == | == Usage == | ||
; '''untgz::extract''' [''-j''] [''-d basedir''] tarball.tgz | ; '''untgz<nowiki>::</nowiki>extract''' [''-j''] [''-d basedir''] tarball.tgz | ||
: extracts files from tarball.tgz | : extracts files from tarball.tgz | ||
: if -j is specified then ignore paths in tarball (junkpaths) | : if -j is specified then ignore paths in tarball (junkpaths) | ||
: if -d is specified will extract relative to basedir | : if -d is specified will extract relative to basedir | ||
; '''untgz::extractV''' [''-j''] [''-d basedir''] tarball.tgz [''-i {iList}''] [''-x {xList}''] '''--''' | ; '''untgz<nowiki>::</nowiki>extractV''' [''-j''] [''-d basedir''] tarball.tgz [''-i {iList}''] [''-x {xList}''] '''--''' | ||
: extracts files from tarball.tgz | : extracts files from tarball.tgz | ||
: if -j is specified then ignore paths in tarball (junkpaths) | : if -j is specified then ignore paths in tarball (junkpaths) | ||
Line 22: | Line 25: | ||
: the -- is required and marks the end of the file lists | : the -- is required and marks the end of the file lists | ||
; '''untgz::extractFile''' [''-d basedir''] tarball.tgz file | ; '''untgz<nowiki>::</nowiki>extractFile''' [''-d basedir''] tarball.tgz file | ||
: extracts just the file specified | : extracts just the file specified | ||
: path information is ignored, implictly -j is specified (may also be explicit) | : path information is ignored, implictly -j is specified (may also be explicit) | ||
== Example usage == | == Example usage == | ||
This is a snippet from AbiWord's NSIS2 script: | This is a snippet from [[AbiWord]]'s NSIS2 script: | ||
<highlight-nsis> doDictInst: | <highlight-nsis> doDictInst: | ||
; Unzip dictionary into dictionary subdirectory | ; Unzip dictionary into dictionary subdirectory | ||
Line 39: | Line 42: | ||
== Notes == | == Notes == | ||
Currently tested with NSIS 2.0x | Currently tested with NSIS 2.0x | ||
Line 48: | Line 50: | ||
Note: the 1.0.7 version may be preferred as 1.0.8 was a somewhat major change, | Note: the 1.0.7 version may be preferred as 1.0.8 was a somewhat major change, | ||
which while tested, some issues may still exist that I haven't seen; | which while tested, some issues may still exist that I haven't seen; | ||
please test (see also | please test (see also [[Plugin Tester (or Wrapper)|Plugin Tester]]) your tarballs with it and report to | ||
me should any problems occur. | me should any problems occur. Thanks. | ||
Page author: PerditionC | Page author: [[User:PerditionC|PerditionC]] |
Revision as of 12:18, 23 April 2005
Links
Untgz.1.0.8.zip not found
Untgz.1.0.8.zip (56 KB) (Mirror #1)
Description
Version: 1.0.8.
UnTGZ plugin is similar to ExtractDLL and ZipDLL plugins, except it allows one to extract the files from a tarball (*.tgz/*.tar.gz)
Original may be found at http://www.darklogic.org/win32/nsis/plugins/.
For problems, corrections, etc. send email to jeremyd --at-- fdos.org
Usage
- untgz::extract [-j] [-d basedir] tarball.tgz
- extracts files from tarball.tgz
- if -j is specified then ignore paths in tarball (junkpaths)
- if -d is specified will extract relative to basedir
- untgz::extractV [-j] [-d basedir] tarball.tgz [-i {iList}] [-x {xList}] --
- extracts files from tarball.tgz
- if -j is specified then ignore paths in tarball (junkpaths)
- if -d is specified will extract relative to basedir
- if -i is specified will only extract files whose filename matches
- if -x is specified will NOT extract files whose filename matches
- the -- is required and marks the end of the file lists
- untgz::extractFile [-d basedir] tarball.tgz file
- extracts just the file specified
- path information is ignored, implictly -j is specified (may also be explicit)
Example usage
This is a snippet from AbiWord's NSIS2 script:
doDictInst: ; Unzip dictionary into dictionary subdirectory untgz::extract "-j" "-d" "$INSTDIR\dictionary" "$TEMP\${DICT_FILENAME}" ; Delete temporary files Delete "$TEMP\${DICT_FILENAME}" Finish:
Notes
Currently tested with NSIS 2.0x
Based on ExDLL/ExDLL.h and Zlib's untgz, all dependencies included, simply extract to your contrib directory and build with MSVC 6 (or later) or copy included untgz.dll to the plugins subdirectory of your NSIS installation. Some parts (such as extraction with paths) not as well tested. See included README.TXT for more details.
Note: the 1.0.7 version may be preferred as 1.0.8 was a somewhat major change, which while tested, some issues may still exist that I haven't seen; please test (see also Plugin Tester) your tarballs with it and report to me should any problems occur. Thanks.
Page author: PerditionC