Skip to content

Commit 97dff84

Browse files
author
Joran Jessurun
committed
Added build script.
Updated for release of version 2.1 (with csv option)
1 parent 91e6bdf commit 97dff84

File tree

11 files changed

+21
-21
lines changed

11 files changed

+21
-21
lines changed

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Command Line Options
3333

3434
Usage: xml2sav [options] <file.xsav>
3535
Options:
36+
-csv
37+
convert to csv
3638
-nolog
3739
don't write log to file
3840
-pause

build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
GOOS=windows GOARCH=amd64 go build -o xml2sav-win64.exe
3+
GOOS=windows GOARCH=386 go build -o xml2sav-win32.exe
4+
GOOS=linux GOARCH=amd64 go build -o xml2sav-linux64

csv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
xml2sav - converts a custom xml document to a SPSS binary file.
3-
Copyright (C) 2016 A.J. Jessurun
3+
Copyright (C) 2016-2017 A.J. Jessurun
44
55
This file is part of xml2sav.
66

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
xml2sav - converts a custom xml document to a SPSS binary file.
3-
Copyright (C) 2016 A.J. Jessurun
3+
Copyright (C) 2016-2017 A.J. Jessurun
44
55
This file is part of xml2sav.
66
@@ -53,7 +53,7 @@ func init() {
5353
func main() {
5454
startTime := time.Now()
5555

56-
fmt.Println("xml2sav 2.0 Copyright (C) 2016 A.J. Jessurun")
56+
fmt.Println("xml2sav 2.1 Copyright (C) 2016-2017 A.J. Jessurun")
5757
fmt.Println("This program comes with ABSOLUTELY NO WARRANTY.")
5858
fmt.Println("This is free software, and you are welcome to redistribute it")
5959
fmt.Println("under certain conditions. See the file COPYING.txt.")

sav.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/*
2+
xml2sav - converts a custom xml document to a SPSS binary file.
3+
Copyright (C) 2016-2017 A.J. Jessurun
4+
25
This file is part of xml2sav.
36
47
Xml2sav is free software: you can redistribute it and/or modify

savbytecode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
xml2sav - converts a custom xml document to a SPSS binary file.
3-
Copyright (C) 2016 A.J. Jessurun
3+
Copyright (C) 2016-2017 A.J. Jessurun
44
55
This file is part of xml2sav.
66

spss.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
xml2sav - converts a custom xml document to a SPSS binary file.
3-
Copyright (C) 2016 A.J. Jessurun
3+
Copyright (C) 2016-2017 A.J. Jessurun
44
55
This file is part of xml2sav.
66

varlength.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
xml2sav - converts a custom xml document to a SPSS binary file.
3-
Copyright (C) 2016 A.J. Jessurun
3+
Copyright (C) 2016-2017 A.J. Jessurun
44
55
This file is part of xml2sav.
66
@@ -73,7 +73,10 @@ func findVarLengths(r io.Reader) (VarLengths, error) {
7373
}
7474
}
7575
case xml.EndElement:
76-
v[savName] = lengths
76+
if t.Name.Local == "sav" {
77+
v[savName] = lengths
78+
lengths = nil
79+
}
7780
}
7881
}
7982

windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/*
44
xml2sav - converts a custom xml document to a SPSS binary file.
5-
Copyright (C) 2016 A.J. Jessurun
5+
Copyright (C) 2016-2017 A.J. Jessurun
66
77
This file is part of xml2sav.
88

0 commit comments

Comments
 (0)