Merge branch 'ryzom/rites' into main/gingo-test
[ryzomcore.git] / dist / debian / update.sh
blob7ccbd30f709ffe6bd21ceb74d53645e929339efd
1 #!/bin/sh
3 HGBIN="/usr/bin/hg"
4 CODEROOT=../../code
6 echo "Generating changelogs..."
7 $HGBIN log -M --style $CODEROOT/changelog.template > $CODEROOT/changelog
9 REVISION=$($HGBIN identify -n | grep -o -P "[0-9]+")
10 echo "Found revision $REVISION"
12 REVISION_H=$CODEROOT/revision
14 DATE=$(date "+%Y-%m-%d %H:%M:%S")
16 # Update revision.h with revision and build date
17 echo $REVISION > $REVISION_H
19 VERSION=$(./ryzomcore_version.sh)
21 if [ -z "$VERSION" ]
22 then
23 echo "Can't parse version from $VERSION_FILE, aborting..."
24 exit 1
27 DSTFOLDER=ryzom-core-$VERSION.$REVISION
29 # remove destination folder if present
30 rm -rf $DSTFOLDER.orig
31 # copy all files
32 echo "Copying files to $DSTFOLDER..."
33 cp -r -p $CODEROOT $DSTFOLDER.orig
35 echo "Removing web files, because we don't need them and they generate lintian errors..."
36 rm -rf $DSTFOLDER.orig/web
38 echo "Done. Now launch ./update_debian.sh <distrib>"