a158709
#! /bin/sh /usr/share/dpatch/dpatch-run
a158709
## 127-yexpand-makes-tmpfiles-in-pwd.dpatch by Patrice Dumas <pertusus@free.fr>
a158709
##
a158709
## All lines beginning with `## DP:' are a description of the patch.
a158709
## DP: Have yexpand create temp files in $PWD rather than $HOME.
a158709
a158709
@DPATCH@
a158709
diff -urNad cernlib-2006.dfsg.2~/src/patchy/yexpand.script cernlib-2006.dfsg.2/src/patchy/yexpand.script
a158709
--- cernlib-2006.dfsg.2~/src/patchy/yexpand.script	2005-04-18 08:41:03.000000000 -0700
a158709
+++ cernlib-2006.dfsg.2/src/patchy/yexpand.script	2008-02-26 13:18:35.000000000 -0800
bd55082
@@ -26,8 +26,8 @@
bd55082
 # CERN_ROOT=":$CERN_ROOT" ; export CERN_ROOT 
bd55082
   CERN_ROOT=":$CERN/$CERN_LEVEL" ; export CERN_ROOT 
bd55082
 
bd55082
-  tfile="$HOME/$tfile.yexp"
bd55082
-  echo "#!/bin/sh"    >$tfile
bd55082
+  tfile="./$tfile.yexp"
bd55082
+  echo "#! /bin/sh"    >$tfile
bd55082
   echo "  cat <<EOI" >>$tfile
bd55082
   cat <$ifile        >>$tfile
bd55082
   cc=$?