<commit_before>#!/bin/sh
#
# $Id$


SVNDIR=d:/home/svn
CGIFTPSCRIPT=d:/home/wince/q3/cgiftpscript
WEBFTPSCRIPT=d:/home/wince/q3/webftpscript

svnadmin dump $SVNDIR/q3 | gzip -c > $SVNDIR/q3-`date +%Y%m%d`.gz

if [ "$1" = "-norebuild" ]; then
	REBUILD=0
else
	REBUILD=1
fi


VERSION=`cat version`
DATE=`date +%Y%m%d`

BUILDDIR=`pwd`/build
ZIPDIR=$BUILDDIR/zip

if [ $REBUILD -ne 0 ]; then
	rm -rf $BUILDDIR
fi

if [ ! -d $BUILDDIR ]; then
	mkdir $BUILDDIR
fi
if [ ! -d $ZIPDIR ]; then
	mkdir $ZIPDIR
fi

cd $BUILDDIR
svn checkout file:///home/svn/q3/trunk/q3
cd q3

make all

zip -j $ZIPDIR/q3-desktop-x86-ja-$VERSION-$DATE.zip \
	*/bin/desktop/ansi/release/*.exe \
	*/lib/desktop/ansi/release/*.dll
zip -j $ZIPDIR/q3u-desktop-x86-ja-$VERSION-$DATE.zip \
	*/bin/desktop/unicode/release/*.exe \
	*/lib/desktop/unicode/release/*.dll

PLATFORMS="ppc2002.arm.ja hpc2000.arm.ja hpc2000.mips.ja ppc.arm.ja ppc.mips.ja ppc.sh3.ja hpcpro.arm.ja hpcpro.mips.ja hpcpro.sh3.ja hpcpro.sh4.ja"
for p in $PLATFORMS; do
	zip -j $ZIPDIR/q3u-`printf $p | tr . -`-$VERSION-$DATE.zip \
		*/bin/`printf $p | tr . /`/release/*.exe \
		*/lib/`printf $p | tr . /`/release/*.dll
done


#ncftpput -f $WEBFTPUSER /omega/snak/software/q3/nightly $ZIPDIR/*
(cd $ZIPDIR; ftp -i -s:$WEBFTPSCRIPT)

echo $VERSION-$DATE > nightly
#ncftpput -f $CGIFTPUSER /public_html/q3 nightly
ftp -s:$CGIFTPSCRIPT
<commit_msg>Update nightly.sh because I moved the svn repository.<commit_after>#!/bin/sh
#
# $Id$


SVNHOST=home.snak.org
SVNDIR=/home/snakamura/svn
SVNURI=svn+ssh://$SVNHOST$SVNDIR/q3/trunk/q3
CGIFTPSCRIPT=d:/home/wince/q3/cgiftpscript
WEBFTPSCRIPT=d:/home/wince/q3/webftpscript

DATE=`date +%Y%m%d`
ssh $SVNHOST "svnadmin dump $SVNDIR/q3 | gzip -c > $SVNDIR/q3-$DATE.gz"
scp $SVNHOST:$SVNDIR/q3-$DATE.gz /cygdrive/d/home/svn


if [ "$1" = "-norebuild" ]; then
	REBUILD=0
else
	REBUILD=1
fi

VERSION=`cat version`
DATE=`date +%Y%m%d`

BUILDDIR=`pwd`/build
ZIPDIR=$BUILDDIR/zip

if [ $REBUILD -ne 0 ]; then
	rm -rf $BUILDDIR
fi

if [ ! -d $BUILDDIR ]; then
	mkdir $BUILDDIR
fi
if [ ! -d $ZIPDIR ]; then
	mkdir $ZIPDIR
fi

cd $BUILDDIR
svn checkout $SVNURI
cd q3

make all

zip -j $ZIPDIR/q3-desktop-x86-ja-$VERSION-$DATE.zip \
	*/bin/desktop/ansi/release/*.exe \
	*/lib/desktop/ansi/release/*.dll
zip -j $ZIPDIR/q3u-desktop-x86-ja-$VERSION-$DATE.zip \
	*/bin/desktop/unicode/release/*.exe \
	*/lib/desktop/unicode/release/*.dll

PLATFORMS="ppc2002.arm.ja hpc2000.arm.ja hpc2000.mips.ja ppc.arm.ja ppc.mips.ja ppc.sh3.ja hpcpro.arm.ja hpcpro.mips.ja hpcpro.sh3.ja hpcpro.sh4.ja"
for p in $PLATFORMS; do
	zip -j $ZIPDIR/q3u-`printf $p | tr . -`-$VERSION-$DATE.zip \
		*/bin/`printf $p | tr . /`/release/*.exe \
		*/lib/`printf $p | tr . /`/release/*.dll
done


(cd $ZIPDIR; ftp -i -s:$WEBFTPSCRIPT)

echo $VERSION-$DATE > nightly
ftp -s:$CGIFTPSCRIPT

{'fraction_non_alphanumeric': 0.17811012916383412, 'fraction_numerical': 0.02345343303874915, 'mean_word_length': 2.924, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4350408', 'n_tokens_mistral': 1540, 'n_tokens_neox': 1378, 'n_words': 241}