From 38e7ccea52180942766ae143f6122788361e23c7 Mon Sep 17 00:00:00 2001 From: sloum Date: Sat, 8 Oct 2022 20:43:47 +0000 Subject: [PATCH] Adds license info and copyright statement to each source file --- bookmarks.go | 15 +++++++++++++++ client.go | 17 ++++++++++++++++- cmdparse/lexer.go | 15 +++++++++++++++ cmdparse/parser.go | 16 ++++++++++++++++ config/lexer.go | 15 +++++++++++++++ config/parser.go | 15 +++++++++++++++ cui/cui.go | 15 +++++++++++++++ defaults.go | 15 +++++++++++++++ finger/finger.go | 15 +++++++++++++++ footbar.go | 15 +++++++++++++++ gemini/gemini.go | 15 +++++++++++++++ gopher/gopher.go | 16 ++++++++++++++++ headbar.go | 15 +++++++++++++++ help.go | 15 +++++++++++++++ http/http_render.go | 15 +++++++++++++++ http/open_browser_darwin.go | 16 ++++++++++++++++ http/open_browser_other.go | 16 ++++++++++++++++ http/open_browser_windows.go | 16 ++++++++++++++++ local/local.go | 15 +++++++++++++++ main.go | 30 +++++++++++++++--------------- page.go | 15 +++++++++++++++ page_test.go | 15 +++++++++++++++ pages.go | 15 +++++++++++++++ tdiv/tdiv.go | 15 +++++++++++++++ telnet/telnet.go | 16 ++++++++++++++++ termios/consts_linux.go | 16 ++++++++++++++++ termios/consts_nonlinux.go | 16 ++++++++++++++++ termios/termios.go | 15 +++++++++++++++ url.go | 15 +++++++++++++++ 29 files changed, 444 insertions(+), 16 deletions(-) diff --git a/bookmarks.go b/bookmarks.go index 0268378..4c82e8d 100644 --- a/bookmarks.go +++ b/bookmarks.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package main import ( diff --git a/client.go b/client.go index 082bc3a..19cad0b 100644 --- a/client.go +++ b/client.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package main import ( @@ -1276,4 +1291,4 @@ func getMaxWidth(options map[string]string) int { out = 10 } return out -} \ No newline at end of file +} diff --git a/cmdparse/lexer.go b/cmdparse/lexer.go index 448bbbf..54000a6 100644 --- a/cmdparse/lexer.go +++ b/cmdparse/lexer.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package cmdparse import ( diff --git a/cmdparse/parser.go b/cmdparse/parser.go index 39e08ee..22967b1 100644 --- a/cmdparse/parser.go +++ b/cmdparse/parser.go @@ -1,3 +1,19 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ + package cmdparse import ( diff --git a/config/lexer.go b/config/lexer.go index 74e39c7..5b95d1a 100644 --- a/config/lexer.go +++ b/config/lexer.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package config import ( diff --git a/config/parser.go b/config/parser.go index 5f69ebf..bb54b65 100644 --- a/config/parser.go +++ b/config/parser.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package config import ( diff --git a/cui/cui.go b/cui/cui.go index 1ed29d7..a4ce66c 100644 --- a/cui/cui.go +++ b/cui/cui.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package cui import ( diff --git a/defaults.go b/defaults.go index 92feaad..975f1ed 100644 --- a/defaults.go +++ b/defaults.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package main import ( diff --git a/finger/finger.go b/finger/finger.go index ac2ca80..381cda1 100644 --- a/finger/finger.go +++ b/finger/finger.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package finger import ( diff --git a/footbar.go b/footbar.go index 94140f5..e9ffe2f 100644 --- a/footbar.go +++ b/footbar.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package main import ( diff --git a/gemini/gemini.go b/gemini/gemini.go index 482cfae..28726c3 100644 --- a/gemini/gemini.go +++ b/gemini/gemini.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package gemini import ( diff --git a/gopher/gopher.go b/gopher/gopher.go index adf36e9..266ea62 100644 --- a/gopher/gopher.go +++ b/gopher/gopher.go @@ -1,3 +1,19 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ + // Contains the building blocks of a gopher client: history, url, and view. // History handles the browsing session and view represents individual // text based resources, the url represents a parsed url. diff --git a/headbar.go b/headbar.go index cd5eea2..846bb06 100644 --- a/headbar.go +++ b/headbar.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package main import ( diff --git a/help.go b/help.go index d42e75c..91d872e 100644 --- a/help.go +++ b/help.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package main // ERRS maps commands to their syntax error message diff --git a/http/http_render.go b/http/http_render.go index 58a8813..6569a6e 100644 --- a/http/http_render.go +++ b/http/http_render.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package http import ( diff --git a/http/open_browser_darwin.go b/http/open_browser_darwin.go index d57a290..64dd425 100644 --- a/http/open_browser_darwin.go +++ b/http/open_browser_darwin.go @@ -1,3 +1,19 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ + // This will build for osx without a build tag based on the filename package http diff --git a/http/open_browser_other.go b/http/open_browser_other.go index 2f74d22..d1277de 100644 --- a/http/open_browser_other.go +++ b/http/open_browser_other.go @@ -1,5 +1,21 @@ // +build !darwin,!windows +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ + package http import ( diff --git a/http/open_browser_windows.go b/http/open_browser_windows.go index 496d00b..5f21207 100644 --- a/http/open_browser_windows.go +++ b/http/open_browser_windows.go @@ -1,3 +1,19 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ + // This will only build for windows based on the filename // no build tag required package http diff --git a/local/local.go b/local/local.go index 07adc57..80dc118 100644 --- a/local/local.go +++ b/local/local.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package local import ( diff --git a/main.go b/main.go index bee9c41..384572e 100644 --- a/main.go +++ b/main.go @@ -3,21 +3,21 @@ package main // Bombadillo is an internet client for the terminal of unix or // unix-like systems. // -// Copyright (C) 2019 Brian Evans -// -// 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 -// 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 General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ import ( "flag" "fmt" diff --git a/page.go b/page.go index 40a0285..0134c47 100644 --- a/page.go +++ b/page.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package main import ( diff --git a/page_test.go b/page_test.go index ef244c2..3c6b3c3 100644 --- a/page_test.go +++ b/page_test.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package main import ( diff --git a/pages.go b/pages.go index 647264e..252a799 100644 --- a/pages.go +++ b/pages.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package main import ( diff --git a/tdiv/tdiv.go b/tdiv/tdiv.go index 2ce3e2d..5f164a2 100644 --- a/tdiv/tdiv.go +++ b/tdiv/tdiv.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package tdiv import ( diff --git a/telnet/telnet.go b/telnet/telnet.go index a6bc7b9..8a31a8c 100644 --- a/telnet/telnet.go +++ b/telnet/telnet.go @@ -1,3 +1,19 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ + // Package telnet provides a function that starts a telnet session in a subprocess. package telnet diff --git a/termios/consts_linux.go b/termios/consts_linux.go index ae6e076..83efe8a 100644 --- a/termios/consts_linux.go +++ b/termios/consts_linux.go @@ -1,5 +1,21 @@ // +build linux +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ + package termios import "syscall" diff --git a/termios/consts_nonlinux.go b/termios/consts_nonlinux.go index ca0daf7..3bbd0e7 100644 --- a/termios/consts_nonlinux.go +++ b/termios/consts_nonlinux.go @@ -1,5 +1,21 @@ // +build !linux +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ + package termios import "syscall" diff --git a/termios/termios.go b/termios/termios.go index 9e0a5e7..9d060f0 100644 --- a/termios/termios.go +++ b/termios/termios.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package termios import ( diff --git a/url.go b/url.go index 1ca45cc..7267a2b 100644 --- a/url.go +++ b/url.go @@ -1,3 +1,18 @@ +/* +* Copyright (C) 2022 Brian Evans +* +* 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 +* the Free Software Foundation, version 3 of the License. +* +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +*/ package main import (