diff --git a/Makefile b/Makefile index 91dc4d2..0f5a5d9 100644 --- a/Makefile +++ b/Makefile @@ -48,3 +48,8 @@ uninstall: clean clear: rm -f $(BIN) + +IGNORE_OLD_FILES := $(foreach file,$(shell cat old-files),-ignore $(file)) +update-license: + go run github.com/google/addlicense@latest -v -f license-header-old-files.tmpl $$(< old-files) + go run github.com/google/addlicense@latest -v -f license-header.tmpl $(IGNORE_OLD_FILES) . diff --git a/license-header-old-files.tmpl b/license-header-old-files.tmpl new file mode 100644 index 0000000..5c734a5 --- /dev/null +++ b/license-header-old-files.tmpl @@ -0,0 +1,18 @@ +This file was originally part of the project "LURE - Linux User REpository", created by Elara Musayelyan. +It has been modified as part of "ALR - Any Linux Repository" by Евгений Храмов. + +ALR - Any Linux Repository +Copyright (C) {{ .Year }} Евгений Храмов + +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 . \ No newline at end of file diff --git a/license-header.tmpl b/license-header.tmpl new file mode 100644 index 0000000..367a718 --- /dev/null +++ b/license-header.tmpl @@ -0,0 +1,15 @@ +ALR - Any Linux Repository +Copyright (C) {{ .Year }} Евгений Храмов + +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 . \ No newline at end of file diff --git a/old-files b/old-files new file mode 100644 index 0000000..5be5cf9 --- /dev/null +++ b/old-files @@ -0,0 +1,83 @@ +./.github/FUNDING.yml +./.gitignore +./.goreleaser.yaml +./.woodpecker.yml +./LICENSE +./Makefile +./README.md +./assets/logo.png +./build.go +./docs/README.md +./docs/configuration.md +./docs/packages/README.md +./docs/packages/adding-packages.md +./docs/packages/build-scripts.md +./docs/packages/conventions.md +./docs/usage.md +./fix.go +./gen.go +./go.mod +./go.sum +./helper.go +./info.go +./install.go +./internal/cliutils/prompt.go +./internal/config/config.go +./internal/config/lang.go +./internal/config/paths.go +./internal/config/version.go +./internal/cpu/cpu.go +./internal/db/db.go +./internal/db/db_test.go +./internal/dl/dl.go +./internal/dl/file.go +./internal/dl/git.go +./internal/dl/torrent.go +./internal/dlcache/dlcache.go +./internal/dlcache/dlcache_test.go +./internal/osutils/move.go +./internal/overrides/overrides.go +./internal/overrides/overrides_test.go +./internal/pager/highlighting.go +./internal/pager/pager.go +./internal/shutils/decoder/decoder.go +./internal/shutils/decoder/decoder_test.go +./internal/shutils/handlers/exec.go +./internal/shutils/handlers/exec_test.go +./internal/shutils/handlers/fakeroot.go +./internal/shutils/handlers/nop.go +./internal/shutils/handlers/nop_test.go +./internal/shutils/handlers/restricted.go +./internal/shutils/helpers/helpers.go +./internal/translations/files/lure.en.toml +./internal/translations/files/lure.ru.toml +./internal/translations/translations.go +./internal/types/build.go +./internal/types/config.go +./internal/types/repo.go +./list.go +./main.go +./pkg/build/build.go +./pkg/build/install.go +./pkg/distro/osrelease.go +./pkg/gen/funcs.go +./pkg/gen/pip.go +./pkg/gen/tmpls/pip.tmpl.sh +./pkg/loggerctx/log.go +./pkg/manager/apk.go +./pkg/manager/apt.go +./pkg/manager/dnf.go +./pkg/manager/managers.go +./pkg/manager/pacman.go +./pkg/manager/yum.go +./pkg/manager/zypper.go +./pkg/repos/find.go +./pkg/repos/find_test.go +./pkg/repos/pull.go +./pkg/repos/pull_test.go +./pkg/search/search.go +./repo.go +./scripts/completion/bash +./scripts/completion/zsh +./scripts/install.sh +./upgrade.go \ No newline at end of file