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
)
23 echo "Can't parse version from $VERSION_FILE, aborting..."
27 DSTFOLDER
=ryzom-core-
$VERSION.
$REVISION
29 # remove destination folder if present
30 rm -rf $DSTFOLDER.orig
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>"