aboutsummaryrefslogtreecommitdiff
path: root/Src/external_dependencies/openmpt-trunk/build/svn
diff options
context:
space:
mode:
Diffstat (limited to 'Src/external_dependencies/openmpt-trunk/build/svn')
-rw-r--r--Src/external_dependencies/openmpt-trunk/build/svn/apply_auto-props.sh20
-rw-r--r--Src/external_dependencies/openmpt-trunk/build/svn/do_libopenmpt_release.sh33
-rw-r--r--Src/external_dependencies/openmpt-trunk/build/svn/do_libopenmpt_release_rc.sh13
-rw-r--r--Src/external_dependencies/openmpt-trunk/build/svn/run_clang-format.sh23
-rw-r--r--Src/external_dependencies/openmpt-trunk/build/svn/test_patch.sh31
5 files changed, 120 insertions, 0 deletions
diff --git a/Src/external_dependencies/openmpt-trunk/build/svn/apply_auto-props.sh b/Src/external_dependencies/openmpt-trunk/build/svn/apply_auto-props.sh
new file mode 100644
index 00000000..0fe9cef7
--- /dev/null
+++ b/Src/external_dependencies/openmpt-trunk/build/svn/apply_auto-props.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+#
+# build/svn/apply_auto-props.sh
+# -----------------------------
+# Purpose: Script to apply svn:auto-props to all files that are already in the working copy.
+# Notes : This script requires a current svn_apply_autoprops.py from subversion trunk to be in path.
+# (see <https://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/svn_apply_autoprops.py>)
+# The svn_apply_autoprops which comes with current subversion 1.8.9 will NOT work.
+# This script will recursively apply svn:auto-props (as gathered from the current directory)
+# to all files in and below the current directory.
+# Authors: OpenMPT Devs
+# The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
+#
+
+set -e
+echo "[auto-props]" > auto-props.list
+svn pg svn:auto-props >> auto-props.list
+svn_apply_autoprops.py --config auto-props.list > auto-props.log 2>&1
+rm auto-props.list
diff --git a/Src/external_dependencies/openmpt-trunk/build/svn/do_libopenmpt_release.sh b/Src/external_dependencies/openmpt-trunk/build/svn/do_libopenmpt_release.sh
new file mode 100644
index 00000000..93d3f057
--- /dev/null
+++ b/Src/external_dependencies/openmpt-trunk/build/svn/do_libopenmpt_release.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+
+set -e
+
+svn up
+
+#build/update_openmpt_version.sh bumpbuild
+#VER_MAJOR=$(cat common/versionNumber.h | grep "VER_MAJORMAJOR " | awk '{print $3;}')
+#VER_MINOR=$(cat common/versionNumber.h | grep "VER_MAJOR " | awk '{print $3;}')
+#VER_PATCH=$(cat common/versionNumber.h | grep "VER_MINOR " | awk '{print $3;}')
+#VER_BUILD=$(cat common/versionNumber.h | grep "VER_MINORMINOR " | awk '{print $3;}')
+#svn ci -m "[Mod] OpenMPT: Version is now ${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}.${VER_BUILD}"
+
+build/update_libopenmpt_version.sh release
+svn ci -m "[Mod] libopenmpt: Prepare for release."
+svn up
+NEWVER=$(make distversion-pure)
+NEWREV=$(svn info --xml . | xpath -e '/info/entry/commit/@revision' -q | sed 's/revision//g' | tr '"' ' ' | tr '=' ' ' | sed 's/ //g')
+svn cp -m "tag libopenmpt-${NEWVER}" -r ${NEWREV} https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.30 https://source.openmpt.org/svn/openmpt/tags/libopenmpt-${NEWVER}
+build/update_libopenmpt_version.sh bumppatch
+build/update_libopenmpt_version.sh bumpltrev
+svn ci -m "[Mod] libopenmpt: Bump patch version."
+
+#build/update_openmpt_version.sh bumpbuild
+#VER_MAJOR=$(cat common/versionNumber.h | grep "VER_MAJORMAJOR " | awk '{print $3;}')
+#VER_MINOR=$(cat common/versionNumber.h | grep "VER_MAJOR " | awk '{print $3;}')
+#VER_PATCH=$(cat common/versionNumber.h | grep "VER_MINOR " | awk '{print $3;}')
+#VER_BUILD=$(cat common/versionNumber.h | grep "VER_MINORMINOR " | awk '{print $3;}')
+#svn ci -m "[Mod] OpenMPT: Version is now ${VER_MAJOR}.${VER_MINOR}.${VER_PATCH}.${VER_BUILD}"
+
+echo "ALL DONE."
+echo "run './release-0.6.sh $NEWVER +release' in a website checkout after buildbot has finished."
+
diff --git a/Src/external_dependencies/openmpt-trunk/build/svn/do_libopenmpt_release_rc.sh b/Src/external_dependencies/openmpt-trunk/build/svn/do_libopenmpt_release_rc.sh
new file mode 100644
index 00000000..34c5530d
--- /dev/null
+++ b/Src/external_dependencies/openmpt-trunk/build/svn/do_libopenmpt_release_rc.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+set -e
+
+svn up
+
+NEWVER=$(make distversion-pure)
+NEWREV=$(svn info --xml . | xpath -e '/info/entry/commit/@revision' -q | sed 's/revision//g' | tr '"' ' ' | tr '=' ' ' | sed 's/ //g')
+svn cp -m "tag libopenmpt-${NEWVER}" -r ${NEWREV} https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.30 https://source.openmpt.org/svn/openmpt/tags/libopenmpt-${NEWVER}
+TAGREV=$(svn info --xml https://source.openmpt.org/svn/openmpt/tags/libopenmpt-${NEWVER} | xpath -e '/info/entry/commit/@revision' -q | sed 's/revision//g' | tr '"' ' ' | tr '=' ' ' | sed 's/ //g')
+
+echo "ALL DONE."
+echo "run './release-0.6.sh $NEWVER +r${TAGREV}' in a website checkout after buildbot has finished."
diff --git a/Src/external_dependencies/openmpt-trunk/build/svn/run_clang-format.sh b/Src/external_dependencies/openmpt-trunk/build/svn/run_clang-format.sh
new file mode 100644
index 00000000..29cbf141
--- /dev/null
+++ b/Src/external_dependencies/openmpt-trunk/build/svn/run_clang-format.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+set -e
+
+#cd libopenmpt
+# clang-format-13 -i *.hpp *.cpp *.h
+#cd ..
+
+cd examples
+ clang-format-13 -i *.cpp *.c
+cd ..
+
+#cd openmpt123
+# clang-format-13 -i *.hpp *.cpp
+#cd ..
+
+cd src/mpt
+ find . -type f -iname '*\.hpp' | xargs clang-format-13 -i
+cd ../..
+
+cd src/openmpt
+ find . -type f -iname '*\.cpp' | xargs --no-run-if-empty clang-format-13 -i
+ find . -type f -iname '*\.hpp' | xargs --no-run-if-empty clang-format-13 -i
+cd ../..
diff --git a/Src/external_dependencies/openmpt-trunk/build/svn/test_patch.sh b/Src/external_dependencies/openmpt-trunk/build/svn/test_patch.sh
new file mode 100644
index 00000000..be55012f
--- /dev/null
+++ b/Src/external_dependencies/openmpt-trunk/build/svn/test_patch.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+
+set -e
+
+rm -rf .testpatch
+
+mkdir .testpatch
+
+cd .testpatch
+
+svn co $(svn info .. | grep ^URL | awk '{print $2;}') .
+
+curl "$1" | patch -p0 --binary
+
+make STRICT=1
+
+make STRICT=1 check
+
+make STRICT=1 clean
+
+make STRICT=1 CONFIG=clang
+
+make STRICT=1 CONFIG=clang check
+
+make STRICT=1 CONFIG=clang clean
+
+cd ..
+
+rm -rf .testpatch
+
+echo "patch OK"