[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qsos-commits] qsos/tools/update_sheet qsos.cfg update_sheet.sh
From: |
Goneri Le Bouder |
Subject: |
[Qsos-commits] qsos/tools/update_sheet qsos.cfg update_sheet.sh |
Date: |
Thu, 15 Jun 2006 16:19:51 +0000 |
CVSROOT: /sources/qsos
Module name: qsos
Changes by: Goneri Le Bouder <goneri> 06/06/15 16:19:51
Modified files:
tools/update_sheet: qsos.cfg update_sheet.sh
Log message:
fix minor issues with indexes creation
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/tools/update_sheet/qsos.cfg?cvsroot=qsos&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/qsos/tools/update_sheet/update_sheet.sh?cvsroot=qsos&r1=1.8&r2=1.9
Patches:
Index: qsos.cfg
===================================================================
RCS file: /sources/qsos/qsos/tools/update_sheet/qsos.cfg,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- qsos.cfg 15 Jun 2006 13:32:32 -0000 1.5
+++ qsos.cfg 15 Jun 2006 16:19:51 -0000 1.6
@@ -15,6 +15,7 @@
FTP_PASSWD="passwd"
FTP_HOST="ftp"
FTP_DIR_SHEETS="sheets"
+FTP_DIR_TEMPLATES="templates"
CSS_LISTING="/style/original/qsos-listing.css"
CSS_SHEET="/style/original/qsos-sheet.css"
Index: update_sheet.sh
===================================================================
RCS file: /sources/qsos/qsos/tools/update_sheet/update_sheet.sh,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- update_sheet.sh 15 Jun 2006 15:05:09 -0000 1.8
+++ update_sheet.sh 15 Jun 2006 16:19:51 -0000 1.9
@@ -1,4 +1,4 @@
-#$Id: update_sheet.sh,v 1.8 2006/06/15 15:05:09 goneri Exp $
+#$Id: update_sheet.sh,v 1.9 2006/06/15 16:19:51 goneri Exp $
# Copyright (C) 2006 Atos Origin
#
# Author: Gonéri Le Bouder <address@hidden>
@@ -66,14 +66,22 @@
echo $DIR
rm -f $DIR/index.html
- for i in `ls $DIR`;do
- if [ -d $i ]; then
- TYPE="folder"
- else
+ for i in `ls $DIR|grep -v qsos`;do
+ echo $i
+ if [ -f "$DIR/$i" ]; then
TYPE="sheet"
+ echo "sheet: $i"
+ else
+ echo "dossier: $i"
+ TYPE="folder"
fi
+ if [ "$TYPE" = "sheet" ]
+ then
LIST=$LIST"<li class=$TYPE>`echo $i|sed s/\.html$//` (<a
href=\"$i\">view</a>) (<a href="`echo $i|sed
s/\.html$/.qsos/`">sources</a>)</li>\n"
+ else
+ LIST=$LIST"<li class=$TYPE><a href=\"$i\">`echo $i|sed
s/\.html$//`</a></li>\n"
+ fi
done
LIST=$LIST"</ul>\n"
@@ -88,7 +96,6 @@
echo index $DIR/index.html created
}
-
# FIXME if mkdir failed, web site is removed...
upload () {
cat <<eof | lftp