Line 32... |
Line 32... |
32 |
# refresh the local copy of the repo and rebuild packages index
|
32 |
# refresh the local copy of the repo and rebuild packages index
|
33 |
svn up "$SVNREPODIR"
|
33 |
svn up "$SVNREPODIR"
|
34 |
rm -rf "$SVNREPODIR/packages/latest"
|
34 |
rm -rf "$SVNREPODIR/packages/latest"
|
35 |
php "$SVNREPODIR/buildidx/buildidx.php" "$SVNREPODIR/packages/" > "$SVNREPODIR/packages/_buildidx.log"
|
35 |
php "$SVNREPODIR/buildidx/buildidx.php" "$SVNREPODIR/packages/" > "$SVNREPODIR/packages/_buildidx.log"
|
36 |
|
36 |
|
- |
|
37 |
# build the ISO that contains all latest packages from the repo
|
- |
|
38 |
mkisofs -input-charset cp437 -iso-level 1 -f -V SVARDOS_REPO -o "$SVNREPODIR/website/repo/sv-repo.tmp" "$SVNREPODIR"/packages/latest/*
|
- |
|
39 |
mv "$SVNREPODIR/website/repo/sv-repo.tmp" "$SVNREPODIR/website/repo/sv-repo.iso"
|
- |
|
40 |
md5sum "$SVNREPODIR/website/repo/sv-repo.iso" > "$SVNREPODIR/website/repo/sv-repo.iso.md5"
|
- |
|
41 |
|
37 |
|
42 |
|
38 |
# do I need to rebuild the install images as well?
|
43 |
# do I need to rebuild the install images as well?
|
39 |
if [ "$NEEDTOREBUILD" -ne 0 ] ; then
|
44 |
if [ "$NEEDTOREBUILD" -ne 0 ] ; then
|
40 |
CURDATE=`date +%Y%m%d`
|
45 |
CURDATE=`date +%Y%m%d`
|
41 |
DESTDIR="website/download/$CURDATE"
|
46 |
DESTDIR="website/download/$CURDATE"
|