[med-svn] r7297 - in trunk/packages/raster3d/trunk/debian: patches wrappers
Nelson A. de Oliveira
naoliv at alioth.debian.org
Mon Jul 18 16:16:09 UTC 2011
Author: naoliv
Date: 2011-07-18 16:16:09 +0000 (Mon, 18 Jul 2011)
New Revision: 7297
Modified:
trunk/packages/raster3d/trunk/debian/patches/example8.script.diff
trunk/packages/raster3d/trunk/debian/wrappers/normal3d
trunk/packages/raster3d/trunk/debian/wrappers/render
Log:
Better ifs
Modified: trunk/packages/raster3d/trunk/debian/patches/example8.script.diff
===================================================================
--- trunk/packages/raster3d/trunk/debian/patches/example8.script.diff 2011-07-18 15:45:59 UTC (rev 7296)
+++ trunk/packages/raster3d/trunk/debian/patches/example8.script.diff 2011-07-18 16:16:09 UTC (rev 7297)
@@ -1,19 +1,16 @@
---- Raster3D-2.9-1.orig/examples/example8.script
-+++ Raster3D-2.9-1/examples/example8.script
-@@ -1,9 +1,14 @@
+--- examples/example8.script 2011-07-18 13:11:52.000000000 -0300
++++ examples/example8.script 2011-07-18 13:13:55.000000000 -0300
+@@ -1,9 +1,11 @@
-#!/bin/csh
-+#!/bin/bash
++#!/bin/sh
#
# Demonstrate stereo3d script by making stereo pair of
# view down pore of LT B-pentamer
#
-if (! $?TMPDIR) setenv TMPDIR /tmp ; endif
-+if [ "$TMPDIR" ]; then
-+ tmp=$TMPDIR
-+else
-+ tmp=/tmp
++if [ -z "$TMPDIR" ]; then
++ export TMPDIR=/tmp
+fi
-+export TMPDIR=$tmp
#
# First we make a VDW model of the B-pentamer itself
#
Modified: trunk/packages/raster3d/trunk/debian/wrappers/normal3d
===================================================================
--- trunk/packages/raster3d/trunk/debian/wrappers/normal3d 2011-07-18 15:45:59 UTC (rev 7296)
+++ trunk/packages/raster3d/trunk/debian/wrappers/normal3d 2011-07-18 16:16:09 UTC (rev 7297)
@@ -1,7 +1,7 @@
#!/bin/sh
-if [ "$R3D_LIB" = "" ]
-then
- export R3D_LIB=/usr/share/raster3d/materials
+
+if [ -z "$R3D_LIB" ]; then
+ export R3D_LIB=/usr/share/raster3d/materials
fi
/usr/lib/raster3d/normal3d.real "$@"
Modified: trunk/packages/raster3d/trunk/debian/wrappers/render
===================================================================
--- trunk/packages/raster3d/trunk/debian/wrappers/render 2011-07-18 15:45:59 UTC (rev 7296)
+++ trunk/packages/raster3d/trunk/debian/wrappers/render 2011-07-18 16:16:09 UTC (rev 7297)
@@ -1,7 +1,7 @@
#!/bin/sh
-if [ "$R3D_LIB" = "" ]
-then
- export R3D_LIB=/usr/share/raster3d/materials
+
+if [ -z "$R3D_LIB" ]; then
+ export R3D_LIB=/usr/share/raster3d/materials
fi
/usr/lib/raster3d/render.real "$@"
More information about the debian-med-commit
mailing list