nightly build, scripts: Remove svn support

Remove deprecated svn support.
This commit is contained in:
Gleb Chesnokov
2024-04-26 17:00:51 +03:00
parent f4840e9579
commit 56bb6c0fa6
4 changed files with 10 additions and 47 deletions

View File

@@ -48,16 +48,7 @@ done
for d in "${@-.}"; do
(
if cd "$d"; then
if [ -e .svn ]; then
if ! type -p svn >&/dev/null; then
echo "$0: svn: not found."
exit 0
fi
"$(dirname "$0")"/list-non-source-files |
while read -r f; do
if ! word_in_list "$f" "${exclude[@]}"; then rm -rf -- "$f"; fi;
done
elif [ -e .git ] || [ -e ../.git ]; then
if [ -e .git ] || [ -e ../.git ]; then
if ! type -p git >&/dev/null; then
echo "$0: git: not found."
exit 0

View File

@@ -18,11 +18,7 @@ prefix_matches() {
for d in "${@-.}"; do
(
cd "$d" &&
if [ -e .svn ]; then
svn status --no-ignore |
grep '^[I?] ' |
cut -c8-
elif git branch >&/dev/null; then
if git branch >&/dev/null; then
exec 3< <(find . -type f | cut -c3- | grep -v '^\.git/' | sort)
git ls-tree -r HEAD | cut -f2 -d' ' | sort |
while read -r f; do

View File

@@ -5,25 +5,12 @@ list_source_files() {
d="$(cd "$1" && echo "$PWD")"
r="$d"
while [ "$r" != "/" ] && [ ! -e "$r/.svn" ] && [ ! -e "$r/.git" ] &&
while [ "$r" != "/" ] && [ ! -e "$r/.git" ] &&
[ ! -e "$r/.hg" ]; do
r="$(dirname "$r")"
done
if [ -e "$r/.svn" ]; then
(
cd "$d" || exit $?
svn status -v | \
grep -vE '^[D?]|^Performing|^$' | \
cut -c3- | \
while read -r a b c f; do
if [ -f "$f" ] || [ -h "$f" ]; then
echo "$a $b $c" >/dev/null
echo "$f"
fi
done
)
elif [ -e "$r/.git" ]; then
if [ -e "$r/.git" ]; then
subdir="${d#"${r}"}"
if [ "$r" != "" ]; then
( cd "$d" && git ls-tree --name-only -r HEAD ) | sed "s|^$subdir/||"