1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Author: Andreas Tille <tille@debian.org>
Description: Convert simple csh script to POSIX shell to silence lintian.
However, this is not needed inside the binary package so simply removing
the ratfor code from binary seems to be the more sane solution. Leave it
here for reference might not harm anyway
LastChanged: Wed, 15 May 2013 15:12:06 +0200
--- a/inst/ratfor/makefor
+++ b/inst/ratfor/makefor
@@ -1,7 +1,7 @@
-#! /bin/csh
+#!/bin/sh
-foreach file (*.r)
-set stem = `basename $file .r`
-ratfor $file > $stem.f
-/bin/mv $stem.f ../../src
-end
+for file in `ls *.r` ; do
+ stem=`basename $file .r`
+ ratfor $file > $stem.f
+ /bin/mv $stem.f ../../src
+done
|