Commit 72132b02 authored by Diego Pasqualin's avatar Diego Pasqualin

Delete le-gera-iso files and branch

This program was moved to a different repository called create-iso.git
Signed-off-by: default avatarDiego Pasqualin <dpasqualin@c3sl.ufpr.br>
parent 941e564b

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

#!/bin/bash
# Copyright (C) 2004-2010 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-base
#
# le-base is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
# This script is included in others scripts to use common functions
DIR=$(readlink -f "$0")
PREFIX=`dirname "$(echo "$DIR")"`
checkStatus()
{
if [ -n "$(grep "$DEVICE" /etc/mtab)" ]; then
echo "Error: /dev/$DEVICE is mounted according with mtab"
return 1
fi
return 0
}
checkUser()
{
if ! [ -w /dev/$DEVICE ]; then
echo "Error: Please, execute this script as root!"
return 1
fi
return 0
}
loadConf()
{
if [ $# -gt 1 -a -f "$1" ]; then
conf=$(readlink -f "$1")
elif [ -f "$PREFIX/"*.conf ]; then
conf="$PREFIX/"*.conf
else
echo "Error: Config file for $2 not found."
exit 1
fi
host=true
mirror=true
if [ ! -z "$LEHOST" ];
then
host="false"
fi
if [ ! -z "$LEMIRROR" ];
then
mirror="false"
fi
#read config file and declares only valid vars.
BASENAME=`basename $(echo "$2")`
while read var; do
if egrep -qi "^[a-z_]+=" <<< "$var";
then
varname="$(echo $var | cut -d"=" -f 1)"
if [ "$varname" != "LEHOST" ] && [ "$varname" != "LEMIRROR" ];
then
eval "export $(echo $var | sed -e "s@DISTNAME@$2@g" -e "s/BASENAME/$BASENAME/g")"
elif [ "$varname" == "LEHOST" ];
then
$host && eval "export $(echo $var)"
elif [ "$varname" == "LEMIRROR" ];
then
$mirror && eval "export $(echo $var)"
fi
fi
done < "$conf"
return 0
}
removeMountList()
{
grep -v "$1" "$MOUNTLIST" > "$MOUNTLIST".tmp
mv -f "$MOUNTLIST".tmp "$MOUNTLIST"
}
checkMountedFS()
{
touch "$MOUNTLIST"
for file in $(sort -r "$MOUNTLIST"); do
if ! ( umount -l $file && removeMountList $file ); then
echo "Error: While umounting $file"
return 1
fi
done
return 0
}
TMP="/dev/shm/tmp/DISTNAME"
LOGDIR="$PREFIX/log/DISTNAME"
LOGINFO="true"
DISTROBASE=ubuntu-12.04
RC="alpha1"
DISTRO=Linux_Educacional_5
SCRIPTSDIR="$PREFIX/enabled-scripts/DISTNAME"
INSTLIST="$PREFIX/pckg-list/DISTNAME/install.list"
RMLIST="$PREFIX/pckg-list/DISTNAME/remove.list"
CDDIR="$TMP/extract-cd"
CHROOTDIR="$TMP/live-image"
MOUNTLIST="$TMP/mountlist"
SQUASHIMAGE="$PREFIX/squashfs-root"
DISTROISO="$PREFIX/iso/DISTNAME/$DISTRO-BASENAME-i386"
TEMPLATES="$PREFIX/templates/DISTNAME"
LEHOST="windu.c3sl.ufpr.br/le5"
LEMIRROR="le5-testing"
TMP="/dev/shm/tmp/DISTNAME"
LOGDIR="$PREFIX/log/DISTNAME"
LOGINFO="true"
DISTROBASE=ubuntu-12.04
RC="alpha1"
DISTRO=Linux_Educacional_5
SCRIPTSDIR="$PREFIX/enabled-scripts/DISTNAME"
INSTLIST="$PREFIX/pckg-list/DISTNAME/install.list"
RMLIST="$PREFIX/pckg-list/DISTNAME/remove.list"
CDDIR="$TMP/extract-cd"
CHROOTDIR="$TMP/live-image"
MOUNTLIST="$TMP/mountlist"
SQUASHIMAGE="$PREFIX/squashfs-root"
DISTROISO="$PREFIX/iso/DISTNAME/$DISTRO-BASENAME-i386"
TEMPLATES="$PREFIX/templates/DISTNAME"
LEHOST="windu.c3sl.ufpr.br/le5"
LEMIRROR="le5-testing"
TMP="/dev/shm/tmp/tmp-DISTNAME"
LOGDIR="$PREFIX/log/DISTNAME"
LOGINFO="true"
DISTROBASE=ubuntu-12.04
RC="alpha1"
DISTRO=Linux_Educacional_5
SCRIPTSDIR="$PREFIX/enabled-scripts/DISTNAME"
INSTLIST="$PREFIX/pckg-list/DISTNAME/install.list"
RMLIST="$PREFIX/pckg-list/DISTNAME/remove.list"
CDDIR="$TMP/extract-cd"
CHROOTDIR="$TMP/live-image"
MOUNTLIST="$TMP/mountlist"
SQUASHIMAGE="$PREFIX/squashfs-root"
DISTROISO="$PREFIX/iso/DISTNAME/$DISTRO-BASENAME-i386"
TEMPLATES="$PREFIX/templates/DISTNAME"
LEHOST="windu.c3sl.ufpr.br/mc"
LEMIRROR="mc-testing"
DEBIAN_FRONTEND="noninteractive"
\ No newline at end of file
TMP="/dev/shm/tmp/tmp-DISTNAME"
LOGDIR="$PREFIX/log/DISTNAME"
LOGINFO="true"
DISTROBASE=ubuntu-12.04
RC="alpha1"
DISTRO=Linux_Educacional_5
SCRIPTSDIR="$PREFIX/enabled-scripts/DISTNAME"
INSTLIST="$PREFIX/pckg-list/DISTNAME/install.list"
RMLIST="$PREFIX/pckg-list/DISTNAME/remove.list"
CDDIR="$TMP/extract-cd"
CHROOTDIR="$TMP/live-image"
MOUNTLIST="$TMP/mountlist"
SQUASHIMAGE="$PREFIX/squashfs-root"
DISTROISO="$PREFIX/iso/DISTNAME/$DISTRO-BASENAME-i386"
TEMPLATES="$PREFIX/templates/DISTNAME"
LEHOST="windu.c3sl.ufpr.br/mc"
LEMIRROR="mc-testing"
DEBIAN_FRONTEND="noninteractive"
\ No newline at end of file
#!/bin/bash
sudo ./create-iso.sh --$FAZER iso/$ISO --dist $DISTRO <<< y
DFOLDER=(`echo $DISTRO | awk -F'/' '{ print $1 }'`)
DNAME=(`echo $DISTRO | awk -F'/' '{ print $2 }'`)
DATE=(`date +"%d-%m"`)
scp iso/$DFOLDER/$DNAME/Linux_Educacional_5-${DNAME}-i386.iso seed2@colombard.c3sl.ufpr.br:/var/www/isos/${DFOLDER}/Linux_Educacional_5-${DNAME}-i386-${DATE}.iso
scp iso/$DFOLDER/$DNAME/Linux_Educacional_5-${DNAME}-i386.md5 seed2@colombard.c3sl.ufpr.br:/var/www/isos/${DFOLDER}/Linux_Educacional_5-${DNAME}-i386-${DATE}.md5
TMP="/dev/shm/tmp/tmp-DISTNAME"
LOGDIR="$PREFIX/log"
LOGINFO="true"
DISTROBASE=ubuntu-12.04
RC="alpha1"
DISTRO=Linux_Educacional_5
SCRIPTSDIR="$PREFIX/enabled-scripts"
INSTLIST="$PREFIX/pckg-list/install.list-DISTNAME"
RMLIST="$PREFIX/pckg-list/remove.list"
CDDIR="$TMP/extract-cd"
CHROOTDIR="$TMP/live-image"
MOUNTLIST="$TMP/mountlist"
SQUASHIMAGE="$PREFIX/squashfs-root"
DISTROISO="$PREFIX/iso/$DISTRO-DISTNAME-i386"
TEMPLATES="$PREFIX/templates"
LEHOST="windu.c3sl.ufpr.br/le5"
LEMIRROR="le5-testing"