Permalink
Browse files
add dummy.go file with some tricks to make it "compile"
- Loading branch information...
Showing
with
32 additions
and
0 deletions.
-
+13
−0
dummy-gcc
-
+9
−0
dummy-ld
-
+1
−0
dummy.c
-
+9
−0
dummy.go
|
|
@@ -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)
|
|
|
@@ -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`."
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@@ -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