From ab3cb4a22f11e59f687556466f8c50741dade64f Mon Sep 17 00:00:00 2001 From: Donald Mennerich Date: Tue, 13 Jul 2021 12:33:00 -0400 Subject: [PATCH 1/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 98c4536..e7e6643 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ aspace-export ============= -Command-line utility to bulk export EAD finding aids from Archivespace. +Command-line utility for bulk export, validation and reformatting of EAD finding aids from Archivespace. Install ------- From b09c98932e41736a914ada5ec2f6d49a487e628d Mon Sep 17 00:00:00 2001 From: Don Mennerich Date: Tue, 13 Jul 2021 13:59:59 -0400 Subject: [PATCH 2/4] adding Makefile --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..97b7fb2 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +hello: + echo "Hello" + +build: + go build -o aspace-export + zip aspace-export-linux-v$(version).zip aspace-export go-aspace.yml + mv aspace*.zip bin/linux From 8a6bc5c3fd32411f9e061f635b9e28ff2b18ddb7 Mon Sep 17 00:00:00 2001 From: Don Mennerich Date: Wed, 4 Aug 2021 11:53:05 -0400 Subject: [PATCH 3/4] updating docs, removing incorrect error message` --- README.md | 7 ++++--- main.go | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e7e6643..3b19a00 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,10 @@ Install Run --- -$ aspace-export --config /path/to/go-aspace.yml [options] +$ aspace-export --config /path/to/go-aspace.yml [options] 2> /dev/null +

note: the underlying xml lib will output a lot of info about xml errors to stderr, `2> /dev/null` ignores the output but you can redirect to a file by replacing /dev/null -The program will create a directory heirarchy at the location set in the --location option. There will be a a subdirectory created for each repository that was exported, with the name of the repositories slug. +The program will create a directory hierarchy at the location set in the --export-location option. There will be a subdirectory created for each repository that was exported, with the name of the repositories slug. within each repository directory there will be an `exports` directory containing all exported finding aids. If the `validate` option was set when the program was run any finding aids that fail validation will be written to a subdirectory named `failures`. A log file will be created named `aspace-export.log` which will be moved to the root of output directory at the end of the process, the initial location of this log file can be set with the `--logfile` option. @@ -42,6 +43,6 @@ Command-Line Arguments --workers, number of concurrent export workers to create, default: 8
--validate, validate exported finding aids against ead2002 schema, default: `false`
--reformat, tab-reformat ead files, default: `false`
---export-location, path/to/the location to export finding aids, default: `aspace-exports`
+--export-location, path/to/the location to export finding aids, default: `./aspace-exports`
--help, print this help screen
--version, print the application and go-aspace client version diff --git a/main.go b/main.go index 792b419..50ec306 100644 --- a/main.go +++ b/main.go @@ -270,7 +270,6 @@ func cleanup() { newLoc := filepath.Join(workDir, "aspace-export.log") err = os.Rename(logfile, newLoc); if err != nil { fmt.Println(err.Error()) - fmt.Printf("Could not move log file from /tmp to %s\n", workDir) } } From 803c13938ad15a3388118a0e265c84a347dccefb Mon Sep 17 00:00:00 2001 From: Don Mennerich Date: Wed, 4 Aug 2021 12:12:22 -0400 Subject: [PATCH 4/4] bumping version to beta --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 50ec306..c1ff56c 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ var ( help bool version bool reformat bool - appVersion = "v0.1.0b" + appVersion = "v0.1.1-beta" ) type ResourceInfo struct {