[Pkg-samba-maint] r1716 - trunk/ctdb/debian
mparent-guest at alioth.debian.org
mparent-guest at alioth.debian.org
Thu Jan 24 15:24:39 UTC 2008
Author: mparent-guest
Date: 2008-01-24 15:24:39 +0000 (Thu, 24 Jan 2008)
New Revision: 1716
Added:
trunk/ctdb/debian/build-orig.sh
Modified:
trunk/ctdb/debian/rules
Log:
GIT build-orig.sh
Don't know how to call it from debian/rules
Added: trunk/ctdb/debian/build-orig.sh
===================================================================
--- trunk/ctdb/debian/build-orig.sh (rev 0)
+++ trunk/ctdb/debian/build-orig.sh 2008-01-24 15:24:39 UTC (rev 1716)
@@ -0,0 +1,15 @@
+#!/bin/bash
+#apt-get install git-core
+git-clone git://git.samba.org/tridge/ctdb.git ctdb.git
+RELEASE=`grep '^Release: ' ctdb.git/packaging/RPM/ctdb.spec | awk '{ print $2; }'`
+VERSION=`grep '^Version: ' ctdb.git/packaging/RPM/ctdb.spec | awk '{ print $2; }'`
+cd ctdb.git
+CTDB_GIT_VERSION=`git-log -1 --pretty="format:%ci" | awk -F "[ -:]" '{print $1$2$3$4$5}'`
+cd ..
+CTDB_VERSION=$VERSION.$RELEASE.$CTDB_GIT_VERSION
+echo Version is $CTDB_VERSION
+rm -rf ctdb.git/.git
+mv ctdb.git ctdb-$CTDB_VERSION.orig
+cd ctdb-$CTDB_VERSION.orig && ./autogen.sh && cd ..
+tar cvfz ctdb_$CTDB_VERSION.orig.tar.gz ctdb-$CTDB_VERSION.orig
+rm -rf ctdb-$CTDB_VERSION.orig
Property changes on: trunk/ctdb/debian/build-orig.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/ctdb/debian/rules
===================================================================
--- trunk/ctdb/debian/rules 2008-01-24 13:00:15 UTC (rev 1715)
+++ trunk/ctdb/debian/rules 2008-01-24 15:24:39 UTC (rev 1716)
@@ -161,8 +161,8 @@
rm -rf ctdb-$(CTDB_BZR_VERSION).orig
get-orig-source-git:
- #TODO
-
+ #Please use ./build-orig.sh instead
+
get-orig-source: get-orig-source-bzr
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure patch unpatch
More information about the Pkg-samba-maint
mailing list