Initial community commit

This commit is contained in:
Jef 2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit fc06254474
16440 changed files with 4239995 additions and 2 deletions

View file

@ -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

View file

@ -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."

View file

@ -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."

View file

@ -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 ../..

View file

@ -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"