[Libreoffice-commits] .: patches/dev300

Bjoern Michaelsen bmichaelsen at kemper.freedesktop.org
Mon Mar 7 08:00:05 PST 2011


 patches/dev300/scriptify-all |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

New commits:
commit 3edb820a8bd1a043d554824a76f243ce3ffe8b86
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Mon Mar 7 16:59:55 2011 +0100

    added scriptify-all script too create all migration scripts

diff --git a/patches/dev300/scriptify-all b/patches/dev300/scriptify-all
new file mode 100755
index 0000000..a6e9078
--- /dev/null
+++ b/patches/dev300/scriptify-all
@@ -0,0 +1,20 @@
+#! /usr/bin/make -f
+# Creates patching scripts for all patches in the dev300 directory
+# Usage:
+#  mkdir patchdir && cd patchdir
+#  ...<pathtothisdev300>/scriptify-all -sj
+# This will generate all migration scripts in the current directory.
+# Copyright LGPLv3 (or later) / MPL 2011 Canonical Ltd.
+
+DEV300DIR := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
+ALLPATCHES := $(patsubst $(DEV300DIR)/%,%,$(wildcard $(DEV300DIR)/*.diff))
+ALLSCRIPTS := $(patsubst %.diff,migrate-%,$(ALLPATCHES))
+SHELL=/bin/sh
+
+all : $(ALLSCRIPTS)
+	true
+
+migrate-% : $(DEV300DIR)/%.diff $(DEV300DIR)/apply
+	cd $(DEV300DIR) && awk -f extractapplyinfo.awk -v PATCHNAME=$*.diff apply > $(abspath $@)
+
+.PHONY: all


More information about the Libreoffice-commits mailing list