wok-6.x rev 5840
tazpkg-web: auto copyright year
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 16 09:19:53 2010 +0200 (2010-07-16) |
parents | d38617bc7bf4 |
children | f7b4acf937ec |
files | tazpkg-web/stuff/html/footer.html tazpkg-web/stuff/tazpkg-web |
line diff
1.1 --- a/tazpkg-web/stuff/html/footer.html Fri Jul 16 09:14:24 2010 +0200 1.2 +++ b/tazpkg-web/stuff/html/footer.html Fri Jul 16 09:19:53 2010 +0200 1.3 @@ -8,7 +8,7 @@ 1.4 <a href="#top">Top of the page</a> 1.5 </p> 1.6 <p> 1.7 -Copyright © 2010 <a href="http://www.slitaz.org/">SliTaz</a> - 1.8 +Copyright © _YEAR_ <a href="http://www.slitaz.org/">SliTaz</a> - 1.9 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a> 1.10 </p> 1.11 </div>
2.1 --- a/tazpkg-web/stuff/tazpkg-web Fri Jul 16 09:14:24 2010 +0200 2.2 +++ b/tazpkg-web/stuff/tazpkg-web Fri Jul 16 09:19:53 2010 +0200 2.3 @@ -10,6 +10,7 @@ 2.4 RELEASE="$1" 2.5 PAGES_DIR=$WEB_INTERFACE/$RELEASE 2.6 DATE=`date +%Y-%m-%d\ \%H:%M:%S` 2.7 +YEAR=`date +%Y` 2.8 2.9 status() 2.10 { 2.11 @@ -77,6 +78,7 @@ 2.12 { 2.13 cat $LIB_DIR/html/footer.html >> $PAGES_DIR/$page.html 2.14 sed -i s/"_DATE_"/"$DATE"/ $PAGES_DIR/$page.html 2.15 + sed -i s/"_YEAR_"/"$YEAR"/ $PAGES_DIR/$page.html 2.16 } 2.17 2.18 # Index pages with categories and search form.