lilalo

changeset 51:e0db0f8bb482

Автоматическая генерация имен сущностей для персонализированных методичек
author devi
date Sun Dec 18 16:56:09 2005 +0200 (2005-12-18)
parents ff4ab09fd3f1
children f9447da96f15
files l3scripts lm
line diff
     1.1 --- a/l3scripts	Tue Dec 06 23:54:06 2005 +0200
     1.2 +++ b/l3scripts	Sun Dec 18 16:56:09 2005 +0200
     1.3 @@ -24,6 +24,17 @@
     1.4  done
     1.5  
     1.6  ###makeout
     1.7 +cat > /tmp/lm.utf8 <<LIST
     1.8 +<!ENTITY %1 "%2">
     1.9 +lm-name		$firstname
    1.10 +lm-instructor	"$instructor"
    1.11 +lm-manager	    "$manager"
    1.12 +lm-start-date	$date
    1.13 +lm-stop-date	$stopdate
    1.14 +lm-hostname	    $host
    1.15 +lm-ipaddress	$ipaddress
    1.16 +LIST
    1.17 +cat /tmp/lm.utf8 | iconv -f UTF-8 -t KOI8-R > /tmp/lm.gent
    1.18  common=$course-$date
    1.19  personal=$course-$date-$email
    1.20  mkdir -p $outpath/${common}/{Lablogs,Docs}
     2.1 --- a/lm	Tue Dec 06 23:54:06 2005 +0200
     2.2 +++ b/lm	Sun Dec 18 16:56:09 2005 +0200
     2.3 @@ -281,6 +281,9 @@
     2.4  				center 	=>	$XMLClass->{"center"},
     2.5  				course 	=>	$XMLClass->{"course"},
     2.6  				date 	=>	$XMLClass->{"date"},
     2.7 +				stopdate 	=>	$XMLClass->{"stop-date"},
     2.8 +				instructor 	=>	$XMLClass->{"instructor"}->{"firstname"}." ".$XMLClass->{"instructor"}->{"surname"},
     2.9 +				manager 	=>	$XMLClass->{"manager"}->{"firstname"}." ".$XMLClass->{"manager"}->{"surname"},
    2.10  				coursepath =>	$XMLCourse->{"path"},
    2.11  			);
    2.12