kocotian.pl

My personal webpage sources
git clone git://git.kocotian.pl/kocotian.pl.git
Log | Files | Refs | README | LICENSE

commit fef34eea18690b1cab4bb505c7bbab7ba37aef97
parent e370f19e939ddbdd734e289d75d1917f6125ab2d
Author: kocotian <kocotian@kocotian.pl>
Date:   Tue,  6 Apr 2021 14:57:01 +0200

mkgit()

Diffstat:
Afunctions/git.h | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git a/functions/git.h b/functions/git.h @@ -0,0 +1,28 @@ +#define GITSERVER "git.kocotian.pl" + +#define mkgit(REPONAME) \ + write(1, \ + "<blockquote><h4>" #REPONAME " on my git server:</h4>" \ + "<p>" \ + "Static webpage: " \ + "<a target=\"_blank\" href=\"https://" GITSERVER "/" #REPONAME "\">" \ + GITSERVER "/" #REPONAME \ + "</a>" \ + "<br />\n" \ + "Clone with: " \ + "<code>" \ + "git clone git://" GITSERVER "/" #REPONAME ".git" \ + "</code>" \ + "</p></blockquote>", sizeof("<blockquote><p>" \ + "<h4>" #REPONAME " on my git server:</h4>" \ + "Static webpage:" \ + "<a target=\"_blank\" href=\"https://" GITSERVER "/" #REPONAME "\">" \ + GITSERVER "/" #REPONAME \ + "</a>" \ + "<br />\n" \ + "Clone with: " \ + "<code>" \ + "git clone git://" GITSERVER "/" #REPONAME ".git" \ + "</code>" \ + "</p></blockquote>")\ + );