Переглянути джерело

be even more smarter and recognize the pseudo-schemas rfc and whois, too

Ralf S. Engelschall 23 роки тому
батько
коміт
3ededc41ea
2 змінених файлів з 12 додано та 1 видалено
  1. 11 0
      mozilla/mozilla.sh
  2. 1 1
      mozilla/mozilla.spec

+ 11 - 0
mozilla/mozilla.sh

@@ -97,6 +97,7 @@ for url in "$@"; do
                     ftp.* ) url="ftp://$url" ;;
                     *.tar.gz | *.tgz ) url="ftpsearch:$url" ;;
                     *" "* ) url="google:$url" ;;
+                    [0-9]* ) url="rfc:$url" ;;
                     * ) url="leo:$url" ;;
                 esac
                 ;;
@@ -120,6 +121,16 @@ for url in "$@"; do
                 url=`echo "$url" | sed -e 's;^ftpsearch:;;' | sed -e 's; ;%20;g'`
                 url="http://www.alltheweb.com/search?advanced=1&cat=ftp&q=$url"
                 ;;
+            rfc:* )
+                #   expand Zvon.org RFC query
+                url=`echo "$url" | sed -e 's;^rfc:;;'`
+                url="http://zvon.org/tmRFC/RFC$url/Output/index.html"
+                ;;
+            whois:* )
+                #   expand Geektools.com WHOIS query
+                url=`echo "$url" | sed -e 's;^whois:;;'`
+                url="http://www.geektools.com/cgi-bin/proxy.cgi?query=$url"
+                ;;
             /* ) 
                 #   expand absolute filename into file URL
                 url="file://$url"

+ 1 - 1
mozilla/mozilla.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
 Group:        Web
 License:      MPL
 Version:      1.2.1
-Release:      20021206
+Release:      20021212
 
 #   list of sources
 Source0:      ftp://ftp.mozilla.org/pub/mozilla/releases/mozilla%{version}/src/mozilla-source-%{version}.tar.bz2