Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Anonymouse

#1
Introduce yourself / Oh hello.
November 25, 2012, 11:10:22 PM
Hi. I'm Anonymouse (but my real name is Linus, not Torvalds. So much for "anonymous" :P ). I'm a person who is German, lived in England for 13 years, and now lives in France. I like programming. In python, C, C++, and a variety of other languages. And I dunno what else to say. Ask me for anything else!
#2
The Mega Archive / New tesseract daily build
November 25, 2012, 11:05:42 PM
Hi everyone, I've set up another place with daily builds of tesseract.
http://rru-stuff.org/tesseract-daily/

It may well download faster than here from mapping hell (I got 200kbps max from here and some 500 from mine).

I also modified (dare I say improved?) the script for building and archiving it a little.


#!/bin/bash -x

OUTPUT_DIR=/home/linus/www/tesseract-daily/

(cd sauerbraten && svn up)

cd tesseract
git pull origin master

rm -f $OUTPUT_DIR/tesseract*-daily-*
OUTPUT_PREFIX=`date +%Y-%m-%d`-`git rev-parse --short HEAD`

(cd src && make clean clean-enet && make install)
7z a -mmt0 -l -xr!?git/* -x!sauerbraten -x!server-init.cfg -x!src $OUTPUT_DIR/tesseract-daily-${OUTPUT_PREFIX}.7z *
cp $OUTPUT_DIR/tesseract-daily-${OUTPUT_PREFIX}.7z /tmp/withdata.7z
cd ../sauerbraten/
7z a -mmt0 -l -xr!?git/* -xr!?svn/* -x!server-init.cfg /tmp/withdata.7z packages
cp /tmp/withdata.7z $OUTPUT_DIR/tesseract-with-data-daily-${OUTPUT_PREFIX}.7z

cd ../tesseract
(cd src && make clean clean-enet && make CXX=i586-mingw32msvc-g++ STRIP=i586-mingw32msvc-strip WINDRES=i586-mingw32msvc-windres LD=i586-mingw32msvc-ld PLATFORM=MINGW install)
7z a -mmt0 -l -xr!?git/* -x!sauerbraten -x!server-init.cfg -x!src $OUTPUT_DIR/tesseract-daily-win32-${OUTPUT_PREFIX}.7z *
cp $OUTPUT_DIR/tesseract-daily-win32-${OUTPUT_PREFIX}.7z /tmp/withdata.7z
cd ../sauerbraten/
7z a -mmt0 -l -xr!?git/* -xr!?svn/* -x!server-init.cfg /tmp/withdata.7z packages
cp /tmp/withdata.7z $OUTPUT_DIR/tesseract-with-data-daily-win32-${OUTPUT_PREFIX}.7z

rm /tmp/withdata.7z


I modified it to use only one core (remove -mmt0 and add back -j 2 to put that back) and work more efficiently (only compress tesseract once).