diff options
author | Michael Cummings <mcummings@gentoo.org> | 2003-08-06 12:15:48 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2003-08-06 12:15:48 +0000 |
commit | 04558ee77c4f82394c84c8f0bd8e3727dcc1260a (patch) | |
tree | 9e8ec11ab09d54bef79a7590da2b9723d430f22e /admin | |
parent | Sync 1.147 (diff) | |
download | gentoo-04558ee77c4f82394c84c8f0bd8e3727dcc1260a.tar.gz gentoo-04558ee77c4f82394c84c8f0bd8e3727dcc1260a.tar.bz2 gentoo-04558ee77c4f82394c84c8f0bd8e3727dcc1260a.zip |
revision resolves error message re: the news/200* listings
Diffstat (limited to 'admin')
-rw-r--r-- | admin/www.gentoo.org/scripts/news-index.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/www.gentoo.org/scripts/news-index.sh b/admin/www.gentoo.org/scripts/news-index.sh index b413ee5e80..e261cca822 100644 --- a/admin/www.gentoo.org/scripts/news-index.sh +++ b/admin/www.gentoo.org/scripts/news-index.sh @@ -27,7 +27,8 @@ mydate=`date +"%d %b %Y"` # again, for backwards compatibility, we keep this in place. cd ${WEBROOT} -for x in `ls news/200*.xml | sort -r` +#for x in `ls news/200*.xml | sort -r` +for x in `ls ${WEBROOT}/news/200*.xml | sed -e 's/^.*htdocs\///' | sort -r` do echo "<uri>/$x</uri>" >> ${WEBROOT}/dyn/news-index.xml done @@ -38,7 +39,8 @@ echo "News index generated :)" for x in ${ARCHES} do cd ${WEBROOT}/proj/en/${x} - for y in `ls news/200*.xml | sort -r` + #for y in `ls news/200*.xml | sort -r` + for y in `ls ${WEBROOT}/news/200*.xml | sed -e 's/^.*htdocs\///' | sort -r` do echo "<uri>/${y}</uri>" >> ${WEBROOT}/dyn/${x}-news-index.xml done |