migration from private to rsa
[external/bash.git] / debian / patches / bashdb.dpatch
1 #! /bin/sh -e
2
3 dir=.
4 if [ $# -eq 3 -a "$2" = '-d' ]; then
5     pdir="-d $3"
6     dir=$3
7 elif [ $# -ne 1 ]; then
8     echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
9     exit 1
10 fi
11 case "$1" in
12     -patch)
13         patch $pdir -f --no-backup-if-mismatch -p1 < $0
14         rm -f $dir/aclocal.m4
15         rm -f $dir/configure
16         rm -f $dir/doc/bashref.info
17         rm -f $dir/examples/bashdb/bashdb.el
18         rm -f $dir/lib/readline/doc/Makefile
19         rm -f $dir/parser-built
20         rm -f $dir/pathnames.h
21         rm -f $dir/y.tab.[ch]
22         (cd $dir && aclocal -I . -I debugger)
23         (cd $dir && autoconf)
24         for i in config.guess config.sub elisp-comp install-sh \
25                  missing mkinstalldirs
26         do
27             cp -p /usr/share/automake-1.7/$i $dir/debugger/
28         done
29         for i in mdate-sh texinfo.tex; do
30             cp -p /usr/share/automake-1.7/$i $dir/debugger/doc/
31         done
32         (cd $dir/debugger && aclocal -I ..)
33         cp -p $dir/debugger/elisp-comp $dir/debugger/emacs/.
34         (cd $dir/debugger && automake)
35         (cd $dir/debugger && autoconf)
36         ;;
37     -unpatch)
38         patch $pdir -f --no-backup-if-mismatch -R -p1 < $0
39         ;;
40     *)
41         echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
42         exit 1
43 esac
44 exit 0
45
46 # how to construct this file:
47 # - unpack the upstream bash source
48 # - unpack the bashdb source
49 # - apply bash the seven bash upstream patches
50 # - diff -ur --unidirectional-new-file \
51          --exclude CVS --exclude=.cvsignore --exclude=/db/ \
52 #        bash-2.05b bashdb
53
54 # DP: bashdb changes
55
56 diff -ur --unidirectional-new-file --exclude CVS --exclude=.cvsignore bash-2.05b/ChangeLog cvs/ChangeLog