lorikeet-heimdal: Netbios Domain as Realm HACK...
[abartlet/lorikeet-heimdal.git/.git] / IMPORT-HEIMDAL.sh
1 #!/bin/sh
2
3 hpath=svn://svn.h5l.se/heimdal/trunk/heimdal
4 spath=svn+ssh://svn.samba.org/data/svn/lorikeet/trunk/heimdal
5
6 rm -rf heimdal-import heimdal-lorikeet
7
8 l=`pwd`/log
9 echo "heimdal import `date`" > ${l}
10 svn checkout $hpath heimdal-import >> ${l} || exit 1
11 svn checkout $spath heimdal-lorikeet >> ${l} || exit 1
12 (cd heimdal-lorikeet && find . -type f -a ! -path '*/.svn/*' | xargs rm)
13 (cd heimdal-lorikeet && \
14   svn update heimdal-lorikeet.diff HEIMDAL-LICENCE.txt IMPORT-HEIMDAL.sh)
15 cd heimdal-import || exit 1
16 hsvnrev=`svn info  | awk '/^Revision:/ { print $2; }'`
17 test "X$hsvnrev" = "X" && exit 1
18 (find . -name '.svn' -a -type d | xargs rm -r)
19 (tar cf - *) | (cd ../heimdal-lorikeet && tar xf - ) || exit 1
20 cd ../heimdal-lorikeet
21 svn status > status
22 grep '^\?' status | cut -b2- | xargs svn add >> ${l}
23 grep '^\!' status | cut -b2- | xargs svn rm >> ${l}
24 rm status
25 svn rm status
26 (cd lib/roken && perl -pi -e 's,"roken.h",\<roken.h\>,g' *.c)
27 perl -pi -e 's@AC_INIT\(\[[^\]]*\],\[([^\]]*)\],\[([^\)]*)\]\)@AC_INIT([Lorikeet-Heimdal, modified for Samba4],[\1-samba],[samba-technical\@samba.org])@' configure.in || exit 1
28
29
30 echo "now run:"
31 echo "cd heimdal-lorikeet"
32 echo "patch -p0 < heimdal-lorikeet.diff"
33 echo "and fix up the damage"
34 echo "svn commit -m \"Merged with Heimdal svn revision $hsvnrev\""
35
36 exit 0