Recently Written · git

librivox

Automated youtube uploading of audiobooks

git clone https://github.com/equwal/librivox

Log | Files | Refs


commit a8a38f64dc0d1c55e53a655e97274f952175277a
Spenser Truex <struex0@gmail.com>
2018-07-31 15:03:48 -0700

Portability.

 src/bash.lisp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/bash.lisp b/src/bash.lisp
index 65003eb..9a5ff5c 100644
--- a/src/bash.lisp
+++ b/src/bash.lisp
@@ -15,7 +15,8 @@
 (defun seconds (seconds)
   (nth-digit 0 seconds 60))
 (defun processor-cores ()
-  (run-line-integer-output "grep -c ^processor /proc/cpuinfo~*"))
+  #+linux (run-line-integer-output "grep -c ^processor /proc/cpuinfo~*")
+  #-linux 1)
 (defun convert (image-filename output-filename zip-filename)
   "Convert the zip to video."
   ;; ~A for the download directory, ~:*~A after the first.