File: example2.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 (22 lines) | stat: -rw-r--r-- 810 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
Author: Nelson A. de Oliveira
Last-Update: 2008-02-24 03:33:37 +0000
Description: Convert from csh to bash

--- a/examples/example2.script
+++ b/examples/example2.script
@@ -1,11 +1,11 @@
-#!/bin/csh
+#!/bin/bash
 # E A Merritt March 1993
 # Illustration of composed figure using Raster3D
 # (assumes ImageMagick installed, if not then don't pipe output from render)
 #
-setenv TMPFILE  `mktemp /tmp/ex2.XXXXXX` || exit 1
-setenv TMPBALLS `mktemp /tmp/ex2.XXXXXX` || exit 1
-setenv TMPSUGAR `mktemp /tmp/ex2.XXXXXX` || exit 1
+export TMPFILE=`mktemp /tmp/ex2.XXXXXX` || exit 1
+export TMPBALLS=`mktemp /tmp/ex2.XXXXXX` || exit 1
+export TMPSUGAR=`mktemp /tmp/ex2.XXXXXX` || exit 1
 #
 # figure consists of E. coli enterotoxin (protein as spheres)
 # binding to GM1 pentasaccharide (sugars represented as rods)