From: Raymond T. <rt...@us...> - 2013-05-12 21:29:12
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Maxima CAS". The branch, parse-info has been updated via dfa20fe5468a45ed88f184e0f9ef03828c9f72fe (commit) from 86f99467f6ee5e0ff3663e817e1a22c1f390d01b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit dfa20fe5468a45ed88f184e0f9ef03828c9f72fe Author: Raymond Toy <toy...@gm...> Date: Sun May 12 14:28:55 2013 -0700 Some portablity updates. o This script is full of bashisms, so use bash as the shell instead of plain sh. o When testing for the compiled parse-info file, just search for the compiled file and load (compile-file-pathname "parse-info-<foo>.lisp") which produces the correct fasl file name. diff --git a/lisp-utils/parse-info.sh.in b/lisp-utils/parse-info.sh.in index 6f76329..ef37f4f 100755 --- a/lisp-utils/parse-info.sh.in +++ b/lisp-utils/parse-info.sh.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash ## ## A simple utility script for running the code of parse-info.lisp in ## a Maxima image. @@ -44,17 +44,16 @@ fi ## The compile command in Makefile.am compiles parse-info.lisp to ## parse-info-<foo>.<crazything>, so we look here to tell whether it -## has been made. The "head -n 1" stuff is to avoid duplicate hits -## from clisp's .lib and .fas. -pi_compiled=$(find "$pi_dir" -iname "parse-info-$lisp*" | head -n 1) +## has been made. +pi_compiled=$(find "$pi_dir" -name "parse-info-$lisp*") if test -n "$pi_compiled"; then - pi_lisp=$pi_compiled + pi_lisp=$pi_dir/parse-info-$lisp.lisp else pi_lisp=$pi_dir/parse-info.lisp fi $maxima_local --very-quiet -l $lisp <<EOF -:lisp (load "$pi_lisp") +:lisp (load (compile-file-pathname "$pi_lisp")) :lisp (parse-info:make-info-offsets "$info_file") EOF ----------------------------------------------------------------------- Summary of changes: lisp-utils/parse-info.sh.in | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) hooks/post-receive -- Maxima CAS |