11#! /bin/sh
22# ==============================================================================
3- # POV-Ray 3.7
3+ # POV-Ray v3.8
44# allanim.sh - render all POV-Ray sample animations
55# ==============================================================================
66# written November 2003 - January 2004 by Christoph Hormann
7+ # updated 2017-09-10 for POV-Ray v3.8 by Christoph Lipka
78# This file is part of POV-Ray and subject to the POV-Ray licence
89# see POVLEGAL.DOC for details.
910# ------------------------------------------------------------------------------
1819# log: log all text output of POV-Ray to a file (log.txt)
1920# scene_directory: if specified the sample scene in this directory are rendered,
2021# otherwise the scene directory is determined form the main
21- # povray ini file (usually /usr/local/share/povray-3.7/scenes).
22+ # povray ini file (usually /usr/local/share/povray-X.Y/scenes,
23+ # where X.Y represents the first two fields of the version
24+ # number, e.g. for v3.8.1 this would be 3.8).
2225# html_file: if specified a HTML file with links to the rendered
2326# animations is written.
2427# ==============================================================================
2528
2629# test mode
2730# SCENE_DIR=.
2831
29- VERSION=3.7
32+ VERSION=` povray --generation `
3033VER_DIR=povray-$VERSION
3134DEFAULT_DIR=/usr/local
3235SYSCONFDIR=$DEFAULT_DIR /etc
@@ -53,7 +56,7 @@ case "$OPTIONS" in
5356 * log* | * LOG* | * Log* )
5457 DATE=` date`
5558 LOG_FILE=" log.txt"
56- echo " log file for POV-Ray $VERSION sample scene render $DATE " > " $LOG_FILE "
59+ echo " log file for POV-Ray v $VERSION sample scene render $DATE " > " $LOG_FILE "
5760 ;;
5861esac
5962
@@ -70,7 +73,7 @@ if [ -z "$SCENE_DIR" ] ; then
7073 echo " ------------------------------------------------------"
7174 echo " the sample scene render script could not determine"
7275 echo " the location where POV-Ray is installed. Make sure"
73- echo " POV-Ray $VERSION has been correctly installed on this"
76+ echo " POV-Ray v $VERSION has been correctly installed on this"
7477 echo " computer. If you continue the script will try to"
7578 echo " the scenes from the current directory."
7679 echo " "
@@ -141,7 +144,7 @@ echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
141144<html>
142145
143146<head>
144- <title>POV-Ray $VERSION sample scenes - animations</title>
147+ <title>POV-Ray v $VERSION sample scenes - animations</title>
145148 <style type=\" text/css\" >
146149 <!--
147150body
@@ -165,9 +168,9 @@ th { background-color: #ffcc99 ; }
165168
166169<body>
167170
168- <h2>POV-Ray $VERSION sample scenes - animations</h2>
171+ <h2>POV-Ray v $VERSION sample scenes - animations</h2>
169172
170- <p><em>written ` date` by POV-Ray $VERSION sample animations render script (allanim.sh)</em></p>
173+ <p><em>written ` date` by POV-Ray v $VERSION sample animations render script (allanim.sh)</em></p>
171174
172175<hr>
173176
0 commit comments