summaryrefslogtreecommitdiffstats
path: root/third_party/cups/update.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /third_party/cups/update.sh
parentInitial commit. (diff)
downloadthunderbird-upstream.tar.xz
thunderbird-upstream.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/cups/update.sh')
-rwxr-xr-xthird_party/cups/update.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/third_party/cups/update.sh b/third_party/cups/update.sh
new file mode 100755
index 0000000000..22656d4315
--- /dev/null
+++ b/third_party/cups/update.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# Script to update the mozilla in-tree copy of CUPS headers
+# Run this within the /third_party/cups directory of the source tree.
+
+MY_TEMP_DIR=`mktemp -d -t cups_update.XXXXXX` || exit 1
+
+COMMIT='82e3ee0e3230287b76a76fb8f16b92ca6e50b444'
+FILES='cups/cups.h cups/array.h cups/file.h cups/http.h cups/ipp.h cups/language.h cups/pwg.h cups/versioning.h'
+git clone git://github.com/apple/cups.git "$MY_TEMP_DIR" --depth 1
+git -C "$MY_TEMP_DIR" fetch origin "$COMMIT"
+git -C "$MY_TEMP_DIR" reset --hard "$COMMIT"
+
+mkdir -p include/cups 2> /dev/null
+rm -rf include/cups/*
+
+for FILE in $FILES ; do
+ mv "$MY_TEMP_DIR/$FILE" "include/$FILE"
+done
+
+rm -rf "$MY_TEMP_DIR"
+
+echo "###"
+echo "### Updated cups to $COMMIT."
+echo "### Remember to verify and commit the changes to source control!"
+echo "###"
+