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

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

irstlm: install executables at /opt/libexec/irstlm; replace IRSTLM with the installed directory; enable caching; install additional documents.

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

    old new  
    3333fi
    3434
    3535if [ ! $IRSTLM ]; then
    36    echo "Set IRSTLM environment variable with path to irstlm"
    37    exit 2;
     36   IRSTLM=@libexec_dir@
    3837fi
    3938
    4039#paths to scripts and commands in irstlm
    41 scr=$IRSTLM/bin
    42 bin=$IRSTLM/bin
     40scr=$IRSTLM
     41bin=$IRSTLM
    4342gzip=`which gzip 2> /dev/null`;
    4443gunzip=`which gunzip 2> /dev/null`;
    4544
  • scripts/build-lm.sh

    old new  
    2727}
    2828
    2929if [ ! $IRSTLM ]; then
    30    echo "Set IRSTLM environment variable with path to irstlm"
    31    exit 2
     30   IRSTLM=@libexec_dir@
    3231fi
    3332
    3433#paths to scripts and commands in irstlm
    35 scr=$IRSTLM/bin
    36 bin=$IRSTLM/bin
     34scr=$IRSTLM
     35bin=$IRSTLM
    3736gzip=`which gzip 2> /dev/null`;
    3837gunzip=`which gunzip 2> /dev/null`;
    3938
  • scripts/lm-stat.pl

    old new  
    3939  exit(1);
    4040}
    4141
    42 if (!$ENV{IRSTLM}){
    43   print "Set environment variable IRSTLM with path to the irstlm directory\n";
    44   exit(1);
    45 }
    46 
    47 
    48 
    49 my $clm="$ENV{IRSTLM}/bin/compile-lm";
     42my $clm="@libexec_dir@/compile-lm";
    5043
    5144open (OUT,"$clm $lm --eval $txt --debug 1|");
    5245while (<OUT>){
  • scripts/split-ngt.sh

    old new  
    66#containing ngram statistics (of <order> length) in Google format
    77#These files are a partition of the whole set of ngrams
    88
    9 basedir=$IRSTLM
    10 bindir=$basedir/bin
    11 scriptdir=$basedir/scripts
     9basedir=@libexec_dir@
     10bindir=$basedir
     11scriptdir=$basedir
    1212
    1313unset par
    1414while [ $# -gt 0 ]
  • scripts/Makefile.am

    old new  
    33perl_programs = build-sublm.pl goograms2ngrams.pl lm-stat.pl merge-sublm.pl ngram-split.pl sort-lm.pl split-dict.pl
    44dist_programs = wrapper $(sh_programs) $(perl_programs)
    55
    6 wrapperbindir = @prefix@/bin
     6wrapperbindir = @libexecdir@/irstlm
    77
    88install:
    99        for p in $(sh_programs) $(perl_programs) ; do \
Note: See TracBrowser for help on using the repository browser.