[BATCH] Trinity Updater and Compiler with patches option for linux

First of i have to say that most of this code comes from elegos scripts. I have changed it a bit to match the actual reality.

For this to work you need to create 3 files: doMake doInstall config

This is the code inside them:

config:

[SPOILER]#######################

########CONFIG#########

MODES

PATCH_MODE=1

PAUSE_MODE=1

DELETE_SOURCES=1

JOINSQL=1

JOBS=2

INSTALL_DIR=“/home/wow/server”

ETC_DIR=“/home/wow/server/etc”

HOME_DIR=“/home/wow”

PATCHES_DIR=“/home/wow/patches”

PATCHES_REPO=“https://github.com/thedevnull/thedevnull-patches.git

PATCHES=“ahbot”

SOURCES_DIR=“/home/wow/sources”

SOURCES_REPO=“git://github.com/TrinityCore/TrinityCore.git”

#########END###########

#######################

[/SPOILER]

doMake:

#!/bin/bash

. conf

function pause(){

read -s -n 1 -p “”

}

The following functions convert the given date from and to Unix Epoch time (http://en.wikipedia.org/wiki/Unix_time)

I use them to convert a date to Unix time, add the days I want (in seconds) and convert back to YYYY-MM-DD date

date2stamp () {

date --utc --date “$1” +%s

}

stamp2date (){

date --utc --date “1970-01-01 $1 sec” “+%Y-%m-%d”

}

R=$1

if [ “$R” = “” ]; then

R=“0”

fi

step=1

numstep=5

if [ ${PATCH_MODE} = 1 ]; then

let numstep=$numstep+2

fi

if [ ${JOINSQL} = 1 ]; then

let numstep=$numstep+1

fi

CHECK CODE

clear

echo Total number of steps is $numstep

echo Current step is $step

pause

Grab the actual Commit Hash and Date.

if [ -e $SOURCES_DIR ]; then

cd ${SOURCES_DIR}

lasthash=$(git rev-list --max-count=1 HEAD)

lastdate=$(git log --pretty=format:“%ad” -1)

lastrev="CommitHash: “${lasthash}” DateTime: "${lastdate}

lastrevdate=$(git log --pretty=format:“%ad” --date=short -1)

cd $HOME_DIR

fi

Delete TrinityCore repo if DELETE_SOURCES is activated

if [ ${DELETE_SOURCES} = 1 ]; then

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Going to delete the Trinity repo. |”

echo “| (If you don’t want this, |”

echo “| change DELETE_SOURCES to 0 in config file) |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “| |”

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

rm -f -R $SOURCES_DIR

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| Trinity repo deleted successfully. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

fi

Revert changes if directory $SOURCES_DIR exists.

if [ -e $SOURCES_DIR ]; then

echo " "

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Going to Revert changes done to the repo. |”

echo “| (If instead of reverting you want to pull a clean repo, |”

echo “| go to the config file and change DELETE_SOURCES to 1) |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

cd $SOURCES_DIR

git reset --hard

cd $HOME_DIR

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| Changes reverted successfully. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

fi

let step=$step+1

Delete Patches repo if DELETE_SOURCES is activated

if [ ${DELETE_SOURCES} = 1 ]; then

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Deleting the Patches repo. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

rm -f -R $PATCHES_DIR

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| Patches repo deleted successfully. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

fi

Revert changes if directory $PATCHES_DIR exists.

if [ -e $PATCHES_DIR ]; then

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Reverting the Patches repo. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

cd $PATCHES_DIR

git reset --hard

cd $HOME_DIR

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| Patches repo reverted successfully. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

fi

let step=$step+1

Clone or update the local repo.

if [ ! -e $SOURCES_DIR ]; then

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Cloning TrinityCore repo. |”

echo “| (If you want to only update instead of cloning, |”

echo “| change DELETE_SOURCES to 0 in the config file) |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

git clone $SOURCES_REPO $SOURCES_DIR

cd $SOURCES_DIR

thishash=$(git rev-list --max-count=1 HEAD)

thisdate=$(git log --pretty=format:“%ad” -1)

thisrev="CommitHash: “${thishash}” DateTime: "${thisdate}

hash=$(git rev-list --max-count=1 HEAD)

cd $HOME_DIR

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| TrinityCore repo cloned successfully. |”

echo “| |”

echo “| Last update: “${lasthash}” |”

echo "| Of: "${lastdate}

echo “| |”

echo “| This update: “${thishash}” |”

echo "| Of: "${thisdate}

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

else

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Updating TrinityCore repo. |”

echo “| (If you want clean sources instead of updating the existing ones, |”

echo “| change DELETE_SOURCES to 1 in the config file) |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

cd $SOURCES_DIR

git pull origin master

thishash=$(git rev-list --max-count=1 HEAD)

thisdate=$(git log --pretty=format:“%ad” -1)

thisrev="CommitHash: “${thishash}” DateTime: "${thisdate}

cd $HOME_DIR

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| TrinityCore repo updated successfully. |”

echo “| |”

echo “| Last update: “${lasthash}” |”

echo "| Of: "${lastdate}

echo “| |”

echo “| This update: " ${thishash}” |"

echo "| Of: "${thisdate}

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

fi

let step=$step+1

echo "Latest rev: "${lastrev} > $INSTALL_DIR/revision.log

echo "Actual rev: "${thisrev} >> $INSTALL_DIR/revision.log

if [ ${PATCH_MODE} = 1 ]; then

if [ ! -e $PATCHES_DIR ]; then

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Cloning Patches repo. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

git clone $PATCHES_REPO $PATCHES_DIR

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| Patches repo cloned successfully. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

else

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Updating Patches repo. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

cd $PATCHES_DIR

git pull origin master

cd $HOME_DIR

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| Patches repo updated successfully. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

fi

let step=$step+1

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Going to apply patches to source code. |”

echo “| (If you don’t want to apply any patches |”

echo “| change PATCH_MODE to 0 in the config file) |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

for PATCH in $PATCHES; do

cd $PATCHES_DIR/$PATCH

LASTREV=ls -d *|tail -n 1

cd $SOURCES_DIR

git apply $PATCHES_DIR/$PATCH/$LASTREV/$PATCH.patch

done

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| Patches applied to source code. |”

echo “| Check for any error. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

fi

let step=$step+1

Configure the build process

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Going to configure and build TrinityCore. |”

if [ ${PATCH_MODE} = 0 ]; then

echo “| (If you want to apply patches to the code, |”

echo “| change PATCH_MODE to 1 in config file |”

echo “| and enter the patch names to PATCHES variable, space seperated) |”

fi

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

cd ${SOURCES_DIR}

mkdir -p bin

cd bin

export CXXFLAGS=“-march=native -O3”

export CFLAGS=“-march=native -O3”

cmake …/ -DSCRIPTS=1 -DSERVERS=1 -DTOOLS=1 -DPREFIX=$INSTALL_DIR -DCONF_DIR=$ETC_DIR -DWITH_WARNINGS=1

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| TrinityCore configuration completed. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

let step=$step+1

Build the code

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Going to build TrinityCore. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

make -j${JOBS}

cd $HOME_DIR

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| TrinityCore build completed. |”

echo “| Check for any errors. |”

echo “| |”

echo “| You will find a revision.log file with the latest |”

echo “| and actual revision and is dates, if you need |”

echo “| to revert any changes. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

let step=$step+1

Produce the SQL Update files

if [ ${JOINSQL} = 1 ]; then

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Starting Step $step of $numstep. |”

echo “| Going to compile SQL files since last build. |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

The Counter variable will hold seconds in Unix Time. Adding 86400 seconds later on, we add 1 day to $getdate

Counter=0

I’m going to convert $lastrevdate to Unix Time so I can add days to it

lastrevdateUE=$(date2stamp $lastrevdate)

Adding one day to $getdateUE and converting it to YYYY-MM-DD date format to be assigned to $getdate

getdateUE=$(echo $lastrevdateUE+$Counter | bc)

getdate=$(stamp2date $getdateUE)

today=$(date -d “+2 day” +“%F”)

Right below is the original code to assign $getdate and add x number of days, that didn’t work for me. The $Counter used to be 1

getdate=$(date --date=“$lastrevdate” -d “+”$Counter" day" +“%F”)

rm $SOURCES_DIR/sql/updates/*.sql

while [ “$today” != “$getdate” ]

do

lastrevyear=$(echo $getdate | cut -c1-4)

lastrevmonth=$(echo $getdate | cut -c6-7)

lastrevday=$(echo $getdate | cut -c9-10)

since=$lastrevyear"“$lastrevmonth”"$lastrevday

cat $SOURCES_DIR/sql/updates/world/$since*.sql >> world_updates.sql

cat $SOURCES_DIR/sql/updates/characters/$since*.sql >> character_updates.sql

cat $SOURCES_DIR/sql/updates/auth_char/$since*.sql >> auth_updates.sql

let Counter=$Counter+86400

I’m adding 86400 seconds again (1 day) to $getdateUE (Unix Time) and then converting to YYYY-MM-DD

let getdateUE=$lastrevdateUE+$Counter

getdate=$(stamp2date $getdateUE)

done

rm -R $INSTALL_DIR/sql

mkdir $INSTALL_DIR/sql

mv *.sql $INSTALL_DIR/sql

clear

echo -e ‘\E[33;40m’

echo “±-----------------------------------------------------------------------------+”

echo “| Step $step of $numstep Completed. |”

echo “| The SQL files have been written to your installation folder |”

echo “| You need to execute them individually on each database. |”

echo “| |”

echo “| |”

if [ ${PAUSE_MODE} = 1 ]; then

echo “| Press a key to continue or CTRL+C to exit |”

echo “| (To disable pause, change PAUSE_MODE to 0 in the config file) |”

echo “| |”

fi

echo “±-----------------------------------------------------------------------------+”

tput sgr0

if [ ${PAUSE_MODE} = 1 ]; then

pause

fi

fi

doInstall:

[SPOILER]#!/bin/bash

. config

Move to compiled dir

cd ${SOURCES_DIR}/bin

Make the install

make install

[/SPOILER]

After you saved all files: chmod +x doMake doInstall

I think here all is ok. Tell me if something isn’t working well.

2011-05-05:

  • Removed version numbering from code.

  • Better user handling when in pause mode.

  • Added SQL parsing since the last update (this is a usefull update, the script tracks the changes since the last update and create the sql files with those changes only)

  • Separate all actions into 8 steps.

  • Added info and sugestions on what is it doing on each step.

91 views and no coment! /emoticons/default_sad.png

Hello.

here is that I get in console:

trinity@ks2710:~$ ./doMake

: commande introuvable

Deleting previous Trinity modifications.

warning: You appear to be on a branch yet to be born.

warning: Forcing checkout of HEAD.

fatal: just how do you expect me to merge 0 trees?

Deleting previous patches modifications.

Updating Trinity Core.

fatal: ‘origin’: unable to chdir or not a git archive

fatal: The remote end hung up unexpectedly

Updating Trinity Database.

abort: There is no Mercurial repository here (.hg not found)!

trinity@ks2710:~$

sorry I do not speak English, I speak only French.

jet well checked everything, everything is ok, I see where this can not come.

Please post you config file.

hello,

So here is the config file:

If you want to use patches change this to 1

PATCH_MODE=0

If you want to pause the script between steps change this to 1#

PAUSE_MODE=0

How many cores do you want to use for compile process?

JOBS=1

Where do install the server?

INSTALL_DIR=“/home/laurent/Trinity/core”

Where do install the config files?

ETC_DIR=“/home/laurent/Trinity/core/etc”

Patches repo directory

PATCHES_DIR=“/home/laurent/Trinity/patches”

Patches repo source

PATCHES_REPO=“https://github.com/thedevnull/thedevnull-patches.git

Wich patches should we apply?

PATCHES=“ahbot ahbot_glyphs”

Trinitycore repo directory

SOURCES_DIR=“/home/laurent/Trinity/sources”

Trinitycore repo source

SOURCES_REPO=“git://github.com/TrinityCore/TrinityCore.git”

Trinitycore database repo directory

DATABASE_DIR=“/home/laurent/Trinity/DB”

Trinitycore database repo source

DATABASE_REPO=“http://trinitydb.googlecode.com/hg/

I have tested your config and it works without problems. Don’t know why you are getting those errors.

Also i have noted that you have selected 2 patches (ahbot ahbot_glyphs) and you deactivated patches. If you want them to be installed you have to turn PATCH_MODE to 1.

French:

J’ai testé votre config et je n’ai pas trouvé auquin probléme. Je ne sais pas pourquoi vous avez ces erreurs.

Je me suis aussi rendu compte que vous avez seleccioner 2 patches (ahbot ahbot_glyphs) et vous avez deactivé les patches. Ci vou voulez les installé, vous devez changer PATCH_MODE a 1.

EDIT: i have done a little change on the doMake file. Can you test it? (j’ai changer un peu le code de doMake. Pouvez-vous le tester?)

xclanet

I love this script but it needs updated, I’m getting lots off errors… The patches git doesn’t work anymore and the database hg is out of date /emoticons/default_sad.png

I do hope this script gets the update it deserves

The DB is now in the git repo with the core.

I just updated the script to work with last rev.

Cheers,

Great job +rep

nice one ! +rep

I just did a big rewrite of my script.

The script now will also create the sql files with the updates since the last git update.

I have tested it on my system. Please give me some feedback. /emoticons/default_wink.png

Very nice tool, you save my time /emoticons/default_smile.png Thx you (+rep!)

EDIT: test on Debian Lenny /emoticons/default_wink.png

Thx.

Hey, As my server runs only in shell, how can I create new files? Im pretty noob with linux and trying to learn it.

nano domake and so on?

i personally use winscp to connect to my server and edit the files.

After i use ssh to run them.

But if you want to edit them by the command line, you can use vi or nano.

Alright, Thank you. /emoticons/default_smile.png

Thanks for the script update man!

Ive been using elegos for a long time, changin it for different updates. Your version script saved me a lot of time, had some probls with the new ACE and git (it wasnt installed) but now im rolling !!! great work.

Thanks… good to know the feedback. /emoticons/default_wink.png

Nice code /emoticons/default_smile.png +Rep Good work!

It seems to be working smoothly on my Ubuntu 10.04. The only thing I can’t check yet is the update part, I need to wait for a repo update.

One thing to note though… I see that you create three files in $INSTALL_DIR/bin/sql

[ul]
[li]auth_updates.sql[/li]
[li]character_updates.sql[/li]
[li]world_updates.sql[/li]
[/ul]

which I imagine contain a list of the update files (from previous to current) that need to be inserted in the DB. How come you haven’t scripted this part as well ?

Too bad I hadn’t seen this post before wasting some time trying to write my own script /emoticons/default_wacko.png In any case THANK YOU for sharing!