qsos-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qsos-commits] qsos/tools/update_sheet update_sheet.sh


From: Goneri Le Bouder
Subject: [Qsos-commits] qsos/tools/update_sheet update_sheet.sh
Date: Thu, 28 Jun 2007 10:41:07 +0000

CVSROOT:        /sources/qsos
Module name:    qsos
Changes by:     Goneri Le Bouder <goneri>       07/06/28 10:41:07

Modified files:
        tools/update_sheet: update_sheet.sh 

Log message:
        use createempty sheet to create the qsos template

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/tools/update_sheet/update_sheet.sh?cvsroot=qsos&r1=1.15&r2=1.16

Patches:
Index: update_sheet.sh
===================================================================
RCS file: /sources/qsos/qsos/tools/update_sheet/update_sheet.sh,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- update_sheet.sh     28 Jun 2007 10:23:06 -0000      1.15
+++ update_sheet.sh     28 Jun 2007 10:41:07 -0000      1.16
@@ -1,4 +1,4 @@
-#$Id: update_sheet.sh,v 1.15 2007/06/28 10:23:06 goneri Exp $
+#$Id: update_sheet.sh,v 1.16 2007/06/28 10:41:07 goneri Exp $
 #  Copyright (C) 2006 Atos Origin 
 #
 #  Author: Gonéri Le Bouder <address@hidden>
@@ -45,14 +45,16 @@
 
   
   echo converting template $FILE  to $DIR/$FILE
+
+perl $CREATEEMPTYSHEET --include=$INCLUDE_DIR --qtpl=$FULLPATH > 
$DIR/$QSOS_FILE
 # Caramba !
-cat $FULLPATH | perl -nle "
-if (/<include\W+section=\"(\w*)\"\W+>/) {
-        \$f = \"$INCLUDE_DIR/\$1.qin\";
-        if (-f \$f && (open FILE,\"<\$f\")) {
-                foreach (<FILE>) {chomp;print};
-        } else { die \"can not open \$f\" }
-} else {print}" > $DIR/$QSOS_FILE
+#cat $FULLPATH | perl -nle "
+#if (/<include\W+section=\"(\w*)\"\W+>/) {
+#        \$f = \"$INCLUDE_DIR/\$1.qin\";
+#        if (-f \$f && (open FILE,\"<\$f\")) {
+#                foreach (<FILE>) {chomp;print};
+#        } else { die \"can not open \$f\" }
+#} else {print}" > $DIR/$QSOS_FILE
 
 xsltproc $XSLT_QTPL $DIR/$QSOS_FILE|sed s!%%CSS_SHEET%%!"$CSS_SHEET"! - > 
$DIR/$HTML_FILE
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]