History

Add Openjdk version 13, 14, 15 and 16

MasterEnoc committed 5 years ago

Commit fc900c21 parent d03c98e5 files · +152 −22Browse files

Showing the changes to docs (1 of 5 files). Show all

Unified · Split

docs/file-scrapers.md+8−15
@@ -127,23 +127,16 @@ tar xf ocaml-4.10-refman-html.tar.gz --transform 's/htmlman/ocaml/' · 126 unmodified lines
127127 ```
128128
129129 ## OpenJDK
130+Search 'Openjdk' in https://www.debian.org/distrib/packages, find the `openjdk-$VERSION-doc` package,
131+download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/openjdk-16-jre-headless/api/`
132+to `path/to/devdocs/docs/openjdk~$VERSION`
130133
131−https://packages.debian.org/sid/openjdk-11-doc
132−
133−```sh
134−mkdir docs/openjdk~11
135−curl --remote-name http://ftp.debian.org/debian/pool/main/o/openjdk-11/openjdk-11-doc_11.0.9.1+1-1_all.deb
136−bsdtar --extract --to-stdout --file openjdk-11-doc_11.0.9.1+1-1_all.deb data.tar.xz | \
137−bsdtar --extract --xz --file - --strip-components=6 --directory=docs/openjdk\~11/ ./usr/share/doc/openjdk-11-jre-headless/api/
138−```
139−
140−https://packages.debian.org/sid/openjdk-8-doc
141−
134+If you use or have access to a Debian-based GNU/Linux distribution you can run the following command:
142135 ```sh
143−mkdir docs/openjdk~8
144−curl --remote-name http://ftp.debian.org/debian/pool/main/o/openjdk-8/openjdk-8-doc_8u272-b10-1_all.deb
145−bsdtar --extract --to-stdout --file openjdk-8-doc_8u272-b10-1_all.deb data.tar.xz | \
146−bsdtar --extract --xz --file - --strip-components=6 --directory=docs/openjdk\~8/ ./usr/share/doc/openjdk-8-jre-headless/api/
136+apt download openjdk-$VERSION-doc
137+dpkg -x $PACKAGE ./
138+# previous command makes a directory called 'usr' in the current directory
139+mv ./usr/share/doc/openjdk-16-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION
147140 ```
148141
149142 ## PHP