-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made build.sh add version to ldflags
- Loading branch information
Showing
8 changed files
with
57 additions
and
52 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
#!/bin/bash | ||
|
||
VERSION=`git describe --tags` | ||
BUILT=`date +%FT%T%z` | ||
echo "$VERSION" | ||
env GOOS=linux GOARCH=arm GOARM=7 go test ./rpi-sshsign | ||
env GOOS=linux GOARCH=arm GOARM=7 go build -o bin/rpi-sshsign ./rpi-sshsign | ||
cp bin/rpi-sshsign ansible/files/rpi-sshsign | ||
env GOOS=linux go test ./openvpn-mongopass | ||
go build -o bin/openvpn-mongopass ./openvpn-mongopass | ||
env GOOS=linux go test . | ||
|
||
env GOOS=linux GOARCH=arm GOARM=7 go build -a -o bin/go-eyepi . | ||
env GOOS=linux GOARCH=arm GOARM=7 go build -a -o bin/go-eyepi -ldflags "-X main.Version=$VERSION -X main.Built=$BUILT" . | ||
cp bin/go-eyepi ansible/files/go-eyepi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,27 +75,27 @@ var snRegexData = []reTest{ | |
"Current: cd6acfa090894f9bbe7b21037a49389b", | ||
}, | ||
} | ||
|
||
var failsnRegexData = []reTest{ | ||
{`*** Error *** | ||
An error occurred in the io-library ('I/O problem'): No error description available | ||
*** Error *** | ||
An error occurred in the io-library ('I/O problem'): No error description available | ||
*** Error (-7: 'I/O problem') *** | ||
For debugging messages, please use the --debug option. | ||
Debugging messages may help finding a solution to your problem. | ||
If you intend to send any error or debug messages to the gphoto | ||
developer mailing list <[email protected]>, please run | ||
gphoto2 as follows: | ||
env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --get-config serialnumber --port=usb:001,006 | ||
Please make sure there is sufficient quoting around the arguments. | ||
`, | ||
""}, | ||
} | ||
// | ||
//var failsnRegexData = []reTest{ | ||
// {`*** Error *** | ||
// An error occurred in the io-library ('I/O problem'): No error description available | ||
// | ||
// *** Error *** | ||
// An error occurred in the io-library ('I/O problem'): No error description available | ||
// *** Error (-7: 'I/O problem') *** | ||
// | ||
// For debugging messages, please use the --debug option. | ||
// Debugging messages may help finding a solution to your problem. | ||
// If you intend to send any error or debug messages to the gphoto | ||
// developer mailing list <[email protected]>, please run | ||
// gphoto2 as follows: | ||
// | ||
// env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --get-config serialnumber --port=usb:001,006 | ||
// | ||
// Please make sure there is sufficient quoting around the arguments. | ||
// `, | ||
// ""}, | ||
//} | ||
|
||
var usbRegexData = []reMultiTest{ | ||
{`---------------------------------------------------------- | ||
|
@@ -110,28 +110,28 @@ var usbRegexData = []reMultiTest{ | |
Canon EOS 650D usb:001,007 `, | ||
[][]byte{[]byte("usb:001,6"), []byte("usb:001,007")}}, | ||
} | ||
|
||
var failUsbRegexData = []reMultiTest{ | ||
{ | ||
`*** Error *** | ||
An error occurred in the io-library ('I/O problem'): No error description available | ||
*** Error *** | ||
An error occurred in the io-library ('I/O problem'): No error description available | ||
*** Error (-7: 'I/O problem') *** | ||
For debugging messages, please use the --debug option. | ||
Debugging messages may help finding a solution to your problem. | ||
If you intend to send any error or debug messages to the gphoto | ||
developer mailing list <[email protected]>, please run | ||
gphoto2 as follows: | ||
env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --get-config serialnumber --port=usb:001,006 | ||
Please make sure there is sufficient quoting around the arguments. | ||
`, [][]byte{}, | ||
}, | ||
} | ||
// | ||
//var failUsbRegexData = []reMultiTest{ | ||
// { | ||
// `*** Error *** | ||
// An error occurred in the io-library ('I/O problem'): No error description available | ||
// | ||
// *** Error *** | ||
// An error occurred in the io-library ('I/O problem'): No error description available | ||
// *** Error (-7: 'I/O problem') *** | ||
// | ||
// For debugging messages, please use the --debug option. | ||
// Debugging messages may help finding a solution to your problem. | ||
// If you intend to send any error or debug messages to the gphoto | ||
// developer mailing list <[email protected]>, please run | ||
// gphoto2 as follows: | ||
// | ||
// env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --get-config serialnumber --port=usb:001,006 | ||
// | ||
// Please make sure there is sufficient quoting around the arguments. | ||
// `, [][]byte{}, | ||
// }, | ||
//} | ||
|
||
func TestRegexes(t *testing.T) { | ||
for _, regexData := range snRegexData { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters