build.go: Also copy header files

https://github.com/restic/restic/commit/e6ca604d24e58e79a5034ac9427496771df69ad0
This commit is contained in:
Zlatko Čalušić
2017-06-02 08:53:31 +02:00
parent 4bc2581b47
commit fd9e42ed71
+1 -1
View File
@@ -49,7 +49,7 @@ func specialDir(name string) bool {
// excludePath returns true if the file should not be copied to the new GOPATH.
func excludePath(name string) bool {
ext := path.Ext(name)
if ext == ".go" || ext == ".s" {
if ext == ".go" || ext == ".s" || ext == ".h" {
return false
}