From e6d407b70ca4bc5b9cf59a1287b43f233dc6f56a Mon Sep 17 00:00:00 2001 From: "Scott C. MacCallum" Date: Thu, 2 Mar 2023 15:11:32 +0000 Subject: [PATCH] Adding version control file --- push-website.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 push-website.sh diff --git a/push-website.sh b/push-website.sh new file mode 100755 index 0000000..7ecaa10 --- /dev/null +++ b/push-website.sh @@ -0,0 +1,36 @@ +#!/usr/bin/bash + +# push-website.sh +# This script does a git commit and push a Git repository +# Copyright (C) 2020 Scott C. MacCallum +# scm@sdf.org + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + + +cp /meta/www/s/scm/index.html /meta/s/scm/web +cp /meta/www/s/scm/posts/2023/02.html /meta/s/scm/web/posts/2023 +cp /meta/www/s/scm/posts/2023/03.html /meta/s/scm/web/posts/2023 + +cd /meta/s/scm/web + +git add /meta/s/scm/web/index.html +git add /meta/s/scm/web/posts/2023/02.html +git add /meta/s/scm/web/posts/2023/03.html + +git commit -m "Committing edited website files" + +git push + +exit 0