diff --git a/git-edit-readme.sh b/git-edit-readme.sh new file mode 100755 index 0000000..7d4f7c1 --- /dev/null +++ b/git-edit-readme.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# +# git-edit-readme.sh +# +# Edit the README.md for an smeserver package and alter the bugzilla link +# +# $1 = package name +# +cd ~/GITFiles/smeserver +if [ -d "$1" ]; then + cd "$1" + git pull +else + git clone "https://src.koozali.org/smeserver/$1" + cd "$1" +fi + +# Edit the README.md file +if [ -f "README.md" ]; then + sed -i '/Show list of outstanding bugs: \[here\]/c\Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?quicksearch='"$1"')' README.md + git status + git add --all + git commit -m "Update readme bugzilla link to show all outstanding bugs" + git push +else + echo "README.md not found in $1" +fi \ No newline at end of file diff --git a/smeserver-gitutils b/smeserver-gitutils deleted file mode 160000 index fb6a44f..0000000 --- a/smeserver-gitutils +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fb6a44f132b39eee812b9e47256212d4dbd5d1e5