summarylogtreecommitdiffstats
path: root/update-eula
diff options
context:
space:
mode:
Diffstat (limited to 'update-eula')
-rwxr-xr-xupdate-eula30
1 files changed, 0 insertions, 30 deletions
diff --git a/update-eula b/update-eula
deleted file mode 100755
index 2c17fed0299e..000000000000
--- a/update-eula
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-# This script is meant to be used by the maintainers to keep the EULA up to
-# date. It can also be used as a pre-push hook to automate things:
-#
-# ln -s -f ../../update-eula .git/hooks/pre-push
-#
-TOS_URL="https://unity3d.com/legal/terms-of-service"
-TOS_SW_URL="$TOS_URL/software"
-
-# Refer users to the original EULA
-cat > EULA <<EOF
-*** This is only the Software section of Unity's Terms of Service
-*** for the complete Terms Of Service refer to ($TOS_URL)
-
-EOF
-
-# Download updated EULA, convert to plain text
-curl -s $TOS_SW_URL \
- | xmllint --html --xpath "//section[@id='section-content']" - 2> /dev/null \
- | elinks -dump \
- | sed '/Quick jump/,$d' \
- | sed -r ':loop; s/([^ ]) +([^ ])/\1 \2/g; t loop' \
- | sed '/Quick jump/,$d' >> EULA
-
-# Check for changes (pre-push hook)
-if [ -n "$(git diff EULA)" ]; then
- echo "EULA has changed."
- exit 1
-fi
-