From f5717c738417c7f3e5ceca9324872f959641de17 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Thu, 19 Sep 2013 00:37:57 +0200 Subject: [PATCH] Change for debian --- build/debian/README.howto | 20 +++++++++++++++++++- build/debian/get-orig-source.sh | 2 +- build/debian/watch | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/build/debian/README.howto b/build/debian/README.howto index 536e4697a93..3041c571768 100644 --- a/build/debian/README.howto +++ b/build/debian/README.howto @@ -125,7 +125,7 @@ from origin/upstream and origin/pristine. * Staying into git root directory, run > git-import-orig -vv ../tcpdf_x.y.z+dfsg.orig.tar.xz -Note: If there was errors managed manually, you may need to make a git commit +Note: If there was errors solved manually, you may need to make a git commit * Add an entry into debian/changelog > dh "My comment" will add entry. @@ -170,3 +170,21 @@ from git clone dir and make link to git. * If local branch upstream and pristine-tar does not exists, create it from origin/upstream and origin/pristine. +* If new upstream is available onto sourceforge, launch: +> debian/get-orig-source.sh +otherwise, just unzip the official .tgz into workspace dir. + +Note: If there was errors solved manually after get-orig-sources.sh, you may need to make a git commit + +* Add an entry into debian/changelog +> dh "My comment" will add entry. +For example: dch -v x.y.z-1 "New upstream release." for a new version + +Warning: Date must have format reported by "date -R" +Warning: Entry added here is used by next step. Name and email must match value into debian/control file. + +* We try to build package +> git-buildpackage -us -uc + + + diff --git a/build/debian/get-orig-source.sh b/build/debian/get-orig-source.sh index e3d201d672f..15526dffbf7 100755 --- a/build/debian/get-orig-source.sh +++ b/build/debian/get-orig-source.sh @@ -12,7 +12,7 @@ uscan --noconf --force-download --no-symlink --verbose --destdir=$tmpdir $uscan_ cd $tmpdir -tgzfile=$(echo *.tar.gz) +tgzfile=$(echo *.tgz) version=$(echo "$tgzfile" | perl -pi -e 's/^dolibarr_//; s/\.zip$//; s/_/./g; s/\+nmu1//; s/$/+dfsg/;') # Extract the zip file diff --git a/build/debian/watch b/build/debian/watch index 5f6e132bbfa..9e5c3e32c3e 100644 --- a/build/debian/watch +++ b/build/debian/watch @@ -2,4 +2,4 @@ version=3 #http://sf.net/dolibarr/dolibarr-(.+)\.tgz -http://www.dolibarr.org/files/stable/package_debian-ubuntu/dolibarr_(.+)\.tar\.gz +http://www.dolibarr.org/files/stable/standard/dolibarr_(.+)\.tgz -- GitLab