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

Last change on this file since 137992 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
RevLine 
[106187]1--- scripts/build-lm-qsub.sh.orig       2013-04-06 00:31:56.000000000 +0900
2+++ scripts/build-lm-qsub.sh    2013-05-18 14:01:30.000000000 +0900
3@@ -36,13 +36,12 @@
[98598]4 fi
5 
6 if [ ! $IRSTLM ]; then
7-   echo "Set IRSTLM environment variable with path to irstlm"
8-   exit 2;
9+   IRSTLM=@libexec_dir@
10 fi
11 
12 #paths to scripts and commands in irstlm
13-scr=$IRSTLM/bin
14-bin=$IRSTLM/bin
15+scr=$IRSTLM
16+bin=$IRSTLM
17 gzip=`which gzip 2> /dev/null`;
18 gunzip=`which gunzip 2> /dev/null`;
19 
[106187]20--- scripts/build-lm.sh.orig    2012-10-02 16:25:08.000000000 +0900
21+++ scripts/build-lm.sh 2013-05-18 14:01:30.000000000 +0900
22@@ -30,13 +30,12 @@
[98598]23 }
24 
25 if [ ! $IRSTLM ]; then
26-   echo "Set IRSTLM environment variable with path to irstlm"
27-   exit 2
28+   IRSTLM=@libexec_dir@
29 fi
30 
31 #paths to scripts and commands in irstlm
32-scr=$IRSTLM/bin
33-bin=$IRSTLM/bin
34+scr=$IRSTLM
35+bin=$IRSTLM
36 gzip=`which gzip 2> /dev/null`;
37 gunzip=`which gunzip 2> /dev/null`;
38 
[106187]39--- scripts/lm-stat.pl.orig     2012-10-02 16:25:08.000000000 +0900
40+++ scripts/lm-stat.pl  2013-05-18 14:01:30.000000000 +0900
41@@ -46,14 +46,7 @@
[98598]42   exit(1);
43 }
44 
45-if (!$ENV{IRSTLM}){
46-  print "Set environment variable IRSTLM with path to the irstlm directory\n";
47-  exit(1);
48-}
49-
50-
51-
52-my $clm="$ENV{IRSTLM}/bin/compile-lm";
53+my $clm="@libexec_dir@/compile-lm";
54 
55 open (OUT,"$clm $lm --eval $txt --debug 1|");
56 while (<OUT>){
[106187]57--- scripts/split-ngt.sh.orig   2012-10-02 16:25:08.000000000 +0900
58+++ scripts/split-ngt.sh        2013-05-18 14:01:30.000000000 +0900
59@@ -38,9 +38,9 @@
[98598]60 #containing ngram statistics (of <order> length) in Google format
61 #These files are a partition of the whole set of ngrams
62 
63-basedir=$IRSTLM
64-bindir=$basedir/bin
65-scriptdir=$basedir/scripts
66+basedir=@libexec_dir@
67+bindir=$basedir
68+scriptdir=$basedir
69 
70 unset par
71 while [ $# -gt 0 ]
[106187]72--- scripts/Makefile.am.orig    2012-10-12 06:19:19.000000000 +0900
73+++ scripts/Makefile.am 2013-05-18 20:54:50.000000000 +0900
74@@ -1,4 +1,4 @@
[98598]75-wrapperbindir = @prefix@/bin
76+wrapperbindir = @libexecdir@/irstlm
77 
[106187]78 dist_wrapperbin_SCRIPTS = \
79 add-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.