aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-15 23:23:48 +0700
committerShulhan <ms@kilabit.info>2026-01-15 23:25:43 +0700
commit89af20afc873e44a744af7be8e83730c2f24606d (patch)
tree3c59e7eb24b221fba84d6858acf7eea44944ad22
parent65045c80372bd2781d8e950f7e64951c662a6f39 (diff)
downloadspdxconv-89af20afc873e44a744af7be8e83730c2f24606d.tar.xz
Release spdxconv v1.0.0 (2026-01-15)HEADv1.0.0main
spdxconv is a program to insert or convert existing licenses and copyrights into SPDX formats. This program works in tandem with [REUSE software](https://reuse.software). Features: - *REUSE Integration:* Detects annotations from `REUSE.toml`. - *Customizable Defaults:* Set default license identifiers and copyright holders. - *Smart Comments:* Customizable patterns to set comment syntax based on file names. - *Regex Extraction:* Capture existing licenses, years, authors, and contact info using regex. - *Git Integration:* Automatically derives the copyright year from the first commit in git history.
-rw-r--r--.gitignore3
-rw-r--r--CHANGELOG.adoc27
l---------_doc/CHANGELOG.adoc1
-rw-r--r--cmd/spdxconv/main.go4
-rw-r--r--spdxconv.go3
5 files changed, 36 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index fcd5971..22d5b61 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,7 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-FileCopyrightText: 2026 M. Shulhan <ms@kilabit.info>
-_doc/index.html
-cover.html
+*.html
cover.out
cover.txt
testdata/scan/new_file.adoc
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc
new file mode 100644
index 0000000..ae008e6
--- /dev/null
+++ b/CHANGELOG.adoc
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-FileCopyrightText: 2026 M. Shulhan <ms@kilabit.info>
+
+= spdxconv release changelog
+:toc:
+:sectanchors:
+
+[#spdxconv_v1_0_0]
+== spdxconv v1.0.0 (2026-01-15)
+
+spdxconv is a program to insert or convert existing licenses and copyrights
+into SPDX formats.
+
+This program works in tandem with
+https://reuse.software[REUSE software].
+
+Features:
+
+- *REUSE Integration:* Detects annotations from `REUSE.toml`.
+- *Customizable Defaults:* Set default license identifiers and copyright
+ holders.
+- *Smart Comments:* Customizable patterns to set comment syntax based on
+ file names.
+- *Regex Extraction:* Capture existing licenses, years, authors, and
+ contact info using regex.
+- *Git Integration:* Automatically derives the copyright year from the
+ first commit in git history.
diff --git a/_doc/CHANGELOG.adoc b/_doc/CHANGELOG.adoc
new file mode 120000
index 0000000..e59a806
--- /dev/null
+++ b/_doc/CHANGELOG.adoc
@@ -0,0 +1 @@
+../CHANGELOG.adoc \ No newline at end of file
diff --git a/cmd/spdxconv/main.go b/cmd/spdxconv/main.go
index 5bdd6eb..f77887d 100644
--- a/cmd/spdxconv/main.go
+++ b/cmd/spdxconv/main.go
@@ -5,6 +5,7 @@ package main
import (
"flag"
+ "fmt"
"log"
"os"
"path/filepath"
@@ -49,6 +50,9 @@ func main() {
case `help`:
usage()
os.Exit(1)
+ case `version`:
+ fmt.Println(spdxconv.Version)
+ return
default:
log.Fatalf(`unknown command, use "%s help" for more information.`,
programName)
diff --git a/spdxconv.go b/spdxconv.go
index 8ffe29b..f019d1d 100644
--- a/spdxconv.go
+++ b/spdxconv.go
@@ -20,6 +20,9 @@ import (
// ConfigFile the file name for configuration file.
const ConfigFile = `spdxconv.cfg`
+// Version of this software.
+const Version = `1.0.0`
+
// File end with ".license" is SPDX specific file that contains only
// identifiers.
var suffixLicense = `.license`