Backout a74bd5095902, Bug 959405 - Please update the Buri Moz-central, 1.3, 1.2 with...
[gecko.git] / netwerk / sctp / update_sctp.sh
blob4a49cfaacb5beef3b489a84f8234ea1f628471b2
1 #!/bin/bash
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 # assume $1 is the directory with a SVN checkout of the libsctp source
9 # sctp usrlib source is available (via svn) at:
10 # svn co https://sctp-refimpl.googlecode.com/svn/trunk sctpSVN
12 # also assumes we've made *NO* changes to the SCTP sources! If we do, we have to merge by
13 # hand after this process, or use a more complex one.
15 # For example, one could update an sctp library import head, and merge back to default. Or keep a
16 # separate repo with this in it, and pull from there to m-c and merge.
17 if [ "$1" ] ; then
18 export date=`date`
19 export revision=`(cd $1; svnversion -n)`
21 cp $1/KERN/usrsctp/usrsctplib/*.c $1/KERN/usrsctp/usrsctplib/*.h netwerk/sctp/src
22 cp $1/KERN/usrsctp/usrsctplib/netinet/*.c $1/KERN/usrsctp/usrsctplib/netinet/*.h netwerk/sctp/src/netinet
23 cp $1/KERN/usrsctp/usrsctplib/netinet6/*.c $1/KERN/usrsctp/usrsctplib/netinet6/*.h netwerk/sctp/src/netinet6
25 hg addremove netwerk/sctp/src --include "**.c" --include "**.h" --similarity 90
27 echo "sctp updated to version $revision from SVN on $date" >> netwerk/sctp/sctp_update.log
28 echo "sctp updated to version $revision from SVN on $date"
29 echo "WARNING: reapply any local patches!"
30 else
31 echo "usage: $0 path_to_sctpSVN_directory"
32 echo "run from the root of your m-c clone"