mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-22 04:30:19 +02:00
Use egrep for better compatibility.
This commit is contained in:
parent
c0f87beb86
commit
44fdbfc668
1 changed files with 5 additions and 4 deletions
|
@ -20,8 +20,8 @@
|
||||||
|
|
||||||
(define srcdir (cdr (assq 'srcdir %guile-build-info)))
|
(define srcdir (cdr (assq 'srcdir %guile-build-info)))
|
||||||
|
|
||||||
(define (grep string filename)
|
(define (egrep string filename)
|
||||||
(zero? (system (string-append "grep '" string "' " filename " >/dev/null"))))
|
(zero? (system (string-append "egrep '" string "' " filename " >/dev/null"))))
|
||||||
|
|
||||||
(define (seek-offset-test dirname)
|
(define (seek-offset-test dirname)
|
||||||
(let ((dir (opendir dirname)))
|
(let ((dir (opendir dirname)))
|
||||||
|
@ -29,8 +29,9 @@
|
||||||
((eof-object? filename))
|
((eof-object? filename))
|
||||||
(if (eqv? (string-ref filename (- (string-length filename) 1)) #\c)
|
(if (eqv? (string-ref filename (- (string-length filename) 1)) #\c)
|
||||||
(let ((file (string-append dirname "/" filename)))
|
(let ((file (string-append dirname "/" filename)))
|
||||||
(if (and (grep "SEEK_\\(SET\\|CUR\\|END\\)" file)
|
(if (and (file-exists? file)
|
||||||
(not (grep "unistd.h" file)))
|
(egrep "SEEK_(SET|CUR|END)" file)
|
||||||
|
(not (egrep "unistd.h" file)))
|
||||||
(fail file)))))))
|
(fail file)))))))
|
||||||
|
|
||||||
;;; A rough conservative test to check that all source files
|
;;; A rough conservative test to check that all source files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue