From d76be6b7b07e0fae48f3c78fa08a457d90b7b793 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 18 Nov 2020 20:44:32 +0100 Subject: [PATCH] gcc: update docs/file-scrapers.md --- docs/file-scrapers.md | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md index a225e4c3..cf91c61e 100644 --- a/docs/file-scrapers.md +++ b/docs/file-scrapers.md @@ -38,21 +38,17 @@ Go to https://www.erlang.org/downloads and download the HTML documentation file. Go to https://gcc.gnu.org/onlinedocs/ and download the HTML tarball of GCC Manual and GCC CPP manual or run the following commands to download the tarballs: ```sh -# Gcc manual -wget https://gcc.gnu.org/onlinedocs/gcc-/gcc-html.tar.gz -# Gcc cpp manual -wget https://gcc.gnu.org/onlinedocs/gcc-/cpp-html.tar.gz +# GCC manual +mkdir docs/gcc~${VERSION}; \ +curl https://gcc.gnu.org/onlinedocs/gcc-$RELEASE/gcc-html.tar.gz | \ +tar --extract --gzip --strip-components=1 --directory=docs/gcc~${VERSION} + +# GCC CPP manual +mkdir docs/gcc~${VERSION}_cpp; \ +curl https://gcc.gnu.org/onlinedocs/gcc-$RELEASE/cpp-html.tar.gz | \ +tar --extract --gzip --strip-components=1 --directory=docs/gcc~${VERSION}_cpp ``` -Then extract the content of the tarball and move it to the devdocs directory. - -```sh -tar xf -# Gcc -mv path/to/devdocs/docs/gcc~/ -# Gcc Cpp -mv path/to/devdocs/docs/gcc~_cpp/ -``` ### GNU Fortran ## Gnuplot