File: prevent_csh.patch

package info (click to toggle)
r-cran-deldir 1.0-6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 924 kB
  • sloc: fortran: 1,496; ansic: 171; sh: 5; makefile: 5
file content (23 lines) | stat: -rw-r--r-- 667 bytes parent folder | download | duplicates (5)
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