Replace an authorsfile with a script
DOSBox maintainer expressed a concern about mail being stored verbatim in the source code. SourceForge does not forward messages to the real mailing addresses by default, therefore it's rather pointless to target them for spamming nowadays, but git-svn can easily take input from as script, so let's just replace the static file.
This commit is contained in:
parent
d4b74d9686
commit
1857980f90
4 changed files with 39 additions and 11 deletions
|
@ -1,5 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2019 Patryk Obara <patryk.obara@gmail.com>
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
# Import script suitable for SVN repositories using standard layout.
|
||||
# Uses git-svn to download whole history, converts svn tag paths to git tags,
|
||||
# filters repo and removes temporary git refs.
|
||||
|
||||
readonly svn_url=https://svn.code.sf.net/p/dosbox/code-0/dosbox
|
||||
|
||||
echo_err () {
|
||||
|
@ -33,10 +40,10 @@ git_svn_clone_dosbox () {
|
|||
"$svn_url" \
|
||||
"$repo_name"
|
||||
|
||||
local -r authors_file=$PWD/svn-dosbox-authors
|
||||
local -r authors_prog=$PWD/svn-authors-prog.sh
|
||||
git -C "$repo_name" svn fetch \
|
||||
--use-log-author \
|
||||
--authors-file="$authors_file"
|
||||
--authors-prog="$authors_prog"
|
||||
}
|
||||
|
||||
# Remove UUID of SVN server to avoid issues in case SourceForge will change
|
||||
|
@ -105,6 +112,13 @@ cleanup () {
|
|||
git -C "$1" branch -D master
|
||||
}
|
||||
|
||||
# Set up remote repo to prepare for push
|
||||
#
|
||||
setup_remote () {
|
||||
git -C "$1" remote add dosbox-staging git@github.com:dreamer/dosbox-staging.git
|
||||
git -C "$1" fetch dosbox-staging
|
||||
}
|
||||
|
||||
# main
|
||||
#
|
||||
main () {
|
||||
|
@ -118,6 +132,7 @@ main () {
|
|||
name_active_branches "$repo"
|
||||
import_svn_tagpaths_as_git_tags "$repo"
|
||||
cleanup "$repo"
|
||||
setup_remote "$repo"
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2019 Patryk Obara <patryk.obara@gmail.com>
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
readonly svn_url=https://svn.code.sf.net/p/dosbox/code-0/dosbox
|
||||
|
||||
list_directories () {
|
||||
|
|
19
scripts/import-from-svn/svn-authors-prog.sh
Executable file
19
scripts/import-from-svn/svn-authors-prog.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
readonly user=$1
|
||||
|
||||
format_author () {
|
||||
echo "$1 <$user@users.sourceforge.net>"
|
||||
}
|
||||
|
||||
case $user in
|
||||
qbix79) format_author "Peter Veenstra" ;;
|
||||
harekiet) format_author "Sjoerd van der Berg" ;;
|
||||
finsterr) format_author "Ulf Wohlers" ;;
|
||||
canadacow) format_author "Dean Beeler" ;;
|
||||
yot) format_author "Felix Jakschitsch" ;;
|
||||
c2woody) format_author "Sebastian Strohhäcker" ;;
|
||||
h-a-l-9000) format_author "Ralf Grillenberger" ;;
|
||||
ripsaw8080) format_author "ripsaw8080" ;;
|
||||
uid83799) format_author "uid83799" ;;
|
||||
esac
|
|
@ -1,9 +0,0 @@
|
|||
qbix79 = Peter Veenstra <qbix79@users.sourceforge.net>
|
||||
harekiet = Sjoerd van der Berg <harekiet@users.sourceforge.net>
|
||||
finsterr = Ulf Wohlers <finsterr@users.sourceforge.net>
|
||||
canadacow = Dean Beeler <canadacow@users.sourceforge.net>
|
||||
yot = Felix Jakschitsch <yot@users.sourceforge.net>
|
||||
c2woody = Sebastian Strohhäcker <c2woody@users.sourceforge.net>
|
||||
h-a-l-9000 = Ralf Grillenberger <h-a-l-9000@users.sourceforge.net>
|
||||
ripsaw8080 = ripsaw8080 <ripsaw8080@users.sourceforge.net>
|
||||
uid83799 = uid83799 <uid83799@users.sourceforge.net>
|
Loading…
Add table
Reference in a new issue