summaryrefslogtreecommitdiffstats
path: root/third_party/libsrtp/update_srtp.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /third_party/libsrtp/update_srtp.sh
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libsrtp/update_srtp.sh')
-rw-r--r--third_party/libsrtp/update_srtp.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/third_party/libsrtp/update_srtp.sh b/third_party/libsrtp/update_srtp.sh
new file mode 100644
index 0000000000..36e1e72a07
--- /dev/null
+++ b/third_party/libsrtp/update_srtp.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+#
+# 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 http://mozilla.org/MPL/2.0/.
+
+# assume $1 is the directory with a git checkout of the libsrtp source
+#
+# srtp source is available at: https://github.com/cisco/libsrtp/
+#
+# also assumes we've made *NO* changes to the SRTP 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 srtp 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
+ DATE=`date`
+ REVISION=`(cd $1; git log --pretty=oneline | head -1 | cut -c 1-40)`
+ cp -rf $1/srtp $1/crypto $1/include $1/test $1/LICENSE $1/CHANGES $1/README.md third_party/libsrtp/src
+
+ hg addremove third_party/libsrtp/src --include "third_party/libsrtp/src/VERSION" --include "third_party/libsrtp/src/LICENSE" --include "third_party/libsrtp/src/README.md" --include "**.c" --include "**.h" --similarity 90
+
+ echo "srtp updated to revision $REVISION from git on $DATE" >> third_party/libsrtp/srtp_update.log
+ echo "srtp updated to revision $REVISION from git on $DATE"
+ echo "WARNING: reapply any local patches!"
+else
+ echo "usage: $0 path_to_srtp_directory"
+ echo "run from the root of your m-c clone"
+fi