Browse Source

Merge pull request #1336 from MasterEnoc/fortran

Update Gnu Fortran to 10.2.0
Simon Legner 5 years ago
parent
commit
88688f8549
2 changed files with 22 additions and 0 deletions
  1. 7 0
      docs/file-scrapers.md
  2. 15 0
      lib/docs/scrapers/gnu/gnu_fortran.rb

+ 7 - 0
docs/file-scrapers.md

@@ -53,6 +53,13 @@ tar --extract --gzip --strip-components=1 --directory=docs/gcc~${VERSION}_cpp
 ```
 
 ### 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
+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
 

+ 15 - 0
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/"