#!/bin/bash # Copyright (c) 2004, 2005, 2006, 2007, 2008 by Miklos Vajna # Copyright (c) 2007 by CSÉCSY László # genpkgdbs for Frugalware # distributed under GPL License # this script is invoked by cron daily unset LC_ALL # unsetting LANG breaks accents, but this is fine, keeping the possible # localized outputs avoided export LANG=en_US . /usr/lib/frugalware/fwmakepkg stabledir="../../frugalware-stable/t" cd `dirname $0`/.. # Changelog echo -n "generating ChangeLog.txt..." git log --no-merges 0.8^.. | iconv -c -f iso8859-2 -t utf8 >ChangeLog.txt echo " done" # AUTHORS echo -n "generating AUTHORS..." python tools/genauthors.py docs/xml/authors.xml AUTHORS echo " done" # Filelist.txt echo -n "generating Filelist.txt..." echo -e "Last Modified: `date`\n\nFrugalware Source Tree">Filelist.txt tree|grep -v ^\.$>>Filelist.txt echo " done" # setup cd boot rm * for i in ${Farchs[@]} do [ -e ../frugalware-$i/fwsetup-* ] || continue tar xvf ../frugalware-$i/fwsetup-* usr/share/setup mv usr/share/setup/{vmlinuz,initrd}* ./ rm -rf usr done # documentation cd ../docs make clean make all 2>&1 |tee build.log make -i all-i18n 2>&1 |tee build-i18n.log # update pots make -C /home/ftp/pub/other/homepage-ng/frugalware/po pot make -C /home/ftp/pub/other/setup/setup/po pot make -C /home/ftp/pub/other/fwlive/po pot /home/ftp/pub/other/pacman-g2/pacman-g2/autogen.sh --gettext-only --pot-only make -C /home/ftp/pub/other/frugalwareutils/frugalwareutils pot sudo -u priyank /home/ftp/pub/other/fw-control-center/fw-control-center/gnetconfig/autogen.sh --pot-only sudo -u priyank /home/ftp/pub/other/fun/fun/autogen.sh --pot-only sudo -u priyank /home/ftp/pub/other/fw-control-center/fw-control-center/gnetconfig-mcs-plugin/autogen.sh --pot-only sudo -u priyank /home/ftp/pub/other/fw-control-center/fw-control-center/gfpm-mcs-plugin/autogen.sh --pot-only sudo -u priyank /home/ftp/pub/other/gfpm/gfpm/autogen.sh --pot-only # remove interim doc files make cronclean # transfer them ssh -p 2222 helicon sudo pootle-update /usr/lib/python2.5/site-packages/Pootle/po # testsuite cd ../t ./srcjunk --remove >/dev/null 2>&1 (cd $stabledir; ./srcjunk --remove >/dev/null 2>&1) ./fpmjunk-i686 --remove >/dev/null 2>&1 (cd $stabledir; ./fpmjunk-i686 --remove >/dev/null 2>&1) ./fpmjunk-x86_64 --remove >/dev/null 2>&1 (cd $stabledir; ./fpmjunk-x86_64 --remove >/dev/null 2>&1) sh mailer.sh # in case there would be leftover files # XXX: this will remove important files if you run it as root.. rm -rf /tmp/tmp* # autotag cd .. if date |grep -q ^Fri; then sh -c 'time dg optimize' &>tools/git-gc.log fi