Major sync to current used version

This commit is contained in:
Silvan Calarco 2015-03-15 00:24:14 +01:00
parent 0c1decb55f
commit 750ad9484f
11 changed files with 338 additions and 196 deletions

View File

@ -114,7 +114,6 @@ if [ ! "$ONLY_RECREATE_IMAGES" ]; then
if [ ! "$VIEWMODE" ]; then if [ ! "$VIEWMODE" ]; then
echo "Capturing window output" echo "Capturing window output"
mkdir -p $ISO_DIR/preview/ mkdir -p $ISO_DIR/preview/
#DBUS_SESSION_BUS_ADDRESS=
HOME=$RECORDVM_DATA DISPLAY=:$X_DISPLAY dbus-launch --exit-with-session xvidcap \ HOME=$RECORDVM_DATA DISPLAY=:$X_DISPLAY dbus-launch --exit-with-session xvidcap \
--cap_geometry 1024x768+0+$VOFFSET \ --cap_geometry 1024x768+0+$VOFFSET \
--verbose 2 --gui no --audio no \ --verbose 2 --gui no --audio no \

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# #
# Makedist automatic build script # Makedist automatic build script
# Copyright (c) 2007-2013 by Silvan Calarco <silvan.calarco@mambasoft.it> # Copyright (c) 2007-2015 by Silvan Calarco <silvan.calarco@mambasoft.it>
# #
# Usage: # Usage:
# #
@ -14,6 +14,10 @@
. /etc/sysconfig/makedist . /etc/sysconfig/makedist
. /usr/share/makedist/functions.inc.sh . /usr/share/makedist/functions.inc.sh
# DO_RECORDVM=1
DESTIMGFILEPREFIX="openmamba"
ALLMEDIASLAST=`expr ${#MEDIA_NAME[*]} - 1`
[ "$MAKEDIST_CRON_ENABLE" = "1" ] || exit 0 [ "$MAKEDIST_CRON_ENABLE" = "1" ] || exit 0
ME=`basename $0` ME=`basename $0`
@ -33,22 +37,13 @@ SOURCEDIR=/var/makedist
[ "$MAKEDIST_FORCE" ] || MAKEDIST_FORCE=1 [ "$MAKEDIST_FORCE" ] || MAKEDIST_FORCE=1
[ "$TODAYDATE" ] || TODAYDATE=`date +%Y%m%d` [ "$TODAYDATE" ] || TODAYDATE=`date +%Y%m%d`
[ "$WEEKDAY" ] || WEEKDAY=`date +%u` [ "$WEEKDAY" ] || WEEKDAY=`date +%u`
[ "$MONTHDAY" ] || MONTHDAY=`date +%-d`
[ "$DISTVERSION" ] || { [ "$DISTVERSION" ] || {
echo "Error: DISTVERSION is not set, check configuration file; aborting." echo "Error: DISTVERSION is not set, check configuration file; aborting."
exit 1 exit 1
} }
if [ "$RELEASE" ]; then
SOURCEIMGFILEPREFIX="openmamba-$DISTVERSION"
else
SOURCEIMGFILEPREFIX="openmamba"
fi
DESTBASEDIR=/var/ftp/pub/openmamba/$DISTVERSION/media
DESTIMGFILEPREFIX="openmamba"
ALLMEDIASLAST=`expr ${#MEDIA_NAME[*]} - 1`
DESTBASEURL=/pub/openmamba/$DISTVERSION/media
# do_makedist() # do_makedist()
# #
@ -63,14 +58,16 @@ DESTBASEURL=/pub/openmamba/$DISTVERSION/media
# $7: architecture # $7: architecture
function do_makedist() { function do_makedist() {
local DIST_CREATED=0 SOURCEIMG DESTFILENAME DESTNAME DESTLANGUAGE DESTPLATFORM DESTSUBPLATFORM DESTARCH \ local DIST_CREATED=0 SOURCEIMG DESTFILENAME DESTNAME DESTLANGUAGE DESTPLATFORM DESTSUBPLATFORM DESTARCH \
DESTPRODUCTNAME DESTDIR DESTIMG DESTMD5 DESTTORRENT DESTVARIANT DESTPRODUCTNAME DESTDIR DESTIMG DESTMD5 DESTTORRENT DESTMILESTONE
DESTFILENAME=$1 DESTFILENAME=$1
DESTNAME=$2 DESTNAME=$2
DESTLANGUAGE=$3 DESTLANGUAGE=$3
DESTPLATFORM=$4 DESTPLATFORM=$4
DESTSUBPLATFORM=$5 DESTSUBPLATFORM=$5
DESTPRODUCTNAME=$6 DESTVARIANT=$6
DESTARCH=$7 DESTPRODUCTNAME=$7
DESTARCH=$8
DESTMILESTONE=$9
SOURCEIMG=$SOURCEDIR/${DESTFILENAME} SOURCEIMG=$SOURCEDIR/${DESTFILENAME}
DESTDIR=$DESTBASEDIR/${DESTPRODUCTNAME}/${DESTLANGUAGE} DESTDIR=$DESTBASEDIR/${DESTPRODUCTNAME}/${DESTLANGUAGE}
DESTIMG=$DESTDIR/$DESTNAME DESTIMG=$DESTDIR/$DESTNAME
@ -95,11 +92,16 @@ function do_makedist() {
else else
CMD_PREFIX= CMD_PREFIX=
fi fi
if [ "${DESTMILESTONE}" = "devel" ]; then
MAKEDIST_TARGET=openmamba
else
MAKEDIST_TARGET=openmamba-${DESTMILESTONE}
fi
[ "$CRON_DEBUG" = "1" ] && \ [ "$CRON_DEBUG" = "1" ] && \
echo "-> makedist openmamba PLATFORM=${DESTPLATFORM} SUBPLATFORM=${DESTSUBPLATFORM} \ echo "-> makedist $MAKEDIST_TARGET PLATFORM=${DESTPLATFORM} SUBPLATFORM=${DESTSUBPLATFORM} \
LANGUAGE=${DESTLANGUAGE} ARCH=${DESTARCH} FORCE=${MAKEDIST_FORCE}" VARIANT=${DESTVARIANT} LANGUAGE=${DESTLANGUAGE} ARCH=${DESTARCH} FORCE=${MAKEDIST_FORCE}"
makedist openmamba PLATFORM=${DESTPLATFORM} SUBPLATFORM=${DESTSUBPLATFORM} \ makedist $MAKEDIST_TARGET PLATFORM=${DESTPLATFORM} SUBPLATFORM=${DESTSUBPLATFORM} \
LANGUAGE=${DESTLANGUAGE} ARCH=${DESTARCH} FORCE=${MAKEDIST_FORCE} || { VARIANT=${DESTVARIANT} LANGUAGE=${DESTLANGUAGE} ARCH=${DESTARCH} FORCE=${MAKEDIST_FORCE} || {
echo "Error building openmamba ${DESTPRODUCTNAME} medium; skipping." echo "Error building openmamba ${DESTPRODUCTNAME} medium; skipping."
return 255 return 255
} }
@ -114,7 +116,7 @@ LANGUAGE=${DESTLANGUAGE} ARCH=${DESTARCH} FORCE=${MAKEDIST_FORCE} || {
md5sum $DESTNAME > $DESTMD5 md5sum $DESTNAME > $DESTMD5
rm -f $DESTDIR/latest-is-*.txt rm -f $DESTDIR/latest-is-*.txt
> $DESTLATEST > $DESTLATEST
if [ "${DESTIMG/.iso}" != "$DESTIMG" ]; then if [ "${DO_RECORDVM}" -a "${DESTIMG/.iso}" != "$DESTIMG" ]; then
# ISO image, create video preview # ISO image, create video preview
[ ! -e $DESTDIR/preview/$DESTNAME.ogv -o $SOURCEIMG -nt $DESTDIR/preview/$DESTNAME.ogv ] && makedist-recordvm $DESTIMG [ ! -e $DESTDIR/preview/$DESTNAME.ogv -o $SOURCEIMG -nt $DESTDIR/preview/$DESTNAME.ogv ] && makedist-recordvm $DESTIMG
fi fi
@ -126,7 +128,7 @@ LANGUAGE=${DESTLANGUAGE} ARCH=${DESTARCH} FORCE=${MAKEDIST_FORCE} || {
md5sum $DESTNAME > $DESTMD5 md5sum $DESTNAME > $DESTMD5
rm -f $DESTDIR/latest-is-*.txt rm -f $DESTDIR/latest-is-*.txt
> $DESTLATEST > $DESTLATEST
if [ "${DESTIMG/.iso}" != "$DESTIMG" ]; then if [ "${DO_RECORDVM}" -a "${DESTIMG/.iso}" != "$DESTIMG" ]; then
# ISO image, create video preview # ISO image, create video preview
[ ! -e $DESTDIR/preview/$DESTNAME.ogv -o $SOURCEIMG -nt $DESTDIR/preview/$DESTNAME.ogv ] && makedist-recordvm $DESTIMG [ ! -e $DESTDIR/preview/$DESTNAME.ogv -o $SOURCEIMG -nt $DESTDIR/preview/$DESTNAME.ogv ] && makedist-recordvm $DESTIMG
fi fi
@ -138,7 +140,7 @@ LANGUAGE=${DESTLANGUAGE} ARCH=${DESTARCH} FORCE=${MAKEDIST_FORCE} || {
if [ "$RELEASE" ]; then if [ "$RELEASE" ]; then
cd $DESTDIR cd $DESTDIR
maketorrent-console \ maketorrent-console \
--comment "openmamba $RELEASE ${DESTPRODUCTNAME} ${DESTLANGUAGE}-${DESTARCH} from http://www.openmamba.org" \ --comment "openmamba $RELEASE ${DESTPRODUCTNAME} ${DESTLANGUAGE}-${DESTARCH} from http://openmamba.org" \
--tracker_name "mambaSoft BitTorrent tracker" \ --tracker_name "mambaSoft BitTorrent tracker" \
--language ${DESTLANGUAGE} \ --language ${DESTLANGUAGE} \
$TORRENTURL \ $TORRENTURL \
@ -146,7 +148,7 @@ LANGUAGE=${DESTLANGUAGE} ARCH=${DESTARCH} FORCE=${MAKEDIST_FORCE} || {
else else
cd $DESTDIR cd $DESTDIR
maketorrent-console \ maketorrent-console \
--comment "openmamba snapshot $SNAPDATE ${DESTPRODUCTNAME} ${DESTLANGUAGE}-${DESTARCH} from http://www.openmamba.org" \ --comment "openmamba snapshot $SNAPDATE ${DESTPRODUCTNAME} ${DESTLANGUAGE}-${DESTARCH} from http://openmamba.org" \
--tracker_name "mambaSoft BitTorrent tracker" \ --tracker_name "mambaSoft BitTorrent tracker" \
--language ${DESTLANGUAGE} \ --language ${DESTLANGUAGE} \
$TORRENTURL \ $TORRENTURL \
@ -171,7 +173,8 @@ LANGUAGE=${DESTLANGUAGE} ARCH=${DESTARCH} FORCE=${MAKEDIST_FORCE} || {
function do_makedist_and_html() { function do_makedist_and_html() {
local DIST_LINE DIST_CREATED DIST_DWD HTMLLANG MEDIA_ARCH PRODNAME \ local DIST_LINE DIST_CREATED DIST_DWD HTMLLANG MEDIA_ARCH PRODNAME \
MEDIUMFILENAME MEDIUMNAME MEDIUMPLATFORM MEDIUMSUBPLATFORM m l MEDIUMFILENAME MEDIUMNAME MEDIUMPLATFORM MEDIUMSUBPLATFORM MEDIUMVARIANT \
m l MEDIUMMILESTONE
local tempfile2=`tempfile 2>/dev/null` || tempfile2=/tmp/makedist_tmpfile2 local tempfile2=`tempfile 2>/dev/null` || tempfile2=/tmp/makedist_tmpfile2
@ -179,13 +182,22 @@ function do_makedist_and_html() {
MEDIUMTAG=$2 MEDIUMTAG=$2
MEDIUMPLATFORM=$3 MEDIUMPLATFORM=$3
MEDIUMSUBPLATFORM=$4 MEDIUMSUBPLATFORM=$4
HTMLLANG=$5 MEDIUMVARIANT=$5
PRODNAME=$6 HTMLLANG=$6
m=$7 PRODNAME=$7
[ "${m}" ] || { m=$8
MEDIUMMILESTONE=${MEDIA_MILESTONE[$m]}
[ "${MEDIUMMILESTONE}" ] || {
echo "Error: do_makedist_and_html: invalid number of parameters; aborting." echo "Error: do_makedist_and_html: invalid number of parameters; aborting."
exit 1 exit 1
} }
if [ "${MEDIUMMILESTONE}" != "devel" ]; then
SOURCEIMGFILEPREFIX="openmamba-${MEDIUMMILESTONE}"
DESTIMGFILEPREFIX="openmamba-${MEDIUMMILESTONE}"
else
SOURCEIMGFILEPREFIX="openmamba"
DESTIMGFILEPREFIX="openmamba"
fi
cat > $tempfile2 << _EOF cat > $tempfile2 << _EOF
<div class="downloadbox"><table width="760"><tr><td width=400> <div class="downloadbox"><table width="760"><tr><td width=400>
@ -230,12 +242,14 @@ _EOF
for l in ${MEDIA_LANGUAGES[$m]}; do for l in ${MEDIA_LANGUAGES[$m]}; do
if [ "$RELEASE" ]; then if [ "$RELEASE" ]; then
latest=`ls $DESTBASEDIR/$PRODNAME/$l/latest-is-$DISTVERSION-*.txt 2>/dev/null| sed "s/.*latest-is-$DISTVERSION-\(.*\)\.txt/\1/"` latest=`ls $DESTBASEDIR/$PRODNAME/$l/latest-is-${MEDIA_MILESTONE[i]}-*.txt 2>/dev/null| sed "s/.*latest-is-${MEDIA_MILESTONE[i]}-\(.*\)\.txt/\1/"`
DESTLATESTFILENAME=latest-$latest.inc.js DESTLATESTFILENAME=latest-$latest.inc.js
else else
DESTLATESTFILENAME=latest.inc.js DESTLATESTFILENAME=latest.inc.js
fi fi
> $DESTBASEDIR/$PRODNAME/$l/$DESTLATESTFILENAME DESTLATESTFILENAME2=latest.inc.php
> $DESTBASEDIR/$PRODNAME/$l/$DESTLATESTFILENAME.new
> $DESTBASEDIR/$PRODNAME/$l/$DESTLATESTFILENAME2.new
case $l in case $l in
it) mediumlang="italiano" ;; it) mediumlang="italiano" ;;
es) mediumlang="espa&ntilde;ol" ;; es) mediumlang="espa&ntilde;ol" ;;
@ -251,8 +265,8 @@ _EOF
if [ "$DIST_CREATED" != "255" ]; then if [ "$DIST_CREATED" != "255" ]; then
# in case of previous build error (255) skipping building target for other langs and archs # in case of previous build error (255) skipping building target for other langs and archs
[ "$CRON_DEBUG" = "1" ] && \ [ "$CRON_DEBUG" = "1" ] && \
echo "do_makedist_and_html: calling do_makedist \"$SOURCEIMGFILEPREFIX-$PRODNAME-$l.${a}.${MEDIUMSUFFIX}\" \"$DESTNAME\" \"${l}\" \"${MEDIUMPLATFORM}\" \"${MEDIUMSUBPLATFORM}\" \"$PRODNAME\" \"${a}\"" echo "do_makedist_and_html: calling do_makedist \"$SOURCEIMGFILEPREFIX-$PRODNAME-$l.${a}.${MEDIUMSUFFIX}\" \"$DESTNAME\" \"${l}\" \"${MEDIUMPLATFORM}\" \"${MEDIUMSUBPLATFORM}\" \"$PRODNAME\" \"${a}\"" ${MEDIUMMILESTONE}
do_makedist "$SOURCEIMGFILEPREFIX-$PRODNAME-$l.${a}.${MEDIUMSUFFIX}" "$DESTNAME" "${l}" "${MEDIUMPLATFORM}" "${MEDIUMSUBPLATFORM}" "$PRODNAME" "${a}" do_makedist "$SOURCEIMGFILEPREFIX-$PRODNAME-$l.${a}.${MEDIUMSUFFIX}" "$DESTNAME" "${l}" "${MEDIUMPLATFORM}" "${MEDIUMSUBPLATFORM}" "${MEDIUMVARIANT}" "$PRODNAME" "${a}" ${MEDIUMMILESTONE}
DIST_CREATED=$? DIST_CREATED=$?
[ "$DIST_CREATED" = "255" ] && return 255 [ "$DIST_CREATED" = "255" ] && return 255
@ -263,26 +277,34 @@ _EOF
DESTSIZE=`du $DESTIMG -h | gawk '{ print $1 }'` DESTSIZE=`du $DESTIMG -h | gawk '{ print $1 }'`
DESTMD5=`cat $DESTMD5 | gawk '{ print $1 }'` DESTMD5=`cat $DESTMD5 | gawk '{ print $1 }'`
DESTBUILDDATE=`stat -c %y $DESTIMG` DESTBUILDDATE=`stat -c %y $DESTIMG`
cat >> $DESTDIR/$DESTLATESTFILENAME << _EOF cat >> $DESTDIR/$DESTLATESTFILENAME.new << _EOF
nameArray['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTNAME'; nameArray['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTNAME';
pathArray['$PRODNAME-$RELEASETAG-${l}-${a}']='/download.html?file=$DESTBASEURL/$PRODNAME/${l}/'; pathArray['$PRODNAME-$RELEASETAG-${l}-${a}']='/download.html?file=$DESTBASEURL/$PRODNAME/${l}/';
sizeArray['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTSIZE'; sizeArray['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTSIZE';
md5Array['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTMD5'; md5Array['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTMD5';
builddateArray['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTBUILDDATE'; builddateArray['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTBUILDDATE';
_EOF
cat >> $DESTDIR/$DESTLATESTFILENAME2.new << _EOF
\$releaseTag['$PRODNAME-$MEDIUMMILESTONE-${l}-${a}']='$RELEASETAG';
\$versionMedium['$PRODNAME-$RELEASETAG-${l}-${a}']='$MEDIUMMILESTONE';
\$nameMedium['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTNAME';
\$pathMedium['$PRODNAME-$RELEASETAG-${l}-${a}']='/download.html?file=$DESTBASEURL/$PRODNAME/${l}/';
\$sizeMedium['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTSIZE';
\$md5Medium['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTMD5';
\$builddateMedium['$PRODNAME-$RELEASETAG-${l}-${a}']='$DESTBUILDDATE';
_EOF _EOF
# create short links used e.g. by unetbootin # create short links used e.g. by unetbootin
if [ -e $DESTDIR/$DESTNAME ]; then if [ -e $DESTDIR/$DESTNAME ]; then
if [ "$DISTVERSION" = "devel" ]; then # DISTVERSION is snapshot or e.g. milestone3
ln -sf $DESTNAME $DESTDIR/$DESTIMGFILEPREFIX-$PRODNAME-$l-snapshot.${a}.${MEDIUMSUFFIX} ln -sf $DESTNAME $DESTDIR/$DESTIMGFILEPREFIX-$PRODNAME-$l-$DISTVERSION.${a}.${MEDIUMSUFFIX}
else
ln -sf $DESTNAME $DESTDIR/$DESTIMGFILEPREFIX-$PRODNAME-$l-$DISTVERSION.${a}.${MEDIUMSUFFIX}
fi
rm -f $DESTDIR/$DESTIMGFILEPREFIX-$PRODNAME-$l.${a}.${MEDIUMSUFFIX} rm -f $DESTDIR/$DESTIMGFILEPREFIX-$PRODNAME-$l.${a}.${MEDIUMSUFFIX}
fi fi
fi fi
DIST_DWD="$DIST_DWD<option value=\"/download.html?file=$DESTBASEURL/$PRODNAME/$l/$DESTNAME\">${mediumlang} $fortext $archtext</option>" DIST_DWD="$DIST_DWD<option value=\"/download.html?file=$DESTBASEURL/$PRODNAME/$l/$DESTNAME\">${mediumlang} $fortext $archtext</option>"
# DIST_DWD="$DIST_DWD <a href=\"/download.html?file=$DESTBASEURL/$PRODNAME/$l/$DESTNAME\">${l}-${a}</a>" # DIST_DWD="$DIST_DWD <a href=\"/download.html?file=$DESTBASEURL/$PRODNAME/$l/$DESTNAME\">${l}-${a}</a>"
done done
mv $DESTBASEDIR/$PRODNAME/$l/$DESTLATESTFILENAME.new $DESTBASEDIR/$PRODNAME/$l/$DESTLATESTFILENAME
mv $DESTBASEDIR/$PRODNAME/$l/$DESTLATESTFILENAME2.new $DESTBASEDIR/$PRODNAME/$l/$DESTLATESTFILENAME2
cat $DESTBASEDIR/$PRODNAME/$l/$DESTLATESTFILENAME >> $tempfile2 cat $DESTBASEDIR/$PRODNAME/$l/$DESTLATESTFILENAME >> $tempfile2
done done
DIST_DWD="$DIST_DWD</select>" DIST_DWD="$DIST_DWD</select>"
@ -307,11 +329,16 @@ _EOF
chmod +r $DESTHTML chmod +r $DESTHTML
if [ "$DIST_CREATED" = "1" ]; then if [ "$DIST_CREATED" = "1" ]; then
# snapshots # snapshots
makedist-announcement --rebuild-announcement --send-email -y $DISTVERSION $PRODNAME if [ "$MEDIUMMILESTONE" != "devel" ]; then
#temporary
makedist-announcement --rebuild-announcement --send-test-email -y ${MEDIUMMILESTONE} $PRODNAME
else
makedist-announcement --rebuild-announcement --send-email -y ${MEDIUMMILESTONE} $PRODNAME
fi
elif [ "$RELEASEPLATFORM" = "$MEDIUMPLATFORM" -a \ elif [ "$RELEASEPLATFORM" = "$MEDIUMPLATFORM" -a \
"$RELEASESUBPLATFORM" = "$MEDIUMSUBPLATFORM" -a "$HTMLLANG" = "en" ]; then "$RELEASESUBPLATFORM" = "$MEDIUMSUBPLATFORM" -a "$HTMLLANG" = "en" ]; then
# stable # stable
makedist-announcement --rebuild-announcement --send-test-email -y $DISTVERSION $PRODNAME makedist-announcement --rebuild-announcement --send-test-email -y ${MEDIUMMILESTONE} $PRODNAME
fi fi
return $DIST_CREATED return $DIST_CREATED
} }
@ -326,14 +353,18 @@ for i in `seq 0 $ALLMEDIASLAST`; do
PLATFORM=${MEDIA_PLATFORM[i]} PLATFORM=${MEDIA_PLATFORM[i]}
SUBPLATFORM=${MEDIA_SUBPLATFORM[i]} SUBPLATFORM=${MEDIA_SUBPLATFORM[i]}
VARIANT=${MEDIA_VARIANT[i]}
DESTBASEDIR=/var/ftp/pub/openmamba/${MEDIA_MILESTONE[i]}/media
DESTBASEURL=/pub/openmamba/${MEDIA_MILESTONE[i]}/media
unset PRODUCT_NAME unset PRODUCT_NAME
unset PRODUCT_NAME_OVERRIDE unset PRODUCT_NAME_OVERRIDE
[ $SUBPLATFORM ] && . /var/makedist/targets/$MAKEDIST_TARGET/platforms/$SUBPLATFORM/settings.inc [ $SUBPLATFORM ] && . /var/makedist/targets/$MAKEDIST_TARGET/platforms/$SUBPLATFORM/settings.inc
. /var/makedist/targets/$MAKEDIST_TARGET/platforms/$PLATFORM/settings.inc . /var/makedist/targets/$MAKEDIST_TARGET/platforms/$PLATFORM/settings.inc
[ "$SUBPLATFORM" ] && \ [ "$SUBPLATFORM" ] && \
medium_name=`arch=_SPLIT_ PLATFORM=$SUBPLATFORM media_name` || medium_name=`arch=_SPLIT_ VARIANT=$VARIANT PLATFORM=$SUBPLATFORM media_name` ||
medium_name=`arch=_SPLIT_ media_name` medium_name=`arch=_SPLIT_ VARIANT=$VARIANT media_name`
medium_suffix=${medium_name/*_SPLIT_\./} medium_suffix=${medium_name/*_SPLIT_\./}
[ $PRODUCT_NAME ] || PRODUCT_NAME=${MEDIA_NAME[i]} [ $PRODUCT_NAME ] || PRODUCT_NAME=${MEDIA_NAME[i]}
[ "$PRODUCT_NAME_OVERRIDE" ] && PRODUCT_NAME=$PRODUCT_NAME_OVERRIDE [ "$PRODUCT_NAME_OVERRIDE" ] && PRODUCT_NAME=$PRODUCT_NAME_OVERRIDE
@ -344,7 +375,11 @@ for i in `seq 0 $ALLMEDIASLAST`; do
if [ "$RELEASE" ]; then if [ "$RELEASE" ]; then
echo "Releasing $PRODUCT_NAME media (${PLATFORM}/${SUBPLATFORM} $RELEASETAG)" echo "Releasing $PRODUCT_NAME media (${PLATFORM}/${SUBPLATFORM} $RELEASETAG)"
SIMULATE=1 SIMULATE=1
elif [ "$WEEKDAY" = "${MEDIA_BUILDDAY[i]}" -o \ elif [ "$WEEKDAY" = "${MEDIA_WEEKDAY[i]}" -o \
"$FORCEBUILD" = "$PRODUCT_NAME" ]; then
echo "Building $PRODUCT_NAME media"
unset SIMULATE
elif [ "$MONTHDAY" = "${MEDIA_MONTHDAY[i]}" -o \
"$FORCEBUILD" = "$PRODUCT_NAME" ]; then "$FORCEBUILD" = "$PRODUCT_NAME" ]; then
echo "Building $PRODUCT_NAME media" echo "Building $PRODUCT_NAME media"
unset SIMULATE unset SIMULATE
@ -353,12 +388,12 @@ for i in `seq 0 $ALLMEDIASLAST`; do
fi fi
if [ "$RELEASE" ]; then if [ "$RELEASE" ]; then
latest=`ls $DESTBASEDIR/$PRODUCT_NAME/en/latest-is-$DISTVERSION-*.txt 2>/dev/null| sed "s/.*latest-is-$DISTVERSION-\(.*\)\.txt/\1/"` latest=`ls $DESTBASEDIR/$PRODUCT_NAME/en/latest-is-${MEDIA_MILESTONE[i]}-*.txt 2>/dev/null| sed "s/.*latest-is-${MEDIA_MILESTONE[i]}-\(.*\)\.txt/\1/"`
if [ "$RELEASEPLATFORM" = "$PLATFORM" -a \ if [ "$RELEASEPLATFORM" = "$PLATFORM" -a \
"$RELEASESUBPLATFORM" = "$SUBPLATFORM" ]; then "$RELEASESUBPLATFORM" = "$SUBPLATFORM" ]; then
RELEASETAG=$DISTVERSION-$RELEASE RELEASETAG=${MEDIA_MILESTONE[i]}-$RELEASE
else else
RELEASETAG=$DISTVERSION-$latest RELEASETAG=${MEDIA_MILESTONE[i]}-$latest
fi fi
SNAPDATE=$RELEASETAG SNAPDATE=$RELEASETAG
else else
@ -381,7 +416,7 @@ for i in `seq 0 $ALLMEDIASLAST`; do
[ "$latest" -o ! "$SIMULATE" -o "$RELEASE" ] && { [ "$latest" -o ! "$SIMULATE" -o "$RELEASE" ] && {
do_makedist_and_html \ do_makedist_and_html \
$medium_suffix $RELEASETAG \ $medium_suffix $RELEASETAG \
$PLATFORM "$SUBPLATFORM" ${l} $PRODUCT_NAME ${i} $PLATFORM "$SUBPLATFORM" "$VARIANT" ${l} $PRODUCT_NAME ${i}
[ $? -eq 255 ] && break [ $? -eq 255 ] && break
} }
done done

View File

@ -1,14 +1,14 @@
#!/bin/bash #!/bin/bash
# #
# Makedist automatic clean script # Makedist automatic clean script
# Copyright (c) 2007-2014 by Silvan Calarco <silvan.calarco@mambasoft.it> # Copyright (c) 2007-2015 by Silvan Calarco <silvan.calarco@mambasoft.it>
# #
. /etc/sysconfig/makedist . /etc/sysconfig/makedist
[ "$MAKEDIST_CRON_ENABLE" = "1" ] || exit 0 [ "$MAKEDIST_CRON_ENABLE" = "1" ] || exit 0
SOURCEDIR=/var/makedist SOURCEDIR=/var/makedist
MILESTONES="milestone2 devel" MILESTONES="milestone3 milestone2 devel"
DESTBASEURL=/pub/openmamba/devel/media DESTBASEURL=/pub/openmamba/devel/media
[ "$TODAYDATE" ] || TODAYDATE=`date +%Y%m%d` [ "$TODAYDATE" ] || TODAYDATE=`date +%Y%m%d`
GLOBDOWNLOADSFILE=$DESTBASEDIR/downloads.inc GLOBDOWNLOADSFILE=$DESTBASEDIR/downloads.inc
@ -34,7 +34,7 @@ for m in $MILESTONES; do
# r=`basename $rl` # r=`basename $rl`
# [ -e $d/old/$r ] && mv $d/old/$r* $d/ # [ -e $d/old/$r ] && mv $d/old/$r* $d/
#done #done
for f in `find $d -maxdepth 1 -type f -a \( -name "*.$a.iso" -o -name "*.$a.cpio.gz" -o -name "*.$a.tar.gz" -o -name "*.$a.tar.xz" -o -name "*.$a.tar.bz2" \)`; do for f in `find $d -maxdepth 1 -type f -a \( -name "*.$a.iso" -o -name "*.$a.cpio.gz" -o -name "*.$a.tar.gz" -o -name "*.$a.tar.xz" -o -name "*.$a.tar.bz2" -o -name "*.$a.img.gz" \)`; do
echo `stat -c %Z $f` `basename $f` >> $tmpfile echo `stat -c %Z $f` `basename $f` >> $tmpfile
done done
filecount=0 filecount=0
@ -52,25 +52,27 @@ for m in $MILESTONES; do
filecount=`expr $filecount + 1` filecount=`expr $filecount + 1`
done done
# clean old directory # clean old directory
> $tmpfile if [ -d $d/old ]; then
for f in `find $d/old -maxdepth 1 -name "*.$a.iso" -o -name "*.$a.cpio.gz" -o -name "*.$a.tar.gz" -o -name "*.$a.tar.xz" -o -name "*.$a.tar.bz2"`; do > $tmpfile
echo `stat -c %Z $f` `basename $f` >> $tmpfile for f in `find $d/old -maxdepth 1 -name "*.$a.iso" -o -name "*.$a.cpio.gz" -o -name "*.$a.tar.gz" -o -name "*.$a.tar.xz" -o -name "*.$a.tar.bz2" -o -name "*.$a.img.gz"`; do
echo `stat -c %Z $f` `basename $f` >> $tmpfile
done
SNAPSHOT_DATE=
for f in `cat $tmpfile | sort -r | awk '{ print $2 }' `; do
SNAPSHOT_DATE_PREVIOUS=$SNAPSHOT_DATE
SNAPSHOT_DATE=`echo $f | sed "s|.*snapshot-\([0-9]*\)\..*|\1|"`
if [ "${SNAPSHOT_DATE:0:6}" = "${SNAPSHOT_DATE_PREVIOUS:0:6}" ]; then
[ "$VERBOSE" -o "$SIMULATE" ] && echo "DELE old/$f ($SNAPSHOT_DATE)"
[ "$SIMULATE" ] && continue
rm -f $d/old/$f
[ -e $d/old/$f.MD5.txt ] && rm -f $d/old/$f.MD5.txt
[ -e $d/old/$f.torrent ] && rm -f $d/old/$f.torrent
else
[ "$VERBOSE" -o "$SIMULATE" ] && echo "KEEP old/$f ($SNAPSHOT_DATE)"
fi
done
fi
done done
SNAPSHOT_DATE=
for f in `cat $tmpfile | sort -r | awk '{ print $2 }' `; do
SNAPSHOT_DATE_PREVIOUS=$SNAPSHOT_DATE
SNAPSHOT_DATE=`echo $f | sed "s|.*snapshot-\([0-9]*\)\..*|\1|"`
if [ "${SNAPSHOT_DATE:0:6}" = "${SNAPSHOT_DATE_PREVIOUS:0:6}" ]; then
[ "$VERBOSE" -o "$SIMULATE" ] && echo "DELE old/$f ($SNAPSHOT_DATE)"
[ "$SIMULATE" ] && continue
rm -f $d/old/$f
[ -e $d/old/$f.MD5.txt ] && rm -f $d/old/$f.MD5.txt
[ -e $d/old/$f.torrent ] && rm -f $d/old/$f.torrent
else
[ "$VERBOSE" -o "$SIMULATE" ] && echo "KEEP old/$f ($SNAPSHOT_DATE)"
fi
done
done
# echo # echo
# ls --sort=time $d/*.iso $d/*.cpio.gz # ls --sort=time $d/*.iso $d/*.cpio.gz
#find $DESTBASEDIR -name *.iso #find $DESTBASEDIR -name *.iso

View File

@ -13,8 +13,14 @@ if [ "$ARCH" = "i586" ]; then
REPOSITORY=( REPOSITORY=(
/var/ftp/pub/openmamba/devel /var/ftp/pub/openmamba/devel
/var/ftp/pub/openmamba/devel-games /var/ftp/pub/openmamba/devel-games
/var/ftp/pub/openmamba/devel-makedist
) )
#/var/ftp/pub/openmamba/devel-makedist
elif [ "$ARCH" = "x86_64" ]; then
REPOSITORY=(
/var/ftp/pub/openmamba/devel
/var/ftp/pub/openmamba/devel-games
)
#/var/ftp/pub/openmamba/devel-makedist
else else
REPOSITORY=( REPOSITORY=(
/var/ftp/pub/openmamba/devel /var/ftp/pub/openmamba/devel

View File

@ -6,15 +6,15 @@
HTML_LANGS="it en" HTML_LANGS="it en"
# enable cron for autobuilds # enable cron for autobuilds
MAKEDIST_CRON_ENABLE=0 MAKEDIST_CRON_ENABLE=1
# announcements configuration # announcements configuration
#ANNOUNCEMENTS_SIGNER="Signer Name" ANNOUNCEMENTS_SIGNER="Silvan Calarco"
#ANNOUNCEMENTS_EMAILS_TEST="test@example.com" ANNOUNCEMENTS_EMAILS_TEST="test@openmamba.org"
#ANNOUNCEMENTS_EMAILS_STABLE_EN="stable-users@example.com" ANNOUNCEMENTS_EMAILS_STABLE_EN="openmamba-users@openmamba.org openmamba-devel@openmamba.org distro@distrowatch.com"
#ANNOUNCEMENTS_EMAILS_STABLE_IT="utenti-stabile@example.com" ANNOUNCEMENTS_EMAILS_STABLE_IT="openmamba-users-it@openmamba.org openmamba-devel-it@openmamba.org"
#ANNOUNCEMENTS_EMAILS_DEVEL_EN="devel-users@example.com" ANNOUNCEMENTS_EMAILS_DEVEL_EN="openmamba-devel@openmamba.org"
#ANNOUNCEMENTS_EMAILS_DEVEL_IT="utenti-devel@example.com" ANNOUNCEMENTS_EMAILS_DEVEL_IT="openmamba-devel-it@openmamba.org"
# #
# media configuration # media configuration
@ -24,116 +24,182 @@ if [ "$RELEASE" ]; then
case "$DISTVERSION" in case "$DISTVERSION" in
milestone1) milestone1)
DESTBASEDIR=/var/ftp/pub/openmamba/$DISTVERSION/media MEDIA_MILESTONE[0]=milestone1
MEDIA_NAME[0]=livecd MEDIA_NAME[0]=livecd
MEDIA_TARGET[0]=openmamba MEDIA_TARGET[0]=openmamba
MEDIA_PLATFORM[0]=livecd MEDIA_PLATFORM[0]=livecd
MEDIA_SUBPLATFORM[0]=livecd-root MEDIA_SUBPLATFORM[0]=livecd-root
MEDIA_LANGUAGES[0]="it en" MEDIA_LANGUAGES[0]="it en"
MEDIA_ARCHS[0]="i586" MEDIA_ARCHS[0]="i586"
MEDIA_BUILDDAY[0]=8 MEDIA_WEEKDAY[0]=8
MEDIA_MILESTONE[1]=milestone1
MEDIA_NAME[1]=livestudio MEDIA_NAME[1]=livestudio
MEDIA_TARGET[1]=openmamba MEDIA_TARGET[1]=openmamba
MEDIA_PLATFORM[1]=livecd MEDIA_PLATFORM[1]=livecd
MEDIA_SUBPLATFORM[1]=livestudio-root MEDIA_SUBPLATFORM[1]=livestudio-root
MEDIA_LANGUAGES[1]="it en" MEDIA_LANGUAGES[1]="it en"
MEDIA_ARCHS[1]="i586" MEDIA_ARCHS[1]="i586"
MEDIA_BUILDDAY[1]=8 MEDIA_WEEKDAY[1]=8
MEDIA_MILESTONE[2]=milestone1
MEDIA_NAME[2]=installdvd MEDIA_NAME[2]=installdvd
MEDIA_TARGET[2]=openmamba MEDIA_TARGET[2]=openmamba
MEDIA_PLATFORM[2]=installdvd MEDIA_PLATFORM[2]=installdvd
MEDIA_SUBPLATFORM[2]=livecd-root MEDIA_SUBPLATFORM[2]=livecd-root
MEDIA_LANGUAGES[2]="it en" MEDIA_LANGUAGES[2]="it en"
MEDIA_ARCHS[2]="i586" MEDIA_ARCHS[2]="i586"
MEDIA_BUILDDAY[2]=8 MEDIA_WEEKDAY[2]=8
MEDIA_MILESTONE[3]=milestone1
MEDIA_NAME[3]=bootusb MEDIA_NAME[3]=bootusb
MEDIA_TARGET[3]=openmamba MEDIA_TARGET[3]=openmamba
MEDIA_PLATFORM[3]=bootusb MEDIA_PLATFORM[3]=bootusb
MEDIA_SUBPLATFORM[3]= MEDIA_SUBPLATFORM[3]=
MEDIA_LANGUAGES[3]="it en" MEDIA_LANGUAGES[3]="it en"
MEDIA_ARCHS[3]="i586" MEDIA_ARCHS[3]="i586"
MEDIA_BUILDDAY[3]=8 MEDIA_WEEKDAY[3]=8
;; ;;
milestone2) milestone2)
DESTBASEDIR=/var/ftp/pub/openmamba/$DISTVERSION/media MEDIA_MILESTONE[0]=milestone2
MEDIA_NAME[0]=livedvd MEDIA_NAME[0]=livedvd
MEDIA_TARGET[0]=openmamba MEDIA_TARGET[0]=openmamba
MEDIA_PLATFORM[0]=livedvd MEDIA_PLATFORM[0]=livedvd
MEDIA_SUBPLATFORM[0]=livedvd-root MEDIA_SUBPLATFORM[0]=livedvd-root
MEDIA_LANGUAGES[0]="it en es" MEDIA_LANGUAGES[0]="it en es"
MEDIA_ARCHS[0]="i586" MEDIA_ARCHS[0]="i586"
MEDIA_BUILDDAY[0]=8 MEDIA_WEEKDAY[0]=8
MEDIA_MILESTONE[1]=milestone2
MEDIA_NAME[1]=livecd MEDIA_NAME[1]=livecd
MEDIA_TARGET[1]=openmamba MEDIA_TARGET[1]=openmamba
MEDIA_PLATFORM[1]=livecd MEDIA_PLATFORM[1]=livecd
MEDIA_SUBPLATFORM[1]=livecd-root MEDIA_SUBPLATFORM[1]=livecd-root
MEDIA_LANGUAGES[1]="it en es" MEDIA_LANGUAGES[1]="it en es"
MEDIA_ARCHS[1]="i586" MEDIA_ARCHS[1]="i586"
MEDIA_BUILDDAY[1]=8 MEDIA_WEEKDAY[1]=8
# MEDIA_MILESTONE[2]=milestone2
# MEDIA_NAME[2]=livegames # MEDIA_NAME[2]=livegames
# MEDIA_TARGET[2]=openmamba # MEDIA_TARGET[2]=openmamba
# MEDIA_PLATFORM[2]=livecd # MEDIA_PLATFORM[2]=livecd
# MEDIA_SUBPLATFORM[2]=livegames-root # MEDIA_SUBPLATFORM[2]=livegames-root
# MEDIA_LANGUAGES[2]="it en es" # MEDIA_LANGUAGES[2]="it en es"
# MEDIA_ARCHS[2]="i586" # MEDIA_ARCHS[2]="i586"
# MEDIA_BUILDDAY[2]=8 # MEDIA_WEEKDAY[2]=8
MEDIA_MILESTONE[2]=milestone2
MEDIA_NAME[2]=livecd-gnome MEDIA_NAME[2]=livecd-gnome
MEDIA_TARGET[2]=openmamba MEDIA_TARGET[2]=openmamba
MEDIA_PLATFORM[2]=livecd MEDIA_PLATFORM[2]=livecd
MEDIA_SUBPLATFORM[2]=livecd-gnome-root MEDIA_SUBPLATFORM[2]=livecd-gnome-root
MEDIA_LANGUAGES[2]="it en es" MEDIA_LANGUAGES[2]="it en es"
MEDIA_ARCHS[2]="i586" MEDIA_ARCHS[2]="i586"
MEDIA_BUILDDAY[2]=8 MEDIA_WEEKDAY[2]=8
MEDIA_MILESTONE[3]=milestone2
MEDIA_NAME[3]=livecd-light MEDIA_NAME[3]=livecd-light
MEDIA_TARGET[3]=openmamba MEDIA_TARGET[3]=openmamba
MEDIA_PLATFORM[3]=livecd MEDIA_PLATFORM[3]=livecd
MEDIA_SUBPLATFORM[3]=livecd-light-root MEDIA_SUBPLATFORM[3]=livecd-light-root
MEDIA_LANGUAGES[3]="it en es" MEDIA_LANGUAGES[3]="it en es"
MEDIA_ARCHS[3]="i586" MEDIA_ARCHS[3]="i586"
MEDIA_BUILDDAY[3]=8 MEDIA_WEEKDAY[3]=8
MEDIA_MILESTONE[4]=milestone2
MEDIA_NAME[4]=bootusb MEDIA_NAME[4]=bootusb
MEDIA_TARGET[4]=openmamba MEDIA_TARGET[4]=openmamba
MEDIA_PLATFORM[4]=bootusb MEDIA_PLATFORM[4]=bootusb
MEDIA_SUBPLATFORM[4]= MEDIA_SUBPLATFORM[4]=
MEDIA_LANGUAGES[4]="it en es" MEDIA_LANGUAGES[4]="it en es"
MEDIA_ARCHS[4]="i586" MEDIA_ARCHS[4]="i586"
MEDIA_BUILDDAY[4]=8 MEDIA_WEEKDAY[4]=8
# MEDIA_MILESTONE[5]=milestone2
# MEDIA_NAME[5]=sdk-root # MEDIA_NAME[5]=sdk-root
# MEDIA_TARGET[5]=openmamba # MEDIA_TARGET[5]=openmamba
# MEDIA_PLATFORM[5]=sdk-root # MEDIA_PLATFORM[5]=sdk-root
# MEDIA_SUBPLATFORM[5]= # MEDIA_SUBPLATFORM[5]=
# MEDIA_LANGUAGES[5]="it en es" # MEDIA_LANGUAGES[5]="it en es"
# MEDIA_ARCHS[5]="arm i586" # MEDIA_ARCHS[5]="arm i586"
# MEDIA_BUILDDAY[5]=8 # MEDIA_WEEKDAY[5]=8
MEDIA_MILESTONE[5]=milestone2
MEDIA_NAME[5]=rootfs-light MEDIA_NAME[5]=rootfs-light
MEDIA_TARGET[5]=openmamba MEDIA_TARGET[5]=openmamba
MEDIA_PLATFORM[5]=rootfs-light MEDIA_PLATFORM[5]=rootfs-light
MEDIA_SUBPLATFORM[5]= MEDIA_SUBPLATFORM[5]=
MEDIA_LANGUAGES[5]="it en es" MEDIA_LANGUAGES[5]="it en es"
MEDIA_ARCHS[5]="arm i586" MEDIA_ARCHS[5]="arm i586"
MEDIA_BUILDDAY[5]=8 MEDIA_WEEKDAY[5]=8
MEDIA_MILESTONE[6]=milestone2
MEDIA_NAME[6]=rootfs MEDIA_NAME[6]=rootfs
MEDIA_TARGET[6]=openmamba MEDIA_TARGET[6]=openmamba
MEDIA_PLATFORM[6]=rootfs MEDIA_PLATFORM[6]=rootfs
MEDIA_SUBPLATFORM[6]= MEDIA_SUBPLATFORM[6]=
MEDIA_LANGUAGES[6]="it en es" MEDIA_LANGUAGES[6]="it en es"
MEDIA_ARCHS[6]="arm i586" MEDIA_ARCHS[6]="arm i586"
MEDIA_BUILDDAY[6]=8 MEDIA_WEEKDAY[6]=8
;;
milestone3)
MEDIA_MILESTONE[0]=milestone3
MEDIA_NAME[0]=livedvd
MEDIA_TARGET[0]=openmamba
MEDIA_PLATFORM[0]=livedvd
MEDIA_SUBPLATFORM[0]=livedvd-root
MEDIA_LANGUAGES[0]="en"
MEDIA_ARCHS[0]="x86_64 i586"
MEDIA_WEEKDAY[0]=6
MEDIA_MILESTONE[1]=milestone3
MEDIA_NAME[1]=livecd
MEDIA_TARGET[1]=openmamba
MEDIA_PLATFORM[1]=livecd
MEDIA_SUBPLATFORM[1]=livecd-root
MEDIA_LANGUAGES[1]="it en es"
MEDIA_ARCHS[1]="i586 x86_64"
MEDIA_WEEKDAY[1]=8
MEDIA_MILESTONE[2]=milestone3
MEDIA_NAME[2]=livecd-gnome
MEDIA_TARGET[2]=openmamba
MEDIA_PLATFORM[2]=livecd
MEDIA_SUBPLATFORM[2]=livecd-gnome-root
MEDIA_LANGUAGES[2]="it en es"
MEDIA_ARCHS[2]="i586 x86_64"
MEDIA_WEEKDAY[2]=8
MEDIA_MILESTONE[3]=milestone3
MEDIA_NAME[3]=livecd-light
MEDIA_TARGET[3]=openmamba
MEDIA_PLATFORM[3]=livecd
MEDIA_SUBPLATFORM[3]=livecd-light-root
MEDIA_LANGUAGES[3]="it en es"
MEDIA_ARCHS[3]="i586 x86_64"
MEDIA_WEEKDAY[3]=8
MEDIA_MILESTONE[4]=milestone3
MEDIA_NAME[4]=rootfs-light
MEDIA_TARGET[4]=openmamba
MEDIA_PLATFORM[4]=rootfs-light
MEDIA_SUBPLATFORM[4]=
MEDIA_LANGUAGES[4]="it en es"
MEDIA_ARCHS[4]="arm i586 x86_64"
MEDIA_WEEKDAY[4]=8
MEDIA_MILESTONE[5]=milestone3
MEDIA_NAME[5]=rootfs
MEDIA_TARGET[5]=openmamba
MEDIA_PLATFORM[5]=rootfs
MEDIA_SUBPLATFORM[5]=
MEDIA_LANGUAGES[5]="it en es"
MEDIA_ARCHS[5]="arm i586 x86_64"
MEDIA_WEEKDAY[5]=8
;; ;;
*) *)
@ -143,103 +209,136 @@ if [ "$RELEASE" ]; then
esac esac
else else
DISTVERSION=devel DISTVERSION=snapshot
DESTBASEDIR=/var/ftp/pub/openmamba/$DISTVERSION/media
MEDIA_MILESTONE[0]=devel
MEDIA_NAME[0]=livecd MEDIA_NAME[0]=livecd
MEDIA_TARGET[0]=openmamba MEDIA_TARGET[0]=openmamba
MEDIA_PLATFORM[0]=livecd MEDIA_PLATFORM[0]=livecd
MEDIA_SUBPLATFORM[0]=livecd-root MEDIA_SUBPLATFORM[0]=livecd-root
MEDIA_VARIANT[0]=
MEDIA_LANGUAGES[0]="it en es" MEDIA_LANGUAGES[0]="it en es"
MEDIA_ARCHS[0]="i586 x86_64" MEDIA_ARCHS[0]="i586 x86_64"
MEDIA_BUILDDAY[0]=5 MEDIA_WEEKDAY[0]=1
MEDIA_MILESTONE[1]=devel
MEDIA_NAME[1]=livedvd MEDIA_NAME[1]=livedvd
MEDIA_TARGET[1]=openmamba MEDIA_TARGET[1]=openmamba
MEDIA_PLATFORM[1]=livedvd MEDIA_PLATFORM[1]=livedvd
MEDIA_SUBPLATFORM[1]=livedvd-root MEDIA_SUBPLATFORM[1]=livedvd-root
MEDIA_VARIANT[1]=
MEDIA_LANGUAGES[1]="en" MEDIA_LANGUAGES[1]="en"
MEDIA_ARCHS[1]="i586 x86_64" MEDIA_ARCHS[1]="i586 x86_64"
MEDIA_BUILDDAY[1]=6 MEDIA_WEEKDAY[1]=2
MEDIA_MILESTONE[2]=devel
MEDIA_NAME[2]=livecd-light MEDIA_NAME[2]=livecd-light
MEDIA_TARGET[2]=openmamba MEDIA_TARGET[2]=openmamba
MEDIA_PLATFORM[2]=livecd MEDIA_PLATFORM[2]=livecd
MEDIA_SUBPLATFORM[2]=livecd-light-root MEDIA_SUBPLATFORM[2]=livecd-light-root
MEDIA_VARIANT[2]=
MEDIA_LANGUAGES[2]="it en es" MEDIA_LANGUAGES[2]="it en es"
MEDIA_ARCHS[2]="i586 x86_64" MEDIA_ARCHS[2]="i586 x86_64"
MEDIA_BUILDDAY[2]=2 MEDIA_WEEKDAY[2]=3
MEDIA_MILESTONE[3]=devel
MEDIA_NAME[3]=livecd-gnome MEDIA_NAME[3]=livecd-gnome
MEDIA_TARGET[3]=openmamba MEDIA_TARGET[3]=openmamba
MEDIA_PLATFORM[3]=livecd MEDIA_PLATFORM[3]=livecd
MEDIA_SUBPLATFORM[3]=livecd-gnome-root MEDIA_SUBPLATFORM[3]=livecd-gnome-root
MEDIA_VARIANT[3]=
MEDIA_LANGUAGES[3]="it en es" MEDIA_LANGUAGES[3]="it en es"
MEDIA_ARCHS[3]="i586" MEDIA_ARCHS[3]="i586 x86_64"
MEDIA_BUILDDAY[3]=3 MEDIA_WEEKDAY[3]=4
MEDIA_MILESTONE[4]=devel
MEDIA_NAME[4]=testcd MEDIA_NAME[4]=testcd
MEDIA_TARGET[4]=openmamba MEDIA_TARGET[4]=openmamba
MEDIA_PLATFORM[4]=testcd MEDIA_PLATFORM[4]=testcd
MEDIA_SUBPLATFORM[4]=testcd-root MEDIA_SUBPLATFORM[4]=testcd-root
MEDIA_VARIANT[4]=
MEDIA_LANGUAGES[4]="it en es" MEDIA_LANGUAGES[4]="it en es"
MEDIA_ARCHS[4]="i586" MEDIA_ARCHS[4]="x86_64"
MEDIA_BUILDDAY[4]=1 MEDIA_WEEKDAY[4]=8
MEDIA_MILESTONE[5]=devel
MEDIA_NAME[5]=rootfs MEDIA_NAME[5]=rootfs
MEDIA_TARGET[5]=openmamba MEDIA_TARGET[5]=openmamba
MEDIA_PLATFORM[5]=rootfs MEDIA_PLATFORM[5]=rootfs
MEDIA_SUBPLATFORM[5]= MEDIA_SUBPLATFORM[5]=
MEDIA_VARIANT[5]=
MEDIA_LANGUAGES[5]="it en es" MEDIA_LANGUAGES[5]="it en es"
MEDIA_ARCHS[5]="arm i586" MEDIA_ARCHS[5]="arm i586 x86_64"
MEDIA_BUILDDAY[5]=4 MEDIA_MONTHDAY[5]=15
MEDIA_MILESTONE[6]=devel
MEDIA_NAME[6]=rootfs-light MEDIA_NAME[6]=rootfs-light
MEDIA_TARGET[6]=openmamba MEDIA_TARGET[6]=openmamba
MEDIA_PLATFORM[6]=rootfs-light MEDIA_PLATFORM[6]=rootfs-light
MEDIA_SUBPLATFORM[6]= MEDIA_SUBPLATFORM[6]=
MEDIA_VARIANT[6]=
MEDIA_LANGUAGES[6]="it en es" MEDIA_LANGUAGES[6]="it en es"
MEDIA_ARCHS[6]="arm i586 x86_64" MEDIA_ARCHS[6]="arm i586 x86_64"
MEDIA_BUILDDAY[6]=7 MEDIA_MONTHDAY[6]=20
# MEDIA_NAME[7]=bootcd MEDIA_MILESTONE[7]=devel
# MEDIA_TARGET[7]=openmamba MEDIA_NAME[7]=diskimg-bananapi
# MEDIA_PLATFORM[7]=bootcd MEDIA_TARGET[7]=openmamba
# MEDIA_SUBPLATFORM[7]= MEDIA_PLATFORM[7]=diskimg
# MEDIA_LANGUAGES[7]="it en es" MEDIA_SUBPLATFORM[7]=
# MEDIA_ARCHS[7]="i586 x86_64" MEDIA_VARIANT[7]=bananapi
# MEDIA_BUILDDAY[7]=3 MEDIA_LANGUAGES[7]="it en es"
MEDIA_ARCHS[7]="arm"
MEDIA_MONTHDAY[7]=21
# MEDIA_NAME[3]=livegames MEDIA_MILESTONE[8]=devel
# MEDIA_TARGET[3]=openmamba MEDIA_NAME[8]=diskimg-raspberrypi
# MEDIA_PLATFORM[3]=livecd MEDIA_TARGET[8]=openmamba
# MEDIA_SUBPLATFORM[3]=livegames-root MEDIA_PLATFORM[8]=diskimg
# MEDIA_LANGUAGES[3]="it en es" MEDIA_SUBPLATFORM[8]=
# MEDIA_ARCHS[3]="i586" MEDIA_VARIANT[8]=raspberrypi
# MEDIA_BUILDDAY[3]=8 MEDIA_LANGUAGES[8]="it en es"
MEDIA_ARCHS[8]="arm"
MEDIA_MONTHDAY[8]=21
# MEDIA_NAME[5]=bootusb MEDIA_MILESTONE[9]=devel
# MEDIA_TARGET[5]=openmamba MEDIA_NAME[9]=diskimg-livecd
# MEDIA_PLATFORM[5]=bootusb MEDIA_TARGET[9]=openmamba
# MEDIA_SUBPLATFORM[5]= MEDIA_PLATFORM[9]=diskimg
# MEDIA_LANGUAGES[5]="it en es" MEDIA_SUBPLATFORM[9]=
# MEDIA_ARCHS[5]="i586 x86_64" MEDIA_VARIANT[9]=livecd
# MEDIA_BUILDDAY[5]=7 MEDIA_LANGUAGES[9]="it en es"
MEDIA_ARCHS[9]="x86_64 i586"
MEDIA_WEEKDAY[9]=2
# MEDIA_NAME[7]=bootusb-test MEDIA_MILESTONE[10]=devel
# MEDIA_TARGET[7]=openmamba MEDIA_NAME[10]=diskimg-cubox
# MEDIA_PLATFORM[7]=bootusb-test MEDIA_TARGET[10]=openmamba
# MEDIA_SUBPLATFORM[7]= MEDIA_PLATFORM[10]=diskimg
# MEDIA_LANGUAGES[7]="it en es" MEDIA_SUBPLATFORM[10]=
# MEDIA_ARCHS[7]="i586" MEDIA_VARIANT[10]=cubox
# MEDIA_BUILDDAY[7]=7 MEDIA_LANGUAGES[10]="it en es"
MEDIA_ARCHS[10]="arm"
MEDIA_MONTHDAY[10]=21
# MEDIA_NAME[8]=sdk-root MEDIA_MILESTONE[11]=milestone3
# MEDIA_TARGET[8]=openmamba MEDIA_NAME[11]=livecd
# MEDIA_PLATFORM[8]=sdk-root MEDIA_TARGET[11]=openmamba
# MEDIA_SUBPLATFORM[8]= MEDIA_PLATFORM[11]=livecd
# MEDIA_LANGUAGES[8]="it en es" MEDIA_SUBPLATFORM[11]=livecd-root
# MEDIA_ARCHS[8]="arm i586" MEDIA_VARIANT[11]=
# MEDIA_BUILDDAY[8]=8 MEDIA_LANGUAGES[11]="it en es"
MEDIA_ARCHS[11]="i586 x86_64"
MEDIA_MONTHDAY[11]=8
MEDIA_MILESTONE[12]=devel
MEDIA_NAME[12]=rootfs-base
MEDIA_TARGET[12]=openmamba
MEDIA_PLATFORM[12]=rootfs-base
MEDIA_SUBPLATFORM[12]=
MEDIA_VARIANT[12]=
MEDIA_LANGUAGES[12]="en"
MEDIA_ARCHS[12]="arm i586 x86_64"
MEDIA_MONTHDAY[12]=14
fi fi

View File

@ -1 +1 @@
makedist_version=2.5 makedist_version=2.5.1

View File

@ -148,6 +148,7 @@ cat > $LOCALSTATEDIR/.defs.inc << _EOF
# but look in defs.inc.sh. # but look in defs.inc.sh.
# #
DISTRONAME=$DISTRONAME DISTRONAME=$DISTRONAME
SUBPLATFORM=$PASSED_SUBPLATFORM
RELEASE=$RELEASE RELEASE=$RELEASE
VARIANT=$VARIANT VARIANT=$VARIANT
LOCALSTATEDIR=$LOCALSTATEDIR LOCALSTATEDIR=$LOCALSTATEDIR

View File

@ -94,8 +94,11 @@ function initialize_root_dir() {
mkdir $MOUNTDIR/proc mkdir $MOUNTDIR/proc
mount -o bind /proc $MOUNTDIR/proc mount -o bind /proc $MOUNTDIR/proc
trap "[ -e $MOUNTDIR/proc/version ] && umount $MOUNTDIR/proc; [ \"$MOUNTDIR_TMPFS\" ] && umount $MOUNTDIR_TMPFS" 0 HUP INT QUIT ABRT KILL TERM
#[ $MEDIA = "raw" ] && create_raw_filesystem $LOCALSTATEDIR/$MEDIA_NAME $MEDIA_SIZE 1024k $ROOTFS
[ $MEDIA = "raw" ] && create_raw_disk_image $MEDIA_SIZE 1024k
trap "[ $LOOPDEV ] && losetup -d $LOOPDEV; [ -e $MOUNTDIR/proc/version ] && umount $MOUNTDIR/proc; [ \"$MOUNTDIR_TMPFS\" ] && umount $MOUNTDIR_TMPFS" 0 HUP INT QUIT ABRT KILL TERM
} }
function create_rpm_database() { function create_rpm_database() {
@ -230,7 +233,6 @@ function expand_srpm_names() {
function get_rpm_version() { function get_rpm_version() {
set_rpm_dirs set_rpm_dirs
find $RPM_DIRS -maxdepth 1 -regex ".*/${1}-[^-]*-[^-]*" | \ find $RPM_DIRS -maxdepth 1 -regex ".*/${1}-[^-]*-[^-]*" | \
grep -m 1 "" | \ grep -m 1 "" | \
sed "s|.*/${1}-\([^-]*\)-[^-]*|\1|" sed "s|.*/${1}-\([^-]*\)-[^-]*|\1|"
@ -972,13 +974,15 @@ function medium_name() {
[ "$1" ] && MEDIA=$1 [ "$1" ] && MEDIA=$1
[ "$2" ] && MEDIA_LABEL=$2 [ "$2" ] && MEDIA_LABEL=$2
MEDIUM_NAME=
if [ "$DISTRONAME" = "${MAKEDIST_TARGET:0:${#DISTRONAME}}" ]; then if [ "$DISTRONAME" = "${MAKEDIST_TARGET:0:${#DISTRONAME}}" ]; then
MEDIUM_NAME=$MAKEDIST_TARGET-$PLATFORM MEDIUM_NAME=$MAKEDIST_TARGET-$PLATFORM
elif [ "$VARIANT" != "" ]; then
MEDIUM_NAME=$DISTRONAME-$MAKEDIST_TARGET-$VARIANT
else else
MEDIUM_NAME=$DISTRONAME-$MAKEDIST_TARGET-$PLATFORM MEDIUM_NAME=$DISTRONAME-$MAKEDIST_TARGET-$PLATFORM
fi fi
if [ "$VARIANT" != "" ]; then
MEDIUM_NAME=$MEDIUM_NAME-$VARIANT
fi
[ "$LANGUAGE" ] && MEDIUM_NAME=$MEDIUM_NAME-$LANGUAGE [ "$LANGUAGE" ] && MEDIUM_NAME=$MEDIUM_NAME-$LANGUAGE
@ -1007,7 +1011,7 @@ function medium_name() {
MEDIUM_NAME=$MEDIUM_NAME.$arch.iso MEDIUM_NAME=$MEDIUM_NAME.$arch.iso
;; ;;
raw|RAW) raw|RAW)
MEDIUM_NAME=$MEDIUM_NAME.$arch.img MEDIUM_NAME=$MEDIUM_NAME.$arch.img.gz
;; ;;
qemu|QEMU) qemu|QEMU)
MEDIUM_NAME=$MEDIUM_NAME.$arch.qcow2 MEDIUM_NAME=$MEDIUM_NAME.$arch.qcow2
@ -1106,9 +1110,8 @@ grub-mkrescue --output=$LOCALSTATEDIR/$MEDIUM_FILENAME $MOUNTDIR"
} }
;; ;;
raw|RAW) raw|RAW)
echo "Producting raw image $MEDIUM_FILENAME..." echo "Producing raw image $MEDIUM_FILENAME..."
umount $MOUNTDIR gzip -c $LOOPDEVIMGFILE > $LOCALSTATEDIR/$MEDIUM_FILENAME
losetup -d /dev/loop2
;; ;;
qemu|QEMU) qemu|QEMU)
ROOTFS_SIZE=`du -ms $MOUNTDIR | awk '{ print $1; }'` ROOTFS_SIZE=`du -ms $MOUNTDIR | awk '{ print $1; }'`

View File

@ -1,17 +1,14 @@
#!/bin/bash #!/bin/bash
# #
# makedist-announcement.sh - a makedist component which produces announcements # makedist-announcement.sh - a makedist component which produces announcements
# Copyright (c) 2012-2013 by Silvan Calarco # Copyright (c) 2012-2014 by Silvan Calarco
# #
. /usr/share/makedist/VERSION . /usr/share/makedist/VERSION
distribution=openmamba distribution=openmamba
mediumlang=en mediumlang=en
siteaddress=www.openmamba.org siteaddress=openmamba.org
sitedomain=openmamba.org sitedomain=openmamba.org
forumaddress=forum.openmamba.org
bugsaddress=bugs.openmamba.org
wikiaddress=wiki.openmamba.org
TEXTDOMAIN="makedist"; export TEXTDOMAIN TEXTDOMAIN="makedist"; export TEXTDOMAIN
@ -260,6 +257,7 @@ done
mediumplatform=${MEDIA_PLATFORM[i]} mediumplatform=${MEDIA_PLATFORM[i]}
mediumsubplatform=${MEDIA_SUBPLATFORM[i]} mediumsubplatform=${MEDIA_SUBPLATFORM[i]}
mediumvariant=${MEDIA_VARIANT[i]}
webmediumdir=pub/$distribution/media/$distversion/$mediumname webmediumdir=pub/$distribution/media/$distversion/$mediumname
mediumdir=/var/ftp/$webmediumdir mediumdir=/var/ftp/$webmediumdir
@ -267,22 +265,22 @@ mediumdir=/var/ftp/$webmediumdir
if [ $mediumsubplatform ]; then if [ $mediumsubplatform ]; then
. /var/makedist/targets/$MAKEDIST_TARGET/platforms/$mediumsubplatform/settings.inc . /var/makedist/targets/$MAKEDIST_TARGET/platforms/$mediumsubplatform/settings.inc
medium_name=`arch=_SPLIT_ PLATFORM=$mediumsubplatform media_name` medium_name=`arch=_SPLIT_ VARIANT=$mediumvariant PLATFORM=$mediumsubplatform media_name`
sub_medium_suffix=${medium_name/*_SPLIT_\./} sub_medium_suffix=${medium_name/*_SPLIT_\./}
sub_medium_name=${medium_name/\._SPLIT_*/} sub_medium_name=${medium_name/\._SPLIT_*/}
. /var/makedist/targets/$MAKEDIST_TARGET/platforms/$mediumplatform/settings.inc . /var/makedist/targets/$MAKEDIST_TARGET/platforms/$mediumplatform/settings.inc
medium_name=`arch=_SPLIT_ PLATFORM=$mediumplatform media_name` medium_name=`arch=_SPLIT_ VARIANT=$mediumvariant PLATFORM=$mediumplatform media_name`
medium_suffix=${medium_name/*_SPLIT_\./} medium_suffix=${medium_name/*_SPLIT_\./}
medium_name=${medium_name/\._SPLIT_*/} medium_name=${medium_name/\._SPLIT_*/}
else else
. /var/makedist/targets/$MAKEDIST_TARGET/platforms/$mediumplatform/settings.inc . /var/makedist/targets/$MAKEDIST_TARGET/platforms/$mediumplatform/settings.inc
medium_name=`arch=_SPLIT_ PLATFORM=$mediumplatform media_name` medium_name=`arch=_SPLIT_ VARIANT=$mediumvariant PLATFORM=$mediumplatform media_name`
medium_suffix=${medium_name/*_SPLIT_\./} medium_suffix=${medium_name/*_SPLIT_\./}
medium_name=${medium_name/\._SPLIT_*/} medium_name=${medium_name/\._SPLIT_*/}
sub_medium_suffix=${medium_suffix} sub_medium_suffix=${medium_suffix}
sub_medium_name=${medium_name} sub_medium_name=${medium_name}
fi fi
echo $medium_name
[ -e /var/makedist/.$sub_medium_name-$mediumlang.$mediumarch.$sub_medium_suffix.distinfo ] || { [ -e /var/makedist/.$sub_medium_name-$mediumlang.$mediumarch.$sub_medium_suffix.distinfo ] || {
echo "Error: missing distinfo file /var/makedist/.$sub_medium_name-$mediumlang.$mediumarch.$sub_medium_suffix.distinfo; aborting." echo "Error: missing distinfo file /var/makedist/.$sub_medium_name-$mediumlang.$mediumarch.$sub_medium_suffix.distinfo; aborting."
exit 1 exit 1
@ -328,7 +326,7 @@ if [ ! -e $outputfile -o "$REBUILDANNOUNCEMENT" = "1" ]; then
echo $"Generating announcement for"" $distribution $distversion ${MEDIA_NAME[i]}"" ($outputlang)" echo $"Generating announcement for"" $distribution $distversion ${MEDIA_NAME[i]}"" ($outputlang)"
if [ -e "$mediumdir/$outputlang/preview/preview-i586-$version.jpg" ]; then if [ -e "$mediumdir/$outputlang/preview/preview-i586-$version.jpg" ]; then
IMG_ADD="<img align=\"right\" src=\"http://$siteaddress/$webmediumdir/$outputlang/preview/preview-i586-$version.jpg\">" IMG_ADD="<img align=\"right\" src=\"http://www.$siteaddress/$webmediumdir/$outputlang/preview/preview-i586-$version.jpg\">"
else else
IMG_ADD="" IMG_ADD=""
fi fi
@ -376,7 +374,7 @@ if [ ! -e $outputfile -o "$REBUILDANNOUNCEMENT" = "1" ]; then
*) echo -n $"unknown" >> $outputfile ;; *) echo -n $"unknown" >> $outputfile ;;
esac esac
echo "</td><td>${a}</td><td>\ echo "</td><td>${a}</td><td>\
<a href='http://$siteaddress/download.html?file=/pub/$distribution/media/$distversion/$mediumname/$l/$distribution-$mediumname-$l-$mediadistversion-$version.${a}.${medium_suffix}'>\ <a href='http://$siteaddress/media/$distversion/$mediumname/$l/$distribution-$mediumname-$l-$mediadistversion-$version.${a}.${medium_suffix}'>\
$distribution-$mediumname-$l-$mediadistversion-$version.${a}.${medium_suffix}</a></td> $distribution-$mediumname-$l-$mediadistversion-$version.${a}.${medium_suffix}</a></td>
<td>$mediumsizeMB MB</td><td>$mediumdate</td><td>$mediummd5</td>" >> $outputfile <td>$mediumsizeMB MB</td><td>$mediumdate</td><td>$mediummd5</td>" >> $outputfile
done done
@ -406,6 +404,7 @@ $distribution-$mediumname-$l-$mediadistversion-$version.${a}.${medium_suffix}</a
fi fi
echo -n "</ul>" >> $outputfile echo -n "</ul>" >> $outputfile
:<< _EOF
block_start block_start
for a in ${MEDIA_ARCHS[i]}; do for a in ${MEDIA_ARCHS[i]}; do
print_pkg_line $"Linux kernel ($a)" kernel $a print_pkg_line $"Linux kernel ($a)" kernel $a
@ -477,8 +476,10 @@ $distribution-$mediumname-$l-$mediadistversion-$version.${a}.${medium_suffix}</a
print_pkg_line $"NTFS recovery tools" ntfs-3g print_pkg_line $"NTFS recovery tools" ntfs-3g
print_pkg_line $"Serial terminal emulator" minicom print_pkg_line $"Serial terminal emulator" minicom
block_end $"Recovery and diagnostic tools" block_end $"Recovery and diagnostic tools"
_EOF
echo "<h3>"$"Links""</h3><ul>" >> $outputfile echo "<h3>"$"Links""</h3><ul>" >> $outputfile
:<< _EOF
echo "<li><a href='http://$siteaddress/distribution/media/${MEDIA_NAME[i]}.html?lang=$outputlang'>\ echo "<li><a href='http://$siteaddress/distribution/media/${MEDIA_NAME[i]}.html?lang=$outputlang'>\
"$"${MEDIA_NAME[i]} page at $siteaddress""</a>" >> $outputfile "$"${MEDIA_NAME[i]} page at $siteaddress""</a>" >> $outputfile
if [ "$distversion" = "devel" ]; then if [ "$distversion" = "devel" ]; then
@ -487,10 +488,11 @@ $distribution-$mediumname-$l-$mediadistversion-$version.${a}.${medium_suffix}</a
sitedistversion="$distversion" sitedistversion="$distversion"
fi fi
echo "<li><a href='http://$siteaddress/distribution/$sitedistversion.html?lang=$outputlang'>"$"$sitedistversion channels and packages""</a>" >> $outputfile echo "<li><a href='http://$siteaddress/distribution/$sitedistversion.html?lang=$outputlang'>"$"$sitedistversion channels and packages""</a>" >> $outputfile
_EOF
echo "\ echo "\
<li><a href='http://$forumaddress'>"$"$distribution forum""</a>\ <li><a href='http://$siteaddress/$outputlang/forum/'>"$"$distribution forum""</a>\
<li><a href='http://$bugsaddress'>"$"$distribution bug tracking system""</a>\ <li><a href='http://$siteaddress/$outputlang/bugs/'>"$"$distribution bug tracking system""</a>\
<li><a href='http://$wikiaddress'>"$"$distribution wiki""</a></ul>\ <li><a href='http://$siteaddress/$outputlang/wiki/'>"$"$distribution wiki""</a></ul>\
" >> $outputfile " >> $outputfile
echo -n "</div><hr><p><i>"$"Announcement automatically generated by"" makedist $makedist_version " >> $outputfile echo -n "</div><hr><p><i>"$"Announcement automatically generated by"" makedist $makedist_version " >> $outputfile

View File

@ -2,7 +2,7 @@
# #
# makedist.sh - Distribution media (CD/DVD/..) creator # makedist.sh - Distribution media (CD/DVD/..) creator
# #
# Copyright (c) 2003-2011 by Silvan Calarco <silvan.calarco@mambasoft.it> # Copyright (c) 2003-2015 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (c) 2003-2006 by Davide Madrisan <davide.madrisan@gmail.com> # Copyright (c) 2003-2006 by Davide Madrisan <davide.madrisan@gmail.com>
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
@ -21,7 +21,7 @@
copyleft="\ copyleft="\
makedist media (CD/DVD/Images) creator (version $makedist_version) makedist media (CD/DVD/Images) creator (version $makedist_version)
Copyright (c) 2003-2011 by Silvan Calarco <silvan.calarco@mambasoft.it> Copyright (c) 2003-2015 by Silvan Calarco <silvan.calarco@mambasoft.it>
Copyright (c) 2003-2005 by Davide Madrisan <davide.madrisan@gmail.com> Copyright (c) 2003-2005 by Davide Madrisan <davide.madrisan@gmail.com>
" "
@ -164,8 +164,16 @@ echo "\
Configuration: Configuration:
- distribution : $DISTRONAME - distribution : $DISTRONAME
- target : $MAKEDIST_TARGET - target : $MAKEDIST_TARGET
- platform : $PLATFORM ($MAKEDIST_TARGET/platforms/$PLATFORM) - platform : $PLATFORM ($MAKEDIST_TARGET/platforms/$PLATFORM)"
- variant : $VARIANT if [ "$SUBPLATFORM" ]; then
echo "\
- subplatform : $SUBPLATFORM"
fi
if [ "$VARIANT" ]; then
echo "\
- variant : $VARIANT"
fi
echo "\
- release : $RELEASE - release : $RELEASE
- target media : $MEDIA - target media : $MEDIA
- target arch : $arch - target arch : $arch
@ -203,13 +211,8 @@ if [ ! "$KERNEL_IGNORE" ]; then
{ echo "$makedist_me: cannot get KERNEL_VER" >&2 { echo "$makedist_me: cannot get KERNEL_VER" >&2
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
echo "Found Linux kernel version ${KERNEL_VER}${KERNEL_EXTRAVER}" echo "Found Linux kernel version ${KERNEL_VER}${KERNEL_EXTRAVER}"
if [ "${KERNEL_VER:0:1}" = "2" ]; then # legacy
# kernel major release = 2 KERNEL_MAJVER=$KERNEL_VER
KERNEL_MAJVER=`echo $KERNEL_VER | cut -d. -f1-3`
else
# kernel major release >= 3
KERNEL_MAJVER=`echo $KERNEL_VER | cut -d. -f1-2`
fi
echo " echo "
KERNEL_PLATFORM=${KERNEL_PLATFORM} KERNEL_PLATFORM=${KERNEL_PLATFORM}
KERNEL_EXTRAVER=${KERNEL_EXTRAVER} KERNEL_EXTRAVER=${KERNEL_EXTRAVER}
@ -284,32 +287,24 @@ function create_raw_disk_image() {
# #
# parameters: # parameters:
# #
# $1: disk image filename # $1: disk size (MBytes)
# $2: disk size (MBytes) # $2: block size
# $3: block size
# $4: filesystem type (defaults to ext2)
[ "$1" -a "$2" -a "$3" ] || { [ "$1" -a "$2" ] || {
echo "create_raw_disk_image: invalid number of parameters; aborting." echo "create_raw_disk_image: invalid number of parameters; aborting."
exit 1; exit 1;
} }
[ "$4" ] && FS=$4 || FS=ext2
echo "Creating raw disk image ($1)..."
umount /dev/loop2 2>/dev/null # FIXME
rm -f $1
losetup -d /dev/loop2 2>/dev/null
echo "Creating raw disk image..."
[ "$LOOPDEV" ] && {
umount $LOOPDEV # 2>/dev/null # FIXME
losetup -d $LOOPDEV 2>/dev/null
}
test -d $MOUNTFS || mkdir -p $MOUNTFS test -d $MOUNTFS || mkdir -p $MOUNTFS
LOOPDEVIMGFILE=`mktemp -p $MOUNTDIR/`
dd if=/dev/zero of=$1 bs=$3 count=$2 dd if=/dev/zero of=$LOOPDEVIMGFILE count=$1 bs=$2
losetup /dev/loop2 $1 LOOPDEV=`losetup -f`
install-mbr /dev/loop2 --force losetup $LOOPDEV $LOOPDEVIMGFILE
parted -s /dev/loop2 mkpart primary ext3 1 $2
# mkfs -t $FS -m 0 /dev/loop2 > /dev/null
# mount /dev/loop2 $MOUNTFS || exit 1
} }
function create_devices() { function create_devices() {
@ -347,7 +342,6 @@ cat > $MOUNTDIR/etc/fstab << _END
# filesystem mount-point fstype options dump fsck-order # filesystem mount-point fstype options dump fsck-order
proc /proc proc defaults 0 0 proc /proc proc defaults 0 0
devpts /dev/pts devpts gid=4,mode=620 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0
usbfs /proc/bus/usb usbfs defaults 0 0
none /sys sysfs defaults 0 0 none /sys sysfs defaults 0 0
_END _END

View File

@ -3,10 +3,11 @@ qemu-system-x86_64 \
-enable-kvm \ -enable-kvm \
-rtc base=localtime \ -rtc base=localtime \
-usb -m 1024 \ -usb -m 1024 \
-soundhw hda \
-vga vmware \ -vga vmware \
-cdrom ~/recordvm.iso \ -cdrom ~/recordvm.iso \
-name qemu-recordvm,process=qemu-recordvm -name qemu-recordvm,process=qemu-recordvm
# -no-frame
# -soundhw hda \
# -full-screen \ # -full-screen \
# -bt hci,host \ # -bt hci,host \
#echo "Calling: VBOX_USER_HOME=/var/makedist/recordvm/VirtualBox /opt/VirtualBox/VBoxSDL --startvm openmamba-recordvm --fixedmode 1024 768 32 --nograbonclick --nohostkey --vram 7" #echo "Calling: VBOX_USER_HOME=/var/makedist/recordvm/VirtualBox /opt/VirtualBox/VBoxSDL --startvm openmamba-recordvm --fixedmode 1024 768 32 --nograbonclick --nohostkey --vram 7"