move stuff from common ldadd to kadmin dito
[heimdal.git] / fix-export
blobd66a289a26bb64d601d66fd473ad6e6a4a288a8e
1 #! /bin/sh
3 echo "fixing distribution in $1..."
5 cd $1
7 ver=`sed -n 's/AM_INIT_AUTOMAKE(.*,\(.*\))/\1/p' configure.in`
8 M="* This is version $ver. *"
9 echo "$M" | sed -e 's/./*/g'
10 echo "$M"
11 echo "$M" | sed -e 's/./*/g'
13 ed -s configure.in << END
14 /test -z/s,^,#,
17 END
18 aclocal -I cf
19 autoconf
20 autoheader
21 automake
22 (cd doc; makeinfo heimdal.texi)
24 make_proto () {
25 (top=`pwd`
26 cd $1
27 b=`basename $1`
28 perl $top/cf/make-proto.pl -o $2 -p $3 `perl -e '
29 do {
30 $_ = <>;
31 } until(/'$b'_.*SOURCES/);
32 while(/\\\\\s*$/s){
33 $_ = $_ . <>;
35 s/\n//g;
36 s/\\\\//g;
37 s/.*=//;
38 s/\s+/ /g;
39 print;' Makefile.in`)
42 make_proto lib/krb5 krb5-protos.h krb5-private.h
43 make_proto lib/hdb hdb-protos.h hdb-private.h
44 make_proto appl/login login_protos.h /dev/null
46 rm fix-export make-release make-release.el
47 find . -name .cvsignore -print | xargs rm