author Henri Sivonen <>
Tue, 06 Nov 2012 13:57:51 +0200
changeset 112406 12288a8a5037d6389ac228d2972b1219102dfd7d
parent 109022 059041691d7f9df8bca1d4b2eb1f7ce904f048a5
child 394285 148e39639161595b007762da1f27efe916d31019
permissions -rwxr-xr-x
Bug 716579 - Let a BOM override HTTP-level charset in the HTML and XML parsers. r=smaug.

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at

# assume $1 is the directory with a SVN checkout of the libsctp source
# sctp usrlib source is available (via svn) at:
# svn co sctpSVN
# also assumes we've made *NO* changes to the SCTP sources!  If we do, we have to merge by
# hand after this process, or use a more complex one.
# For example, one could update an sctp library import head, and merge back to default.  Or keep a
# separate repo with this in it, and pull from there to m-c and merge.
if [ "$1" ] ; then
  export date=`date`
  export revision=`(cd $1; svnversion -n)`

  cp $1/KERN/usrsctp/usrsctplib/*.c $1/KERN/usrsctp/usrsctplib/*.h netwerk/sctp/src
  cp $1/KERN/usrsctp/usrsctplib/netinet/*.c $1/KERN/usrsctp/usrsctplib/netinet/*.h netwerk/sctp/src/netinet
  cp $1/KERN/usrsctp/usrsctplib/netinet6/*.c $1/KERN/usrsctp/usrsctplib/netinet6/*.h netwerk/sctp/src/netinet6

  hg addremove netwerk/sctp/src --include "**.c" --include "**.h" --similarity 90

  echo "sctp updated to version $revision from SVN on $date" >> netwerk/sctp/sctp_update.log
  echo "sctp updated to version $revision from SVN on $date"
  echo "WARNING: reapply any local patches!"
  echo "usage: $0 path_to_sctpSVN_directory"
  echo "run from the root of your m-c clone"