SHA256
3
0
forked from pool/automake
automake/aclocal-am_ac.sh
Dirk Mueller 029916bb48 Accepting request 173676 from openSUSE:Factory:Staging:Automake
- add a script to replace obsolete macros in configure.*
- call it from aclocal to avoid having to patch hundreds of packages

- Remove 
- update config.guess/sub to the latest state 

- Remove automake-add-mkdir_p-temporarly.patch: 
  * Only temporary hack for openSUSE 12.2, now it is time to remove it
- add a script to replace obsolete macros in configure.*
- call it from aclocal to avoid having to patch hundreds of packages

OBS-URL: https://build.opensuse.org/request/show/173676
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/automake?expand=0&rev=29
2013-04-29 09:54:26 +00:00

17 lines
474 B
Bash

#!/bin/bash
REPLACE="AM_CONFIG_HEADER:AC_CONFIG_HEADER AM_PROG_CC_STDC:AC_PROG_CC"
for i in $REPLACE; do
OLD=$(echo $i | cut -d: -f1)
NEW=$(echo $i | cut -d: -f2)
if test -e configure.in && grep -q $OLD configure.in; then
sed -i "s/$OLD/$NEW/" configure.in
echo "replacing $OLD with $NEW in configure.in"
fi
if test -e configure.ac && grep -q $OLD configure.ac; then
sed -i "s/$OLD/$NEW/" configure.ac
echo "replacing $OLD with $NEW in configure.ac"
fi
done