]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.51
authorfred <fred>
Tue, 26 Mar 2002 23:21:53 +0000 (23:21 +0000)
committerfred <fred>
Tue, 26 Mar 2002 23:21:53 +0000 (23:21 +0000)
scm/chord-names.scm

index 738fdb4abed7e69bfb725f25e60fc8c2762b4af3..a7ef7bf2768ac4855a2705ebef83d88b0328ff94 100644 (file)
    (ice-9 regex)
    )
 
+;; The regex module may not be available, or may be broken.
+(define use-regex
+  (let ((os (string-downcase (vector-ref (uname) 0))))
+    (not (equal? "cygwin" (substring os 0 (min 6 (string-length os)))))))
+
 ;;
 ;; (octave notename accidental)
 ;;
     (apply append (pitch->text-banter tonic)
           (if user-name user-name '())
           ;; why does list->string not work, format seems only hope...
-          (if (and (string-match "super" (format "~s" user-name))
+          (if (and use-regex
+                   (string-match "super" (format "~s" user-name))
                    (or (pair? additions)
                        (pair? subtractions)))
               '(("/" (type . "super")))