From 821fc724d99b9baaf09a5fe8575c4512a9db8cab Mon Sep 17 00:00:00 2001 From: MasterEnoc Date: Tue, 17 Nov 2020 19:30:30 -0600 Subject: [PATCH 1/3] Update Gnu Fortran to 10.2.0 - Add Gnu fortran 9 and 8. --- lib/docs/scrapers/gnu/gnu_fortran.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/docs/scrapers/gnu/gnu_fortran.rb b/lib/docs/scrapers/gnu/gnu_fortran.rb index dd18827c..4182aa0f 100644 --- a/lib/docs/scrapers/gnu/gnu_fortran.rb +++ b/lib/docs/scrapers/gnu/gnu_fortran.rb @@ -6,6 +6,21 @@ module Docs home: 'https://gcc.gnu.org/fortran/' } + version '10' do + self.release = '10.2.0' + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/" + end + + version '9' do + self.release = '9.3.0' + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/" + end + + version '8' do + self.release = '8.4.0' + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/" + end + version '7' do self.release = '7.3.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/" From 8fa0b64e7e2bf34c920d2a71d0c2e4fe987f3593 Mon Sep 17 00:00:00 2001 From: MasterEnoc Date: Wed, 18 Nov 2020 09:55:10 -0600 Subject: [PATCH 2/3] Update Fortran entry in file-scrapers.md --- docs/file-scrapers.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md index 506e9a59..70a0c6d9 100644 --- a/docs/file-scrapers.md +++ b/docs/file-scrapers.md @@ -36,6 +36,18 @@ Go to https://www.erlang.org/downloads and download the HTML documentation file. ### GCC ### GNU Fortran +Go to https://gcc.gnu.org/onlinedocs/ and download the HTML tarball of Fortran manual or run the following commands to download the tarball: + +```sh +wget https://gcc.gnu.org/onlinedocs/gcc-/gfortran-html.tar.gz +``` + +Then extract the content of the tarball and move it to the devdocs directory. + +```sh +tar xf +mv path/to/devdocs/docs/gnu_fortran~/ +``` ## Gnuplot From 1e2200bf57bd0ff41be86ffe2cae2360ba65c53c Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 18 Nov 2020 21:38:03 +0100 Subject: [PATCH 3/3] gnu_fortran: update docs/file-scrapers.md --- docs/file-scrapers.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md index 70a0c6d9..fbfbf435 100644 --- a/docs/file-scrapers.md +++ b/docs/file-scrapers.md @@ -39,14 +39,9 @@ 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 Fortran manual or run the following commands to download the tarball: ```sh -wget https://gcc.gnu.org/onlinedocs/gcc-/gfortran-html.tar.gz -``` - -Then extract the content of the tarball and move it to the devdocs directory. - -```sh -tar xf -mv path/to/devdocs/docs/gnu_fortran~/ +mkdir docs/gnu_fortran~$VERSION; \ +curl https://gcc.gnu.org/onlinedocs/gcc-$RELEASE/gfortran-html.tar.gz | \ +tar --extract --gzip --strip-components=1 --directory=docs/gnu_fortran~$VERSION ``` ## Gnuplot