From 5bc0b58a08579b2e8884e9ddbd97aaa5e862e2bf Mon Sep 17 00:00:00 2001 From: Someone Date: Tue, 5 May 2020 12:57:39 +0200 Subject: [PATCH] Updated copyright notice and formatting. --- filterBranchEnvEdit.sh | 54 +++++++++++++++++++++--------------------- filterBranchRMFiles.sh | 11 ++++----- ggcAll.sh | 2 +- gpullAll.sh | 3 +-- gresetAll.sh | 3 +-- setup.sh | 3 +-- 6 files changed, 36 insertions(+), 40 deletions(-) diff --git a/filterBranchEnvEdit.sh b/filterBranchEnvEdit.sh index 3de4970..82d0fed 100755 --- a/filterBranchEnvEdit.sh +++ b/filterBranchEnvEdit.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2011-2016 by Jan Vales (Someone ) +# Copyright 2011-2020 by Jan Vales (aka. Someone ) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,30 +20,30 @@ SLEEPTIME=5 echo "Will rewrite name, email and commitTS in repo `pwd` in ${SLEEPTIME} sec." sleep $SLEEPTIME -git filter-branch -f --env-filter ' - if [ "$GIT_AUTHOR_EMAIL" = "git@dev.somenet.org" ]; then - export GIT_AUTHOR_EMAIL="git@git.somenet.org" - export GIT_AUTHOR_NAME="git" - fi - if [ "$GIT_AUTHOR_EMAIL" = "you@example.com" ]; then - export GIT_AUTHOR_EMAIL="jan@jvales.net" - export GIT_AUTHOR_NAME="Jan Vales" - fi - if [ "$GIT_AUTHOR_EMAIL" = "you@localhost" ]; then - export GIT_AUTHOR_EMAIL="jan@jvales.net" - export GIT_AUTHOR_NAME="Jan Vales" - fi - if [ "$GIT_AUTHOR_EMAIL" = "root@localhost" ]; then - export GIT_AUTHOR_EMAIL="jan@jvales.net" - export GIT_AUTHOR_NAME="Jan Vales" - fi -# if [ "$GIT_AUTHOR_EMAIL" = "jan@jvales.net" ]; then -# export GIT_AUTHOR_EMAIL="someone@somenet.org" -# export GIT_AUTHOR_NAME="Someone" -# fi - export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" - export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" - export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" -# export GIT_AUTHOR_DATE="$GIT_COMMITTER_DATE" - ' -- --all +FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch -f --env-filter ' +# if [ "$GIT_AUTHOR_NAME" = "root" ]; then +# export GIT_AUTHOR_EMAIL="git@git.somenet.org" +# export GIT_AUTHOR_NAME="git" +# fi + if [ "$GIT_AUTHOR_NAME" = "root" ]; then + export GIT_AUTHOR_EMAIL="someone@somenet.org" + export GIT_AUTHOR_NAME="Someone" + fi + if [ "$GIT_AUTHOR_EMAIL" = "you@example.com" ]; then + export GIT_AUTHOR_EMAIL="someone@somenet.org" + export GIT_AUTHOR_NAME="Someone" + fi + if [ "$GIT_AUTHOR_EMAIL" = "jan@jvales.net" ]; then + export GIT_AUTHOR_EMAIL="someone@somenet.org" + export GIT_AUTHOR_NAME="Someone" + fi +# if [ "$GIT_AUTHOR_EMAIL" = "someone@somenet.org" ]; then +# export GIT_AUTHOR_EMAIL="jan@jvales.net" +# export GIT_AUTHOR_NAME="Jan Vales" +# fi + export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" + export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" + export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" +# export GIT_AUTHOR_DATE="$GIT_COMMITTER_DATE" + ' -- --all diff --git a/filterBranchRMFiles.sh b/filterBranchRMFiles.sh index 211d141..c93b7d7 100755 --- a/filterBranchRMFiles.sh +++ b/filterBranchRMFiles.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2011 - 2016 by Jan Vales (Someone ) +# Copyright 2011-2020 by Jan Vales (aka. Someone ) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,8 +16,8 @@ # if [[ $1 == "" ]] ; then - echo "no file-/dir-name given!" - exit 1 + echo "no file-/dir-name given!" + exit 1 fi SLEEPTIME=5 @@ -25,6 +25,5 @@ echo "Will rewrite branch in repo `pwd` in ${SLEEPTIME} sec." sleep $SLEEPTIME git filter-branch -f --tag-name-filter cat --index-filter ' - git rm --cached --ignore-unmatch -q -rf '$1' - ' -- --all - + git rm --cached --ignore-unmatch -q -rf '$1' + ' -- --all diff --git a/ggcAll.sh b/ggcAll.sh index f0f90b0..ddc07bf 100755 --- a/ggcAll.sh +++ b/ggcAll.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2011 by Jan Vales (Someone ) +# Copyright 2011-2020 by Jan Vales (aka. Someone ) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/gpullAll.sh b/gpullAll.sh index b7a66e7..3c0e92e 100755 --- a/gpullAll.sh +++ b/gpullAll.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2011 by Jan Vales (Someone ) +# Copyright 2011-2020 by Jan Vales (aka. Someone ) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,4 +20,3 @@ echo "Will run -git pull- on all repos in `pwd` in ${SLEEPTIME} sec." sleep $SLEEPTIME find . -path '*.git' -type d -execdir echo "------------------------------------------" \; -execdir pwd \; -execdir git pull \; - diff --git a/gresetAll.sh b/gresetAll.sh index 1fe8550..406a479 100755 --- a/gresetAll.sh +++ b/gresetAll.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2011 by Jan Vales (Someone ) +# Copyright 2011-2020 by Jan Vales (aka. Someone ) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -21,4 +21,3 @@ echo "THIS IS POTENTIONALLY FATAL, KNOW WHAT YOU ARE DOING!" sleep $SLEEPTIME find . -path '*.git' -type d -execdir echo "------------------------------------------" \; -execdir pwd \; -execdir git reset --hard \; - diff --git a/setup.sh b/setup.sh index 5fd30f7..296ba63 100755 --- a/setup.sh +++ b/setup.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2011 by Jan Vales (Someone ) +# Copyright 2011-2020 by Jan Vales (aka. Someone ) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,4 +24,3 @@ sleep $SLEEPTIME ln -snf "${SCRIPT_HOME}/gpullAll.sh" gpullAll.sh ln -snf "${SCRIPT_HOME}/ggcAll.sh" ggcAll.sh ln -snf "${SCRIPT_HOME}/gresetAll.sh" gresetAll.sh - -- 2.43.0