2
## 98_use_Debian_config.guess_config.sub.dpatch by Sven Mueller <debian@incase.de>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Update config.sub and config.guess from the autotools-dev package
10
if [ ! -f /usr/share/misc/config.sub ] || [ ! -f /usr/share/misc/config.guess ] ; then
11
echo "config.sub and/or config.guess not found - are autotools-dev really installed?" >&2
14
if [ -f config.guess ] && [ ! -f config.guess.dpatch ]; then
15
# only move it if the destination doesn't already exist.
16
# after all, our backup should really be the copy from
18
mv config.guess config.guess.dpatch || exit 1
20
if [ -f config.sub ] && [ ! -f config.sub.dpatch ]; then
21
mv config.sub config.sub.dpatch || exit 1
23
cp -f /usr/share/misc/config.guess config.guess || exit 1
24
cp -f /usr/share/misc/config.sub config.sub || exit 1
28
if [ -f config.guess.dpatch ]; then
29
mv -f config.guess.dpatch config.guess || exit 1
31
if [ -f config.sub.dpatch ]; then
32
mv -f config.sub.dpatch config.sub || exit 1
37
echo "unknown dpatch command: $1" >&2