Changeset ff0fc99 for app/dist/common/utt_make_config.pl
- Timestamp:
- 04/22/08 21:11:12 (17 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/dist/common/utt_make_config.pl
rac7d970 rff0fc99 21 21 conf_lem(catfile($usr_home, 'lem.conf'), $sys_home); 22 22 conf_ser(catfile($usr_home, 'ser.conf'), $sys_home); 23 conf_dgc(catfile($usr_home, 'dgc.conf'), $sys_home); 23 24 24 25 print "UTT user configuration created in $usr_home\n"; … … 214 215 return $best_locale; 215 216 } 217 218 sub 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.