File: 04_not_ln_parent_dir.diff

package info (click to toggle)
vflib3 3.7.2%2Bdfsg-0.1
  • links: PTS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 11,340 kB
  • sloc: ansic: 37,308; sh: 11,967; makefile: 964; lisp: 123; perl: 109; awk: 43
file content (21 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh /usr/share/dpatch/dpatch-run
## 04_not_ln_parent_dir.dpatch by OHURA Makoto <ohura@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Don't make a symlink at parent directory.
## DP: See Bug#381624

@DPATCH@
diff -urNad vflib3-3.6.14.dfsg~/aclocal.m4 vflib3-3.6.14.dfsg/aclocal.m4
--- vflib3-3.6.14.dfsg~/aclocal.m4	2008-02-05 20:38:37.000000000 +0900
+++ vflib3-3.6.14.dfsg/aclocal.m4	2008-02-12 23:48:44.000000000 +0900
@@ -13,6 +13,9 @@
 changequote(<, >)dnl
 working_dir=`pwd`
 for curr_dir in `find $working_dir -type d -print`; do
+  if test $curr_dir = $working_dir; then
+    continue
+  fi
   new_dir=`echo $curr_dir | sed -e 's|^\(.*\)-[0-9.][0-9.]*$|\1|'`
   if test $curr_dir != $new_dir; then
     r_curr_dir=`echo $curr_dir | sed -e "s|$working_dir/||"`