Permalink
Browse files

add dummy.go file with some tricks to make it "compile"

  • Loading branch information...
1 parent e275db0 commit ed6f37bbee6537e0598aa7f4f5dafa379be0c73a @mvo5 mvo5 committed Oct 16, 2017
Showing with 32 additions and 0 deletions.
  1. +13 −0 dummy-gcc
  2. +9 −0 dummy-ld
  3. +1 −0 dummy.c
  4. +9 −0 dummy.go
View
@@ -0,0 +1,13 @@
+#!/usr/bin/python3
+
+import subprocess
+import sys
+
+new_argv = []
+for arg in sys.argv[1:]:
+ if arg.endswith(".c") and not "main" in arg:
+ new_argv.append("dummy.c")
+ else:
+ new_argv.append(arg)
+
+subprocess.check_call(new_argv)
View
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+"$@"
+
+echo "This is a fake go-build, it is not real. We are just doing this "
+echo "to make this git tree available via `go get`."
+
+
+
View
@@ -0,0 +1 @@
+
View
@@ -0,0 +1,9 @@
+/*
+ * Dummy go file to make go get github.com/snapcore/squashfuse work
+ */
+
+package dummy
+
+// #cgo CFLAGS: -wrapper ./dummy-gcc
+// #cgo LDFLAGS: -wrapper ./dummy-ld
+import "C"

0 comments on commit ed6f37b

Please sign in to comment.