File: example8.script.diff

package info (click to toggle)
raster3d 3.0-8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,952 kB
  • sloc: fortran: 9,536; ansic: 1,063; makefile: 315; sh: 272; csh: 1
file content (23 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Nelson A. de Oliveira
Last-Update: 2008-02-24 03:33:37 +0000
Description: Convert from csh to bash

--- a/examples/example8.script
+++ b/examples/example8.script
@@ -1,9 +1,14 @@
-#!/bin/csh
+#!/bin/bash
 #
 # 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
+fi
+export TMPDIR=$tmp
 #
 # First we make a VDW model of the B-pentamer itself
 #