momongaの更新に合わせてisoイメージを作る
cd ~/Momonga/pkgs export CVS_RSH=ssh cvs -d :ext:zunda@cvs.momonga-linux.org:/home/cvs update -Pd momonga cvs -d :ext:zunda@cvs.momonga-linux.org:/home/cvs update -Pd dietlibc make -C ~/Momonga/tools ../tools/OmoiKondara momonga ls -t ~/HEAD/i586/momonga-[0-9]*.i586.rpm | head -1 | xargs sudo rpm -Uvh
touch ~/timestamp cd ~/Momonga echo -n '' >| ~/errors export CVS_RSH=ssh cvs -d :ext:zunda@cvs.momonga-linux.org:/home/cvs update -P tools cvs -d :ext:zunda@cvs.momonga-linux.org:/home/cvs update -P pkgs/rpmrc for pkg in `cat /usr/share/doc/momonga-*/packages* | sort -u`; do if { rpm -q $pkg ; } ; then dir=`LANG=C rpm -qi $pkg | ruby -n -e \ 'puts $1 if $_ =~ /.*Source RPM:\s*(.*?)-\d[^-]*-\d[^-]*/'` if [ -d pkgs/$dir/CVS ]; then cvs -d :ext:zunda@cvs.momonga-linux.org:/home/cvs update -P pkgs/$dir else cvs -d :ext:zunda@cvs.momonga-linux.org:/home/cvs checkout pkgs/$dir fi else echo $pkg not installed >> ~/errors fi done
しかしcvs遅くなったよなぁ…。
cd ~/Momonga/pkgs ../tools/OmoiKondara
できたパッケージをインストールして…
sudo rm -rf ~/momonga-install mkdir ~/momonga-install sudo /usr/lib/momonga/buildtree ~zunda/momonga-install ~zunda/HEAD sudo /usr/lib/momonga/buildinstall ~zunda/momonga-install
cd ~ date=`ruby -e "puts File.mtime('timestamp').gmtime.strftime('%y%m%d')"` ver=`rpm -q momonga` vol="$ver-$date" TZ=UTC sudo mkhybrid -r -J -V $vol -b images/boot.img \ -c images/boot.cat -o ~zunda/Momonga/$vol.iso ~zunda/momonga-install (cd ~zunda/Momonga; md5sum $vol.iso >| $vol.md5sum)
scp ~zunda/Momonga/$vol.iso ~zunda/Momonga/$vol.md5sum \ www.momonga-linux.org:public_html/momonga-install/ ssh www.momonga-linux.org \ "cd public_html/momonga-install; md5sum -c $vol.md5sum" scp -p ~/timestamp www.momonga-linux.org:public_html/momonga-install/