mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-02-08 14:37:09 +00:00
Merge branch 'master' of ssh://git.xonotic.org/xonotic
This commit is contained in:
commit
a543153ec5
16
all
16
all
@ -253,11 +253,15 @@ case "$cmd" in
|
|||||||
exists=false
|
exists=false
|
||||||
for d in $repos; do
|
for d in $repos; do
|
||||||
enter "$d0/$d" verbose
|
enter "$d0/$d" verbose
|
||||||
if [ -z "$branch" ]; then
|
|
||||||
b=`repobranch "$d"`
|
|
||||||
else
|
|
||||||
b=$branch
|
b=$branch
|
||||||
fi
|
if [ -n "$b" ] && git rev-parse "refs/heads/$b" >/dev/null 2>&1; then
|
||||||
|
exists=true
|
||||||
|
verbose git checkout "$b"
|
||||||
|
elif [ -n "$b" ] && git rev-parse "refs/remotes/$remote/$b" >/dev/null 2>&1; then
|
||||||
|
exists=true
|
||||||
|
verbose git checkout --track -b "$b" "$remote/$b"
|
||||||
|
else
|
||||||
|
b=`repobranch "$d"`
|
||||||
if git rev-parse "refs/heads/$b" >/dev/null 2>&1; then
|
if git rev-parse "refs/heads/$b" >/dev/null 2>&1; then
|
||||||
exists=true
|
exists=true
|
||||||
verbose git checkout "$b"
|
verbose git checkout "$b"
|
||||||
@ -265,7 +269,9 @@ case "$cmd" in
|
|||||||
exists=true
|
exists=true
|
||||||
verbose git checkout --track -b "$b" "$remote/$b"
|
verbose git checkout --track -b "$b" "$remote/$b"
|
||||||
else
|
else
|
||||||
verbose git checkout "`repobranch "$d"`"
|
echo "WTF? Not even branch $b doesn't exist in $d"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
cd "$d00"
|
cd "$d00"
|
||||||
checkself "$cmd" "$@"
|
checkself "$cmd" "$@"
|
||||||
|
@ -23,11 +23,83 @@ allmaps()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log2spam()
|
||||||
|
{
|
||||||
|
map=$1
|
||||||
|
url=$2
|
||||||
|
branch=$3
|
||||||
|
hash=$4
|
||||||
|
|
||||||
|
branch=${branch##refs/heads/}
|
||||||
|
branch=${branch##refs/remotes/}
|
||||||
|
branch=${branch##origin/}
|
||||||
|
|
||||||
|
s_time=
|
||||||
|
s_samplesize=
|
||||||
|
s_failshaders=
|
||||||
|
s_leaked=
|
||||||
|
s_error=
|
||||||
|
|
||||||
|
while IFS= read -r L; do
|
||||||
|
case "$L" in
|
||||||
|
*\ seconds\ elapsed)
|
||||||
|
s_time=$(($s_time + ${L%% seconds elapsed}))
|
||||||
|
;;
|
||||||
|
WARNING:\ surface\ at\ *\ too\ large\ for\ desired\ samplesize*)
|
||||||
|
s=${L##* }
|
||||||
|
if [ -z "$s_samplesize" ] || [ "$s" -gt "$s_samplesize" ]; then
|
||||||
|
s_samplesize=$s
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
WARNING:\ Couldn\'t\ find\ image\ for\ shader\ textures/NULL)
|
||||||
|
# radiant stupid
|
||||||
|
;;
|
||||||
|
WARNING:\ Couldn\'t\ find\ image\ for\ shader\ *)
|
||||||
|
s_failshaders="$s_failshaders ${L##* }"
|
||||||
|
;;
|
||||||
|
'******* leaked *******')
|
||||||
|
s_leaked=1
|
||||||
|
;;
|
||||||
|
'************ ERROR ************')
|
||||||
|
IFS= read -r s_error
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
s_failshaders=`echo "$s_failshaders" | sed "s, textures/, ,g"`
|
||||||
|
s_failshaders=${s_failshaders# }
|
||||||
|
if [ -n "$s_error" ]; then
|
||||||
|
echo -n "[$branch] 4failed"
|
||||||
|
else
|
||||||
|
echo -n "[$branch] finished"
|
||||||
|
fi
|
||||||
|
echo -n " map compile of $map ($url): $s_time sec"
|
||||||
|
if [ -n "$s_samplesize" ]; then
|
||||||
|
echo -n ", FIX samplesize >= $s_samplesize"
|
||||||
|
fi
|
||||||
|
if [ -n "$s_failshaders" ]; then
|
||||||
|
if [ -n "`echo "$s_failshaders" | cut -d ' ' -f 4-`" ]; then
|
||||||
|
s_failshaders="`echo "$s_failshaders" | cut -d ' ' -f 1-3`..."
|
||||||
|
fi
|
||||||
|
echo -n ", FIX shaders $s_failshaders"
|
||||||
|
fi
|
||||||
|
if [ -n "$s_leaked" ]; then
|
||||||
|
echo -n ", FIX LEAK"
|
||||||
|
fi
|
||||||
|
if [ -n "$s_error" ]; then
|
||||||
|
s_error=`echo "$s_error" | sed "s,$PWD/\?,,g"`
|
||||||
|
echo -n ", ERROR: $s_error"
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
buildthemap()
|
buildthemap()
|
||||||
{
|
{
|
||||||
bspdir=$1
|
REFNAME=$1
|
||||||
M=$2
|
HASH=$2
|
||||||
blobhash=$3
|
url=$3
|
||||||
|
bspdir=$4
|
||||||
|
M=$5
|
||||||
|
blobhash=$6
|
||||||
if [ -f "$bspdir/$M-$blobhash.pk3" ]; then
|
if [ -f "$bspdir/$M-$blobhash.pk3" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
@ -37,6 +109,9 @@ buildthemap()
|
|||||||
)
|
)
|
||||||
zip -9r "$bspdir/$M-$blobhash.pk3" "maps/$M.bsp" "maps/$M.log" "maps/$M/" "maps/$M.lin" "gfx/${M}_mini.tga"
|
zip -9r "$bspdir/$M-$blobhash.pk3" "maps/$M.bsp" "maps/$M.log" "maps/$M/" "maps/$M.lin" "gfx/${M}_mini.tga"
|
||||||
ln -snf "../$M-$blobhash.pk3" "$bspdir/latest/$M.pk3" # from ALL branches, so beware!
|
ln -snf "../$M-$blobhash.pk3" "$bspdir/latest/$M.pk3" # from ALL branches, so beware!
|
||||||
|
if [ -n "$IRCSPAM" ]; then
|
||||||
|
cat "maps/$M.log" | log2spam "$M" "$url$M-$blobhash.pk3" "$REFNAME" "$HASH" | $IRCSPAM
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
getthemap()
|
getthemap()
|
||||||
@ -70,7 +145,7 @@ case "$1" in
|
|||||||
git reset --hard
|
git reset --hard
|
||||||
git clean -xfd
|
git clean -xfd
|
||||||
git checkout "$HASH"
|
git checkout "$HASH"
|
||||||
allmaps buildthemap "$bspoutdir"
|
allmaps buildthemap "$REFNAME" "$HASH" "$url" "$bspoutdir"
|
||||||
done
|
done
|
||||||
git checkout master
|
git checkout master
|
||||||
;;
|
;;
|
||||||
@ -87,6 +162,9 @@ case "$1" in
|
|||||||
mkdir -p "$bspdir"
|
mkdir -p "$bspdir"
|
||||||
cd "$bspdir"
|
cd "$bspdir"
|
||||||
rm -f *-????????????????????????????????????????-????????????????????????????????????????.pk3
|
rm -f *-????????????????????????????????????????-????????????????????????????????????????.pk3
|
||||||
wget -r -l1 -A "*.pk3" -N --no-parent --no-directories "$url/latest"
|
wget -r -l1 -A "*.pk3" -N --no-parent --no-directories "$url""latest"
|
||||||
|
;;
|
||||||
|
log2spam-test)
|
||||||
|
log2spam "mapname" "http://mapurl" "branch" "commit"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user