[Pkg-kde-commits] rev 493 - branches/kde-3.4.0/common-patches
Adeodato Simó
dato-guest@costa.debian.org
Sat, 26 Feb 2005 05:22:22 +0100
Author: dato-guest
Date: 2005-02-26 05:22:21 +0100 (Sat, 26 Feb 2005)
New Revision: 493
Added:
branches/kde-3.4.0/common-patches/README
branches/kde-3.4.0/common-patches/update.sh
Log:
common-patches:
- README file
- script to update automatically some patches
Added: branches/kde-3.4.0/common-patches/README
===================================================================
--- branches/kde-3.4.0/common-patches/README 2005-02-26 04:15:10 UTC (rev 492)
+++ branches/kde-3.4.0/common-patches/README 2005-02-26 04:22:21 UTC (rev 493)
@@ -0,0 +1,14 @@
+Common patches across KDE Debian packages
+=========================================
+
+ These directory should contain patches to the admin/ subdir of KDE
+ modules that are meant to be applied to all packaged modules. As the
+ admin/ subdir is shared across modules (and so, it's identical for all
+ modules at a certain version), I think it makes sense to have these
+ patches in a central location, and update them here.
+
+ The script update.sh takes care of automatically updating the patches
+ that update autotools and libtool. You need to pass the location of an
+ admin/ directory as the first argument.
+
+ -- Adeodato Simó, 2005-02-26
Added: branches/kde-3.4.0/common-patches/update.sh
===================================================================
--- branches/kde-3.4.0/common-patches/update.sh 2005-02-26 04:15:10 UTC (rev 492)
+++ branches/kde-3.4.0/common-patches/update.sh 2005-02-26 04:22:21 UTC (rev 493)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+ADMIN="$1"
+
+test -d "$ADMIN" || {
+ echo >&2 "Error, admin dir '$ADMIN' does not exist."
+ exit 1
+}
+
+rm -rf a b
+mkdir a b
+
+cp -a "$ADMIN" a/admin
+
+############################################################
+PATCH=03_libtool_update.diff
+rm -rf b/admin; cp -a a/admin b
+
+cp -f /usr/share/libtool/libtool.m4 b/admin/libtool.m4.in
+cp -f /usr/share/libtool/ltmain.sh b/admin/ltmain.sh
+
+diff -Nrua a b >$PATCH
+############################################################
+
+
+############################################################
+PATCH=02_autotools_update.diff
+AUTOMAKE_DIR=/usr/share/automake-1.9
+rm -rf b/admin; cp -a a/admin b
+
+( cd b/admin
+ for file in *; do
+ if test -r "$AUTOMAKE_DIR/$file"; then
+ cp -f "$AUTOMAKE_DIR/$file" "$file"
+ fi
+ done
+)
+
+diff -Nrua a b >$PATCH
+############################################################
+
+rm -rf a b
Property changes on: branches/kde-3.4.0/common-patches/update.sh
___________________________________________________________________
Name: svn:executable
+ *