File: 01_config.dpatch

package info (click to toggle)
solid-pop3d 0.15-14
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 868 kB
  • ctags: 443
  • sloc: ansic: 6,085; sh: 4,268; makefile: 519
file content (30 lines) | stat: -rw-r--r-- 896 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /bin/sh -e
## 01_config.dpatch by Ralf Treinen <treinen@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: replace all config.{guess,sub} by the version installed in
## DP: /usr/share/misc

if [ $# -lt 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
       -patch)	find . -name config.guess -o -name config.sub \
	 		| tar cf debian/patched/config.guess+sub.tar -T -;
		find . -name config.guess \
			-exec ln -sf /usr/share/misc/config.guess '{}' \; ;
		find . -name config.sub \
			-exec ln -sf /usr/share/misc/config.sub '{}' \; ;;
		
       -unpatch) tar xf debian/patched/config.guess+sub.tar;;

        *)
                echo >&2 \
		  "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0

# arch-tag: 8a610a57-687b-4395-8ff2-79265c0a4eb3