From 0c858eaba1e8dc297ef5fb1276beb8d868a38e04 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Sun, 27 Oct 2024 12:07:54 +0000 Subject: [PATCH] Add git-edit-readme.sh --- git-edit-readme.sh | 27 +++++++++++++++++++++++++++ smeserver-gitutils | 1 - 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 git-edit-readme.sh delete mode 160000 smeserver-gitutils 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