[devdocsgjs/main: 1202/1867] gcc: update docs/file-scrapers.md




commit d76be6b7b07e0fae48f3c78fa08a457d90b7b793
Author: Simon Legner <Simon Legner gmail com>
Date:   Wed Nov 18 20:44:32 2020 +0100

    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-<version>/gcc-html.tar.gz
-# Gcc cpp manual
-wget https://gcc.gnu.org/onlinedocs/gcc-<version>/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 <tarball>
-# Gcc
-mv <extracted_directory> path/to/devdocs/docs/gcc~<version>/
-# Gcc Cpp
-mv <extracted_directory> path/to/devdocs/docs/gcc~<version>_cpp/
-```
 ### GNU Fortran
 
 ## Gnuplot


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]