[Pkg-ocaml-maint-commits] r923 - packages/advi/branches/split/debian/patches
Helge Kreutzmann
kreutzm-guest@costa.debian.org
Mon, 24 Jan 2005 09:13:49 +0100
Author: kreutzm-guest
Date: 2005-01-24 09:13:49 +0100 (Mon, 24 Jan 2005)
New Revision: 923
Added:
packages/advi/branches/split/debian/patches/set_test_cache_dir.dpatch
Log:
(Maybe not optimal): Set cache directory to home directory
Added: packages/advi/branches/split/debian/patches/set_test_cache_dir.dpatch
===================================================================
--- packages/advi/branches/split/debian/patches/set_test_cache_dir.dpatch 2005-01-24 08:12:56 UTC (rev 922)
+++ packages/advi/branches/split/debian/patches/set_test_cache_dir.dpatch 2005-01-24 08:13:49 UTC (rev 923)
@@ -0,0 +1,34 @@
+#! /bin/sh -e
+## set_test_cache_dir.dpatch by <kreutzm@itp.uni-hannover.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: /usr/share is not usr-writable. Set cache-directory to $HOME
+
+if [ $# -lt 1 ]; then
+ echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+ exit 1
+fi
+
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
+
+case "$1" in
+ -patch) patch -p1 ${patch_opts} < $0;;
+ -unpatch) patch -R -p1 ${patch_opts} < $0;;
+ *)
+ echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+ exit 1;;
+esac
+
+exit 0
+
+@DPATCH@
+diff -urN advi-1.6.0.orig/test/.advirc advi-1.6.0/test/.advirc
+--- advi-1.6.0.orig/test/.advirc 2003-04-23 08:58:20.000000000 +0200
++++ advi-1.6.0/test/.advirc 2005-01-01 14:44:57.000000000 +0100
+@@ -1,4 +1,4 @@
+ -exec
+--cache-dir ./.advi
++-cache-dir ~/.advi
+
+
Property changes on: packages/advi/branches/split/debian/patches/set_test_cache_dir.dpatch
___________________________________________________________________
Name: svn:executable
+ *