30-makedist-autobuild-cleanold: parametrize hardcoded openmamba entries

This commit is contained in:
Silvan Calarco 2022-08-10 11:05:54 +02:00
parent 1c58b57d36
commit b059fd4fed
2 changed files with 6 additions and 7 deletions

View File

@ -1,29 +1,26 @@
#!/bin/bash
#
# Makedist automatic clean script
# Copyright (c) 2007-2015 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (c) 2007-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
. /etc/sysconfig/makedist
[ "$MAKEDIST_CRON_ENABLE" = "1" ] || exit 0
SOURCEDIR=/var/makedist
MILESTONES="milestone3 milestone2 devel"
DESTBASEURL=/pub/openmamba/devel/media
[ "$TODAYDATE" ] || TODAYDATE=`date +%Y%m%d`
GLOBDOWNLOADSFILE=$DESTBASEDIR/downloads.inc
LANGS="it en es"
ARCHS="i586 arm x86_64 aarch64"
tmpfile=`mktemp`
[ $tmpfile ] || {
[ "$tmpfile" ] || {
echo "Error: cannot create temporary files; aborting."
exit 1
}
for m in $MILESTONES; do
DESTBASEDIR=/var/ftp/pub/openmamba/$m/media
DESTBASEDIR=${REPODIR_LOCAL}/$m/media
for l in $LANGS; do
for d in `find $DESTBASEDIR/*/$l -maxdepth 0 -type d`; do
for a in $ARCHS; do
@ -80,3 +77,5 @@ for m in $MILESTONES; do
done
done
done
[ -e $tmpfile ] && rm -f $tmpfile

View File

@ -2,9 +2,9 @@
# makedist automatic build global configuration
#
REPODIR_LOCAL="/var/ftp/pub/openmamba"
REPODIR_URL="/pub/openmamba"
MILESTONES="milestone3 milestone2 devel"
PROJECTURL=https://openmamba.org
#TORRENTURL=http://torrent.mambasoft.it:8080/announce