[Pkg-Cyrus-imapd-Debian-devel] [SVN] r178 -
trunk/cyrus-imapd-2.2.12/debian/patches/98-use_Debian_config.guess_config.sub.dpatch
debian at incase.de
debian at incase.de
Fri Nov 11 20:18:05 UTC 2005
Author: sven
Date: Fri Nov 11 21:18:04 2005
New Revision: 178
URL: https://mail.incase.de/viewcvs?root=cyrus22?view=rev&rev=178
Log:
Add dpatch script which updates config.guess and config.sub from autotools-dev package during build and restores them on cleanup
Added:
trunk/cyrus-imapd-2.2.12/debian/patches/98-use_Debian_config.guess_config.sub.dpatch (with props)
Added: trunk/cyrus-imapd-2.2.12/debian/patches/98-use_Debian_config.guess_config.sub.dpatch
URL: https://mail.incase.de/viewcvs?root=cyrus22/trunk/cyrus-imapd-2.2.12/debian/patches/98-use_Debian_config.guess_config.sub.dpatch?view=auto&rev=178
==============================================================================
--- trunk/cyrus-imapd-2.2.12/debian/patches/98-use_Debian_config.guess_config.sub.dpatch (added)
+++ trunk/cyrus-imapd-2.2.12/debian/patches/98-use_Debian_config.guess_config.sub.dpatch Fri Nov 11 21:18:04 2005
@@ -1,0 +1,43 @@
+#!/bin/sh
+## 98_use_Debian_config.guess_config.sub.dpatch by Sven Mueller <debian at incase.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Update config.sub and config.guess from the autotools-dev package
+set -e
+
+case "$1" in
+ "-patch")
+ if [ ! -f /usr/share/misc/config.sub ] || [ ! -f /usr/share/misc/config.guess ] ; then
+ echo "config.sub and/or config.guess not found - are autotools-dev really installed?" >&2
+ exit 1
+ fi
+ if [ -f config.guess ] && [ ! -f config.guess.dpatch ]; then
+ # only move it if the destination doesn't already exist.
+ # after all, our backup should really be the copy from
+ # the orig.tar.gz
+ mv config.guess config.guess.dpatch || exit 1
+ fi
+ if [ -f config.sub ] && [ ! -f config.sub.dpatch ]; then
+ mv config.sub config.sub.dpatch || exit 1
+ fi
+ cp -f /usr/share/misc/config.guess config.guess || exit 1
+ cp -f /usr/share/misc/config.sub config.sub || exit 1
+ exit 0
+ ;;
+ "-unpatch")
+ if [ -f config.guess.dpatch ]; then
+ mv -f config.guess.dpatch config.guess || exit 1
+ fi
+ if [ -f config.sub.dpatch ]; then
+ mv -f config.sub.dpatch config.sub || exit 1
+ fi
+ exit 0
+ ;;
+ *)
+ echo "unknown dpatch command: $1" >&2
+ exit 1
+ ;;
+esac
+exit 0
+
+
Propchange: trunk/cyrus-imapd-2.2.12/debian/patches/98-use_Debian_config.guess_config.sub.dpatch
------------------------------------------------------------------------------
svn:executable = *
More information about the Pkg-Cyrus-imapd-Debian-devel
mailing list