X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=pair_corr_calc_script;h=67ba32c68a8e47757982e99afaa49e6c38e803a1;hb=a198ee2eb93c0f14bdaea14722f4d98e5890935f;hp=7f25a7433ef3bf78b7abfca79bb4f33e08389dff;hpb=4d1515cac0af6b11df3d34a0bb19ea885676ee73;p=physik%2Fposic.git diff --git a/pair_corr_calc_script b/pair_corr_calc_script index 7f25a74..67ba32c 100755 --- a/pair_corr_calc_script +++ b/pair_corr_calc_script @@ -27,7 +27,11 @@ fi if [ "$3" = "g" ]; then -pdir=`dirname $1` +if [ -d $1 ]; then + pdir=$1 +else + pdir=`dirname $1` +fi pfile=$pdir/pair_corr.scr cat > $pfile <<-EOF @@ -44,7 +48,7 @@ set terminal postscript eps enhanced color solid lw 1 'Helvetica' 14 set output '$pdir/pair_corr.eps' EOF -echo -en "plot [1.5:6.0] " >> $pfile +echo -en "plot [1.0:6.0] " >> $pfile komma=0