Compare commits
No commits in common. "17762ad3e4180b1865e2d6f821a6db40c4161a29" and "cd1c603c8afd75c544e27e04d2a0ef3abcba2d6c" have entirely different histories.
17762ad3e4
...
cd1c603c8a
19
Makefile
19
Makefile
|
@ -1,11 +1,6 @@
|
||||||
LISP ?= sbcl
|
LISP ?= sbcl
|
||||||
|
|
||||||
PREFIX ?= /usr/local
|
all: clean build
|
||||||
BINDIR ?= ${PREFIX}/bin
|
|
||||||
MANDIR ?= ${PREFIX}/share/man
|
|
||||||
MAN1DIR ?= ${MANDIR}/man1
|
|
||||||
|
|
||||||
all: build
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm mirror-img
|
-rm mirror-img
|
||||||
|
@ -17,23 +12,13 @@ quicklisp:
|
||||||
--eval '(ql:add-to-init-file)' \
|
--eval '(ql:add-to-init-file)' \
|
||||||
--eval '(quit)'
|
--eval '(quit)'
|
||||||
|
|
||||||
mirror-img:
|
build:
|
||||||
$(LISP) --load mirror-img.asd \
|
$(LISP) --load mirror-img.asd \
|
||||||
--eval '(ql:quickload :mirror-img)' \
|
--eval '(ql:quickload :mirror-img)' \
|
||||||
--eval '(ql:quickload :mirror-img/unix)' \
|
--eval '(ql:quickload :mirror-img/unix)' \
|
||||||
--eval '(asdf:make :mirror-img/unix)' \
|
--eval '(asdf:make :mirror-img/unix)' \
|
||||||
--eval '(quit)'
|
--eval '(quit)'
|
||||||
|
|
||||||
build: mirror-img
|
|
||||||
|
|
||||||
install: build
|
|
||||||
install -m 775 mirror-img ${BINDIR}
|
|
||||||
install -m 444 mirror-img.1 ${MAN1DIR}
|
|
||||||
|
|
||||||
uninstall:
|
|
||||||
rm ${BINDIR}/mirror-img
|
|
||||||
rm ${MAN1DIR}/mirror-img.1
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
$(LISP) --load mirror-img.asd \
|
$(LISP) --load mirror-img.asd \
|
||||||
--eval '(ql:quickload :mirror-img)' \
|
--eval '(ql:quickload :mirror-img)' \
|
||||||
|
|
52
mirror-img.1
52
mirror-img.1
|
@ -1,52 +0,0 @@
|
||||||
.TH mirror\-img 1 2024-06-01 mirror-img
|
|
||||||
|
|
||||||
.SH NAME
|
|
||||||
mirror\-img \- localize a HTML file by downloading external resources
|
|
||||||
|
|
||||||
.SH SYNOPSIS
|
|
||||||
.SY mirror-img
|
|
||||||
.YS
|
|
||||||
|
|
||||||
\fBmirror-img\fR [ -h ] [ -b url ] [ -s url ] [ -d dir ] [ file ]
|
|
||||||
|
|
||||||
.SH DESCRIPTION
|
|
||||||
mirror-img is a command-line program that creates a “local” version of an HTML
|
|
||||||
file by mirroring its remote images, stylesheets, and other resources.
|
|
||||||
|
|
||||||
.SH OPTIONS
|
|
||||||
.IP "-h, --help"
|
|
||||||
Print the usage and exit.
|
|
||||||
|
|
||||||
.IP "-b, --base"
|
|
||||||
Define the “base” URL for output, corresponding to the downloads directory from
|
|
||||||
the perspective of the output HTML. In the output HTML, all mirrored resources’
|
|
||||||
URLs will be replaced with this base URL followed by the file’s path relative to
|
|
||||||
the downloads directory.
|
|
||||||
|
|
||||||
For instance, if the downloads directory is /tmp/dl/ and the HTML file will be
|
|
||||||
output to /tmp/index.html, the base URL should be “dl/”.
|
|
||||||
|
|
||||||
Defaults to the --downloads (-d) directory.
|
|
||||||
|
|
||||||
.IP "-d, --downloads"
|
|
||||||
Set the directory into which mirrored files will be downloaded.
|
|
||||||
Defaults to “mirror/”.
|
|
||||||
|
|
||||||
.IP "-s, --source"
|
|
||||||
Provide the source URL to be used to resolve relative URLs in the input HTML.
|
|
||||||
If this option is not provided, resources with relative URLs will not be
|
|
||||||
mirrored at all. This should generally be set to the URL from which you
|
|
||||||
downloaded the HTML.
|
|
||||||
|
|
||||||
.SH REPORTING BUGS
|
|
||||||
Bugs can be reported to one of:
|
|
||||||
|
|
||||||
.IP
|
|
||||||
.UR https://hak.xwx.moe/jadedctrl/mirror-img/issues
|
|
||||||
.UE
|
|
||||||
.IP
|
|
||||||
.UR https://github.com/jadedctrl/mirror-img/issues
|
|
||||||
.UE
|
|
||||||
|
|
||||||
.SH SEE ALSO
|
|
||||||
.MR wget 1
|
|
Ŝarĝante…
Reference in New Issue