]>
git.ipfire.org Git - ipfire-3.x.git/blob - tools/make-interactive
2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2008 Michael Tremer & Christian Schmidt #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
29 # check for prerequisites
31 # check for sanity of code
33 # compile the distro right now
40 # enter a shell inside LFS chroot
41 # may be used to change kernel settings
47 # build the distro in background
95 for i
in $
(mount |
grep $BASEDIR | cut
-d " " -f 1); do
102 [ "$2" = "--all" ] && WHAT
="${POSSIBLE_TARGETS}"
105 echo -ne "Cleaning ${BOLD}$i${NORMAL} buildtree"
106 rm -rf $BASEDIR/build_
$i
107 rm -rf $BASEDIR/log_
$i
108 rm -rf $BASEDIR/packages_
$i
109 beautify message DONE
111 echo -ne "Removing ${BOLD}general files${NORMAL}"
112 rm -f $FAILED $RUNNING 2>/dev
/null
113 beautify message DONE
117 LOGFILE
=$BASEDIR/log_
${TARGET}/_build
.00-preparation.log
126 software_list |
tee -a $BASEDIR/doc
/packages-list.txt
141 # Check if host can build the toolchain
147 echo -ne "\ntarball creation "
148 [ -d $BASEDIR/cache
/toolchains
] || mkdir
$BASEDIR/cache
/toolchains
149 cd $BASEDIR && tar cj
--exclude='log_${TARGET}/_build.*.log' \
150 --file=cache
/toolchains
/$TOOLCHAINNAME.
tar.bz2 \
151 build_
${TARGET} log_
${TARGET} >> $LOGFILE
152 beautify message DONE
153 echo `ls -sh cache/toolchains/$TOOLCHAINNAME.tar.bz2`
157 [ "$2" = "--put" ] && puttoolchain
166 for i
in $
(check_supported_targets
); do
168 TARGET
=$i $0 toolchain
--put
187 if check_cpu
$3; then
188 echo -n "CPU has flag $3"
189 beautify message DONE
191 dialogerror
"CPU hasn't got flag $3"
199 check_supported_targets
235 *) # If no command matches run git directly
254 for word
in $INPUT; do
255 LENGTH
=$
(expr $LENGTH + ${#word})
256 if [ "$LENGTH" -ge "$MAX_LENGTH" ]; then
263 #echo "-- ($word) $LINE"
269 eval "$(pkg_info ${pkg})"
270 echo "############################################################"
271 echo -e "# ${CLR_BOLD_RED}PACKAGE INFO${NORMAL}"
272 echo "############################################################"
273 for val
in NAME VERSION RELEASE
break GROUP MAINTAINER
break URL LICENSE
; do
274 if [ "${val}" == "break" ]; then
275 echo " ---------------------------------------- "
277 printf "${CLR_BOLD_RED}%-12s${NORMAL}: ${!val}\n" ${val}
280 for val in SHORT DESC; do
281 printf "${CLR_BOLD_RED}%-12s${NORMAL}: " ${val}
288 echo "====== All available groups of packages in ${NAME}-${VERSION} ======"
290 for group
in $
(pkg_list_groups
); do
313 LOGFILE
=$BASEDIR/log_
${TARGET}/_build
.00-preparation.log
332 rootfiles_check
--fix