source: trunk/dports/textproc/irstlm/files/patch-scripts.diff

Last change on this file was 106187, checked in by hum@…, 7 years ago

irstlm: update to 5.80.03; add patch-configure.in.diff to fix for automake 1.13 update.

File size: 2.0 KB
  • scripts/build-lm-qsub.sh

    old new  
    3636fi
    3737
    3838if [ ! $IRSTLM ]; then
    39    echo "Set IRSTLM environment variable with path to irstlm"
    40    exit 2;
     39   IRSTLM=@libexec_dir@
    4140fi
    4241
    4342#paths to scripts and commands in irstlm
    44 scr=$IRSTLM/bin
    45 bin=$IRSTLM/bin
     43scr=$IRSTLM
     44bin=$IRSTLM
    4645gzip=`which gzip 2> /dev/null`;
    4746gunzip=`which gunzip 2> /dev/null`;
    4847
  • scripts/build-lm.sh

    old new  
    3030}
    3131
    3232if [ ! $IRSTLM ]; then
    33    echo "Set IRSTLM environment variable with path to irstlm"
    34    exit 2
     33   IRSTLM=@libexec_dir@
    3534fi
    3635
    3736#paths to scripts and commands in irstlm
    38 scr=$IRSTLM/bin
    39 bin=$IRSTLM/bin
     37scr=$IRSTLM
     38bin=$IRSTLM
    4039gzip=`which gzip 2> /dev/null`;
    4140gunzip=`which gunzip 2> /dev/null`;
    4241
  • scripts/lm-stat.pl

    old new  
    4646  exit(1);
    4747}
    4848
    49 if (!$ENV{IRSTLM}){
    50   print "Set environment variable IRSTLM with path to the irstlm directory\n";
    51   exit(1);
    52 }
    53 
    54 
    55 
    56 my $clm="$ENV{IRSTLM}/bin/compile-lm";
     49my $clm="@libexec_dir@/compile-lm";
    5750
    5851open (OUT,"$clm $lm --eval $txt --debug 1|");
    5952while (<OUT>){
  • scripts/split-ngt.sh

    old new  
    3838#containing ngram statistics (of <order> length) in Google format
    3939#These files are a partition of the whole set of ngrams
    4040
    41 basedir=$IRSTLM
    42 bindir=$basedir/bin
    43 scriptdir=$basedir/scripts
     41basedir=@libexec_dir@
     42bindir=$basedir
     43scriptdir=$basedir
    4444
    4545unset par
    4646while [ $# -gt 0 ]
  • scripts/Makefile.am

    old new  
    1 wrapperbindir = @prefix@/bin
     1wrapperbindir = @libexecdir@/irstlm
    22
    33dist_wrapperbin_SCRIPTS = \
    44add-start-end.sh build-lm-qsub.sh build-lm.sh rm-start-end.sh split-ngt.sh mdtsel.sh \
Note: See TracBrowser for help on using the repository browser.