summaryrefslogtreecommitdiffstats
path: root/media/libnestegg/update.sh
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /media/libnestegg/update.sh
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/libnestegg/update.sh')
-rwxr-xr-xmedia/libnestegg/update.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/media/libnestegg/update.sh b/media/libnestegg/update.sh
new file mode 100755
index 000000000..6145ef064
--- /dev/null
+++ b/media/libnestegg/update.sh
@@ -0,0 +1,22 @@
+# Usage: sh update.sh <upstream_src_directory>
+cp $1/include/nestegg/nestegg.h include
+cp $1/src/nestegg.c src
+cp $1/LICENSE .
+cp $1/README.md .
+cp $1/AUTHORS .
+if [ -d $1/.git ]; then
+ rev=$(cd $1 && git rev-parse --verify HEAD)
+ dirty=$(cd $1 && git diff-index --name-only HEAD)
+fi
+
+if [ -n "$rev" ]; then
+ version=$rev
+ if [ -n "$dirty" ]; then
+ version=$version-dirty
+ echo "WARNING: updating from a dirty git repository."
+ fi
+ sed -i "/The git commit ID used was/ s/[0-9a-f]\+\(-dirty\)\?\./$version./" README_MOZILLA
+else
+ echo "Remember to update README_MOZILLA with the version details."
+fi
+