2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2007-2011 IPFire Team <info@ipfire.org> #
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 ###############################################################################
21 ###############################################################################
23 # Beautifying variables & presentation & input output interface
25 ###############################################################################
28 # Find current screen size
29 if [ -z "${COLUMNS}" ]; then
31 COLUMNS
=${COLUMNS##* }
34 # When using remote connections, such as a serial port, stty size returns 0
35 if [ "${COLUMNS}" = "0" ]; then
39 ## Measurements for positioning result messages
44 RESULT_COL
=$
((${COLUMNS} - $RESULT_WIDTH - 4))
45 TIME_COL
=$
((${RESULT_COL} - $TIME_WIDTH - 5))
46 OPT_COL
=$
((${TIME_COL} - $OPT_WIDTH - 5))
47 VER_COL
=$
((${OPT_COL} - $VER_WIDTH - 5))
49 ## Set Cursur Position Commands, used via echo -e
50 SET_RESULT_COL
="\\033[${RESULT_COL}G"
51 SET_TIME_COL
="\\033[${TIME_COL}G"
52 SET_OPT_COL
="\\033[${OPT_COL}G"
53 SET_VER_COL
="\\033[${VER_COL}G"
55 # Define color for messages
64 local target_arch
="${1}"
66 if [ "${target_arch}" = "default" ]; then
67 target_arch
="$(configure_target_guess)"
70 case "${target_arch}" in
72 BUILDTARGET
="${target_arch}-pc-linux-gnu"
73 CROSSTARGET
="${BUILD_ARCH}-cross-linux-gnu"
74 CFLAGS_ARCH
="-march=i586 -mtune=generic -fomit-frame-pointer"
78 BUILDTARGET
="${target_arch}-unknown-linux-gnueabi"
79 CROSSTARGET
="${BUILD_ARCH}-cross-linux-gnueabi"
80 CFLAGS_ARCH
="-march=armv5te -mfloat-abi=soft -fomit-frame-pointer"
85 exiterror
"Cannot build for architure ${target_arch}"
89 # Check if the QEMU helper is available if needed.
90 if qemu_is_required
"${target_arch}"; then
91 local qemu_target_helper
="$(qemu_find_target_helper_name "${target_arch}")"
93 if [ -n "${qemu_target_helper}" ]; then
94 QEMU_TARGET_HELPER
="${qemu_target_helper}"
96 exiterror
"Could not find a binfmt_misc helper entry for ${target_arch}"
100 TARGET_ARCH
="${target_arch}"
103 MACHINE
="${TARGET_ARCH}"
105 CFLAGS
="-O2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fPIC"
106 CFLAGS
="${CFLAGS} -fstack-protector-all --param=ssp-buffer-size=4 ${CFLAGS_ARCH}"
110 configure_target_guess
() {
111 case "${BUILD_ARCH}" in
115 armv7
*|armv6
*|armv5
*)
119 exiterror
"Cannot guess target architecture"
125 if [ "$?" -eq "0" ]; then
126 beautify message DONE
130 beautify message FAIL
132 if [ $EXITCODE -ne "0" ]; then
140 # ARG1=starting position on screen
141 # ARG2=string to be printed
142 # ARG3=offset, negative for left movement, positive for right movement, relative to ARG1
143 # For example if your starting position is column 50 and you want to print Hello three columns to the right
144 # of your starting position, your call will look like this:
145 # position_cursor 50 "Hello" 3 (you'll get the string Hello at position 53 (= 50 + 3)
146 # If on the other hand you want your string "Hello" to end three columns to the left of position 50,
147 # your call will look like this:
148 # position_cursor 50 "Hello" -3 (you'll get the string Hello at position 42 (= 50 - 5 -3)
149 # If you want to start printing at the exact starting location, use offset 0
155 STRING_LENGTH
=${#STRING}
157 if [ ${OFFSET} -lt 0 ]; then
158 COL
=$
((${START} + ${OFFSET} - ${STRING_LENGTH}))
160 COL
=$
((${START} + ${OFFSET}))
163 SET_COL
="\\033[${COL}G"
166 } # End of position_cursor()
171 # Commands: build_stage, make_pkg, message, result
176 echo -ne "${SET_RESULT_COL}[${DONE} DONE ${NORMAL}]\n"
179 echo -ne "${WARN}${3}${NORMAL}${SET_RESULT_COL}[${WARN} WARN ${NORMAL}]\n"
182 echo -ne "${SET_RESULT_COL}[${FAIL} FAIL ${NORMAL}]\n"
185 echo -ne "${SET_RESULT_COL}[${SKIP} SKIP ${NORMAL}]\n"
191 if [ "$STAGE_TIME_START" ]; then
192 LAST_STAGE_TIME
=$
[ `date +%s` - $STAGE_TIME_START ]
194 STAGE_TIME_START
=`date +%s`
195 echo -ne "${BOLD}*** ${MESSAGE}${NORMAL}"
196 if [ "$LAST_STAGE_TIME" ]; then
197 echo -ne "${DONE} (Last stage took $LAST_STAGE_TIME secs)${NORMAL}"
199 echo -ne "${BOLD}${SET_VER_COL} version${SET_OPT_COL} options${SET_TIME_COL} time (sec)${SET_RESULT_COL} status${NORMAL}\n"
202 BUILD_TIME_START
=`date +%s`
205 BUILD_TIME_END
=`date +%s`
206 seconds
=$
[ $BUILD_TIME_END - $BUILD_TIME_START ]
207 hours
=$
((seconds
/ 3600))
208 seconds
=$
((seconds
% 3600))
209 minutes
=$
((seconds
/ 60))
210 seconds
=$
((seconds
% 60))
212 echo -ne "${DONE}***Build is finished now and took $hours hour(s) $minutes minute(s) $seconds second(s)!${NORMAL}\n"
215 echo "$2" |
while read PKG_VER PROGRAM OPTIONS
217 SET_VER_COL_REAL
=`position_cursor $OPT_COL $PKG_VER -3`
219 if [ "$OPTIONS" == "" ]; then
220 echo -ne "${PROGRAM}${SET_VER_COL}[ ${BOLD}${SET_VER_COL_REAL}${PKG_VER}"
221 echo -ne "${NORMAL} ]${SET_RESULT_COL}"
223 echo -ne "${PROGRAM}${SET_VER_COL}[ ${BOLD}${SET_VER_COL_REAL}${PKG_VER}"
224 echo -ne "${NORMAL} ]${SET_OPT_COL}[ ${BOLD}${OPTIONS}"
225 echo -ne "${NORMAL} ]${SET_RESULT_COL}"
238 SET_TIME_COL_REAL
=`position_cursor $RESULT_COL $PKG_TIME -3`
241 echo -ne "${SET_TIME_COL}[ ${BOLD}${SET_TIME_COL_REAL}$PKG_TIME${NORMAL} ]"
242 echo -ne "${SET_RESULT_COL}[${DONE} DONE ${NORMAL}]\n"
245 echo -ne "${SET_TIME_COL}[ ${BOLD}${SET_TIME_COL_REAL}$PKG_TIME${NORMAL} ]"
246 echo -ne "${SET_RESULT_COL}[${FAIL} FAIL ${NORMAL}]\n"
249 echo -ne "${SET_RESULT_COL}[${SKIP} SKIP ${NORMAL}]\n"
254 } # End of beautify()
259 PKG_VER
=`grep -E "^VER |^VER=|^VER " $1 | awk '{print $3}'`
261 if [ -z $PKG_VER ]; then
262 PKG_VER
=`grep "Exp " $1 | awk '{print $4}'`
264 if [ -z $PKG_VER ]; then
267 if [ ${#PKG_VER} -gt $VER_WIDTH ]; then
268 # If a package version number is greater than $VER_WIDTH, we keep the first 4 characters
269 # and replace enough characters to fit the resulting string on the screen. We'll replace
270 # the extra character with .. (two dots). That's why the "+ 2" in the formula below.
271 # Example: if we have a 21-long version number that we want to fit into a 10-long space,
272 # we have to remove 11 characters. But if we replace 11 characters with 2 characters, we'll
273 # end up with a 12-character long string. That's why we replace 12 characters with ..
274 REMOVE
=`expr substr "$PKG_VER" 4 $[ ${#PKG_VER} - $VER_WIDTH + 2 ]`
275 PKG_VER
=`echo ${PKG_VER/$REMOVE/..}`
279 } # End of get_pkg_ver()
283 umount
$BASEDIR/build
/sys
2>/dev
/null
;
284 umount
$BASEDIR/build
/dev
/shm
2>/dev
/null
;
285 umount
$BASEDIR/build
/dev
/pts
2>/dev
/null
;
286 umount
$BASEDIR/build
/dev
2>/dev
/null
;
287 umount
$BASEDIR/build
/proc
2>/dev
/null
;
288 umount
$BASEDIR/build
/install
/mnt
2>/dev
/null
;
289 umount
$BASEDIR/build
/usr
/src
/cache
2>/dev
/null
;
290 umount
$BASEDIR/build
/usr
/src
/ccache
2>/dev
/null
;
291 umount
$BASEDIR/build
/usr
/src
/config
2>/dev
/null
;
292 umount
$BASEDIR/build
/usr
/src
/doc
2>/dev
/null
;
293 umount
$BASEDIR/build
/usr
/src
/html
2>/dev
/null
;
294 umount
$BASEDIR/build
/usr
/src
/langs
2>/dev
/null
;
295 umount
$BASEDIR/build
/usr
/src
/lfs
2>/dev
/null
;
296 umount
$BASEDIR/build
/usr
/src
/log
2>/dev
/null
;
297 umount
$BASEDIR/build
/usr
/src
/src
2>/dev
/null
;
302 for i
in `seq 0 7`; do
303 if ( losetup
/dev
/loop
${i} 2>/dev
/null |
grep -q "/install/images" ); then
304 losetup
-d /dev
/loop
${i} 2>/dev
/null
307 echo -e "\nERROR: $*"
308 echo " Check $LOGFILE for errors if applicable"
313 [ -e "${BASEDIR}/build/tools/lib/libpakfire_preload.so" ] ||
return
315 local env
="LD_PRELOAD=/tools/lib/libpakfire_preload.so"
317 # Fake kernel version, because some of the packages do not compile
318 # with kernel 3.0 and later.
319 env
="${env} UTS_RELEASE=${KVER}"
321 # Fake machine version.
322 env
="${env} UTS_MACHINE=${TARGET_ARCH}"
330 # Don't add anything if qemu is not used.
331 if ! qemu_is_required
; then
335 # Set default qemu options
336 case "${TARGET_ARCH}" in
338 QEMU_CPU
="${QEMU_CPU:-cortex-a9}"
340 env
="${env} QEMU_CPU=${QEMU_CPU}"
345 #env="${env} QEMU_STRACE=1"
351 local target_arch
="${1}"
353 if [ -z "${target_arch}" ]; then
354 target_arch
="${TARGET_ARCH}"
357 case "${BUILD_ARCH},${target_arch}" in
358 x86_64
,arm
*|i?
86,arm
*)
367 qemu_install_helper
() {
368 # Do nothing, if qemu is not required
369 if ! qemu_is_required
; then
373 if [ -z "${QEMU_TARGET_HELPER}" ]; then
374 exiterror
"QEMU_TARGET_HELPER not set"
377 # Check if the helper is already installed.
378 if [ -x "${LFS}${QEMU_TARGET_HELPER}" ]; then
382 # Try to find a suitable binary that we can install
383 # to the build environment.
385 for file in "${QEMU_TARGET_HELPER}" "${QEMU_TARGET_HELPER}-static"; do
386 # file must exist and be executable.
387 [ -x "${file}" ] ||
continue
390 file_is_static
"${file}" ||
continue
392 local dirname="${LFS}$(dirname "${file}")"
393 mkdir
-p "${dirname}"
395 install -m 755 "${file}" "${LFS}${QEMU_TARGET_HELPER}"
399 exiterror
"Could not find a statically-linked QEMU emulator: ${QEMU_TARGET_HELPER}"
402 qemu_find_target_helper_name
() {
403 local target_arch
="${1}"
406 case "${target_arch}" in
408 magic
="7f454c4601010100000000000000000002002800"
412 [ -z "${magic}" ] && return 1
415 for file in /proc
/sys
/fs
/binfmt_misc
/*; do
416 # Search for the file with the correct magic value.
417 grep -qE "^magic ${magic}$" "${file}" ||
continue
419 local interpreter
="$(grep "^interpreter
" "${file}" | awk '{ print $2 }')"
421 [ -n "${interpreter}" ] ||
continue
422 [ "${interpreter:0:1}" = "/" ] ||
continue
423 [ -x "${interpreter}" ] ||
continue
425 echo "${interpreter}"
435 file ${file} 2>/dev
/null |
grep -q "statically linked"
439 if [ ! -e $BASEDIR/build
/usr
/src
/lfs
/ ]; then
440 exiterror
"No such file or directory: $BASEDIR/build/usr/src/lfs/"
443 # Install QEMU helper, if needed
446 echo "Entering to a shell inside LFS chroot, go out with exit"
447 chroot
$LFS /tools
/bin
/env
-i HOME
=/root TERM
=$TERM PS1
='ipfire build chroot ($(uname -m)) \u:\w\$ ' \
448 PATH
=/tools
/ccache
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/tools
/bin \
449 VERSION
=$VERSION CONFIG_ROOT
=$CONFIG_ROOT \
450 NAME
="$NAME" SNAME
="$SNAME" SLOGAN
="$SLOGAN" \
451 CFLAGS
="${CFLAGS}" CXXFLAGS
="${CXXFLAGS}" \
452 CCACHE_DIR
=/usr
/src
/ccache \
454 CCACHE_COMPILERCHECK
="none" \
456 BUILDTARGET
="$BUILDTARGET" \
457 CROSSTARGET
="${CROSSTARGET}" \
459 MACHINE_TYPE
="$MACHINE_TYPE" \
463 if [ $?
-ne 0 ]; then
464 beautify message FAIL
465 exiterror
"chroot error"
471 ############################################################################
473 # Necessary shell functions #
475 ############################################################################
477 # Common checking before entering the chroot and compilling
479 # Return:0 caller can continue
480 # :1 skip (nothing to do)
481 # or fail if no script file found
486 if [ ! -f $BASEDIR/lfs
/$1 ]; then
487 exiterror
"No such file or directory: $BASEDIR/$1"
490 local PKG_VER
=`get_pkg_ver $BASEDIR/lfs/$1`
491 beautify make_pkg
"$PKG_VER $*"
493 # Check if this package is supported by our architecture.
494 # If no SUP_ARCH is found, we assume the package can be built for all.
495 if grep "^SUP_ARCH" ${BASEDIR}/lfs
/${1} >/dev
/null
; then
496 # Check if package supports ${MACHINE} or all architectures.
497 if ! grep -E "^SUP_ARCH.*${MACHINE}|^SUP_ARCH.*all" ${BASEDIR}/lfs/${1} >/dev/null; then
505 for i in $SKIP_PACKAGE_LIST
507 if [ "$i" == "$1" ]; then
513 echo -ne "`date -u '+%b %e %T'`: Building $
* " >> $LOGFILE
515 cd $BASEDIR/lfs && make -s -f $* LFS_BASEDIR=$BASEDIR MACHINE=$MACHINE \
516 MACHINE_TYPE="$MACHINE_TYPE" \
517 MESSAGE="$1\t " download >> $LOGFILE 2>&1
518 if [ $? -ne 0 ]; then
519 exiterror "Download error
in $1"
522 cd $BASEDIR/lfs && make -s -f $* LFS_BASEDIR=$BASEDIR MACHINE=$MACHINE \
523 MACHINE_TYPE="$MACHINE_TYPE" \
524 MESSAGE="$1\t md5sum" md5 >> $LOGFILE 2>&1
525 if [ $? -ne 0 ]; then
526 exiterror "md5sum error
in $1, check
file in cache or signature
"
530 } # End of lfsmakecommoncheck()
533 lfsmakecommoncheck $*
534 [ $? == 1 ] && return 0
536 local PKG_TIME_START=`date +%s`
538 cd $BASEDIR/lfs && make -f $* BUILDTARGET=$BUILDTARGET \
539 CROSSTARGET="${CROSSTARGET}" \
541 MACHINE_TYPE=$MACHINE_TYPE \
542 LFS_BASEDIR=$BASEDIR \
545 MAKETUNING=$MAKETUNING \
546 install >> $LOGFILE 2>&1
547 local COMPILE_SUCCESS=$?
548 local PKG_TIME_END=`date +%s`
550 if [ $COMPILE_SUCCESS -ne 0 ]; then
551 beautify result FAIL $[ $PKG_TIME_END - $PKG_TIME_START ]
552 exiterror "Building $
*";
554 beautify result DONE $[ $PKG_TIME_END - $PKG_TIME_START ]
561 lfsmakecommoncheck $*
562 [ $? == 1 ] && return 0
564 # Install QEMU helper, if needed
567 local PKG_TIME_START=`date +%s`
568 chroot $LFS /tools/bin/env -i HOME=/root \
569 TERM=$TERM PS1='\u:\w\$ ' \
570 PATH=/tools/ccache/bin:/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
571 VERSION=$VERSION PAKFIRE_CORE="${PAKFIRE_CORE}" \
572 SYSTEM_RELEASE="${SYSTEM_RELEASE}" \
573 CONFIG_ROOT=$CONFIG_ROOT \
574 NAME="$NAME" SNAME="$SNAME" SLOGAN="$SLOGAN" \
575 CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
576 CCACHE_DIR=/usr/src/ccache CCACHE_COMPRESS=1 \
577 CCACHE_COMPILERCHECK="none
" \
578 KVER=$KVER MAKETUNING=$MAKETUNING \
579 BUILDTARGET="$BUILDTARGET" \
580 CROSSTARGET="${CROSSTARGET}" \
582 MACHINE_TYPE="$MACHINE_TYPE" \
585 /tools/bin/bash -x -c "cd /usr
/src
/lfs
&& \
586 make -f $
* LFS_BASEDIR
=/usr
/src
install" >>$LOGFILE 2>&1
587 local COMPILE_SUCCESS=$?
588 local PKG_TIME_END=`date +%s`
590 if [ $COMPILE_SUCCESS -ne 0 ]; then
591 beautify result FAIL $[ $PKG_TIME_END - $PKG_TIME_START ]
592 exiterror "Building $
*";
594 beautify result DONE $[ $PKG_TIME_END - $PKG_TIME_START ]
601 lfsmakecommoncheck $*
602 [ $? == 1 ] && return 0
604 # Install QEMU helper, if needed
607 local PKG_TIME_START=`date +%s`
608 chroot $LFS /tools/bin/env -i HOME=/root \
609 TERM=$TERM PS1='\u:\w\$ ' \
610 PATH=/tools/ccache/bin:/bin:/usr/bin:/sbin:/usr/sbin \
613 CONFIG_ROOT=$CONFIG_ROOT \
614 NAME="$NAME" SNAME="$SNAME" SLOGAN="$SLOGAN" \
615 SYSTEM_RELEASE="$SYSTEM_RELEASE" \
616 CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
617 CCACHE_DIR=/usr/src/ccache CCACHE_COMPRESS=1 \
618 CCACHE_COMPILERCHECK="none
" \
619 KVER=$KVER MAKETUNING=$MAKETUNING \
620 BUILDTARGET="$BUILDTARGET" \
621 CROSSTARGET="${CROSSTARGET}" \
623 MACHINE_TYPE="$MACHINE_TYPE" \
626 /bin/bash -x -c "cd /usr
/src
/lfs
&& \
627 make -f $
* LFS_BASEDIR
=/usr
/src
install" >>$LOGFILE 2>&1
629 local COMPILE_SUCCESS=$?
630 local PKG_TIME_END=`date +%s`
632 if [ $COMPILE_SUCCESS -ne 0 ]; then
633 beautify result FAIL $[ $PKG_TIME_END - $PKG_TIME_START ]
634 exiterror "Building $
*";
636 beautify result DONE $[ $PKG_TIME_END - $PKG_TIME_START ]
642 lfsmakecommoncheck $*
643 [ $? == 1 ] && return 0
645 # Install QEMU helper, if needed
648 local PKG_TIME_START=`date +%s`
649 chroot $LFS /tools/bin/env -i HOME=/root \
650 TERM=$TERM PS1='\u:\w\$ ' \
651 PATH=/tools/ccache/bin:/bin:/usr/bin:/sbin:/usr/sbin \
653 CONFIG_ROOT=$CONFIG_ROOT \
654 NAME="$NAME" SNAME="$SNAME" SLOGAN="$SLOGAN" \
655 CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
656 CCACHE_DIR=/usr/src/ccache CCACHE_COMPRESS=1 \
657 CCACHE_COMPILERCHECK="none
" \
659 BUILDTARGET="$BUILDTARGET" \
660 CROSSTARGET="${CROSSTARGET}" \
662 MACHINE_TYPE="$MACHINE_TYPE" \
665 /bin/bash -x -c "cd /usr
/src
/lfs
&& \
666 make -f $1 LFS_BASEDIR
=/usr
/src dist
" >>$LOGFILE 2>&1
668 local COMPILE_SUCCESS=$?
669 local PKG_TIME_END=`date +%s`
671 if [ $COMPILE_SUCCESS -ne 0 ]; then
672 beautify result FAIL $[ $PKG_TIME_END - $PKG_TIME_START ]
673 exiterror "Packaging $
*";
675 beautify result DONE $[ $PKG_TIME_END - $PKG_TIME_START ]
681 lfsmakecommoncheck $*
682 [ $? == 1 ] && return 0
684 # Install QEMU helper, if needed
687 local PKG_TIME_START=`date +%s`
688 chroot $LFS /tools/bin/env -i HOME=/root \
689 TERM=$TERM PS1='\u:\w\$ ' \
690 PATH=/tools/ccache/bin:/bin:/usr/bin:/sbin:/usr/sbin \
692 SYSTEM_RELEASE="${SYSTEM_RELEASE}" \
693 CONFIG_ROOT=$CONFIG_ROOT \
694 NAME="$NAME" SNAME="$SNAME" SLOGAN="$SLOGAN" \
695 CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
696 CCACHE_DIR=/usr/src/ccache CCACHE_COMPRESS=1 CCACHE_HASHDIR=1 \
698 BUILDTARGET="$BUILDTARGET" \
699 CROSSTARGET="${CROSSTARGET}" \
701 MACHINE_TYPE="$MACHINE_TYPE" \
702 LD_LIBRARY_PATH=/tools/lib \
703 /tools/bin/bash -x -c "cd /usr
/src
/lfs
&& \
704 /tools
/bin
/make -f $
* LFS_BASEDIR
=/usr
/src
install" >>$LOGFILE 2>&1
706 local COMPILE_SUCCESS=$?
707 local PKG_TIME_END=`date +%s`
709 if [ $COMPILE_SUCCESS -ne 0 ]; then
710 beautify result FAIL $[ $PKG_TIME_END - $PKG_TIME_START ]
711 exiterror "Building $
*";
713 beautify result DONE $[ $PKG_TIME_END - $PKG_TIME_START ]
719 echo -ne "Checking the translations
for missing or obsolete
strings...
"
720 chmod 755 $BASEDIR/tools/{check_strings.pl,sort_strings.pl,check_langs.sh}
721 $BASEDIR/tools/sort_strings.pl en
722 $BASEDIR/tools/sort_strings.pl de
723 $BASEDIR/tools/sort_strings.pl fr
724 $BASEDIR/tools/sort_strings.pl es
725 $BASEDIR/tools/sort_strings.pl pl
726 $BASEDIR/tools/sort_strings.pl ru
727 $BASEDIR/tools/sort_strings.pl nl
728 $BASEDIR/tools/sort_strings.pl tr
729 $BASEDIR/tools/sort_strings.pl it
730 $BASEDIR/tools/check_strings.pl en > $BASEDIR/doc/language_issues.en
731 $BASEDIR/tools/check_strings.pl de > $BASEDIR/doc/language_issues.de
732 $BASEDIR/tools/check_strings.pl fr > $BASEDIR/doc/language_issues.fr
733 $BASEDIR/tools/check_strings.pl es > $BASEDIR/doc/language_issues.es
734 $BASEDIR/tools/check_strings.pl es > $BASEDIR/doc/language_issues.pl
735 $BASEDIR/tools/check_strings.pl ru > $BASEDIR/doc/language_issues.ru
736 $BASEDIR/tools/check_strings.pl nl > $BASEDIR/doc/language_issues.nl
737 $BASEDIR/tools/check_strings.pl tr > $BASEDIR/doc/language_issues.tr
738 $BASEDIR/tools/check_strings.pl it > $BASEDIR/doc/language_issues.it
739 $BASEDIR/tools/check_langs.sh > $BASEDIR/doc/language_missings
740 beautify message DONE
742 echo -ne "Updating language lists...
"
743 update_language_list ${BASEDIR}/src/installer/po
744 update_language_list ${BASEDIR}/src/setup/po
745 beautify message DONE
748 update_language_list() {
752 for lang in ${path}/*.po; do
753 lang="$
(basename "${lang}")"
755 done | sort -u > "${path}/LINGUAS
"