gauche-0.9-xz-info.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. --- Gauche-0.9.1.orig/lib/gauche/interactive/info.scm
  2. +++ Gauche-0.9.1/lib/gauche/interactive/info.scm
  3. @@ -84,7 +84,8 @@
  4. :pred (lambda (p)
  5. (or (file-is-readable? p)
  6. (file-is-readable? #`",|p|.gz")
  7. - (file-is-readable? #`",|p|.bz2"))))
  8. + (file-is-readable? #`",|p|.bz2")
  9. + (file-is-readable? #`",|p|.xz"))))
  10. (errorf "couldn't find info file ~s in paths: ~s" *info-file* paths))
  11. ))
  12. --- Gauche-0.9.1.orig/lib/text/info.scm
  13. +++ Gauche-0.9.1/lib/text/info.scm
  14. @@ -63,6 +63,7 @@
  15. ;; Find gunzip location
  16. (define gunzip (find-file-in-paths "gunzip"))
  17. (define bzip2 (find-file-in-paths "bzip2"))
  18. +(define xz (find-file-in-paths "xz"))
  19. ;; Read an info file FILE, and returns a list of strings splitted by ^_ (#\x1f)
  20. ;; If FILE is not found, look for compressed one.
  21. @@ -74,6 +75,8 @@
  22. (with-input-from-process #`",gunzip -c ,file" thunk)]
  23. [(and bzip2 (file-exists? #`",|file|.bz2"))
  24. (with-input-from-process #`",bzip2 -c -d ,|file|.bz2" thunk)]
  25. + [(and xz (file-exists? #`",|file|.xz"))
  26. + (with-input-from-process #`",xz -c -d ,|file|.xz" thunk)]
  27. [else (error "can't find info file" file)]))
  28. (with-input-from-info
  29. (lambda ()