Ignore:
Timestamp:
04/22/08 21:11:12 (16 years ago)
Author:
pawelk <pawelk@…>
Branches:
master, help
Children:
cfed5c1
Parents:
b6109b9
git-author:
pawelk <pawelk@…> (04/22/08 21:11:12)
git-committer:
pawelk <pawelk@…> (04/22/08 21:11:12)
Message:

Poprawilem dystrybucje z dgp. Pewne pliki sa jeszcze niedokonczone.

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@30 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/dist/common/utt_make_config.pl

    rac7d970 rff0fc99  
    2121conf_lem(catfile($usr_home, 'lem.conf'), $sys_home); 
    2222conf_ser(catfile($usr_home, 'ser.conf'), $sys_home); 
     23conf_dgc(catfile($usr_home, 'dgc.conf'), $sys_home); 
    2324 
    2425print "UTT user configuration created in $usr_home\n"; 
     
    214215        return $best_locale; 
    215216} 
     217 
     218sub conf_dgc() { 
     219        my $dgc_file = shift; 
     220        my $utthome = shift; 
     221  open(FILE, ">$dgc_file"); 
     222 
     223  print FILE makeConfigHeader(); 
     224  print FILE "categories=", abs_path("$utthome/lib/utt/cats.dgc"), "\n"; 
     225  print FILE "grammar=", abs_path("$utthome/lib/utt/gram.dgc"), "\n"; 
     226 
     227  close FILE; 
     228   
     229   
     230  open(FILE, ">$utthome/bin/Makefile.go"); 
     231  print FILE "\ngram.dgp: ", abs_path("$utthome/lib/utt/gram.dgc"), "\n"; 
     232  print FILE "\tdgc -c ", abs_path("$utthome/lib/utt/cats.dgc"), " < ", abs_path("$utthome/lib/utt/gram.dgc"), " > gram.dgp\n"; 
     233  close FILE; 
     234   
     235} 
     236 
Note: See TracChangeset for help on using the changeset viewer.