[gnome-code-assistance] [backends/go] Add deps to EXTRA_DIST



commit 709ef04267e8df1def32057fefe84c0391355958
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Wed Mar 5 20:10:09 2014 +0100

    [backends/go] Add deps to EXTRA_DIST

 backends/go/Makefile.am |    3 +-
 backends/go/deps.mk     |  181 +++++++++++++++++++++++++++++++++++++++++++++++
 backends/go/mkdeps.py   |   38 ++++++++++
 3 files changed, 221 insertions(+), 1 deletions(-)
---
diff --git a/backends/go/Makefile.am b/backends/go/Makefile.am
index b4d8c28..7de69bf 100644
--- a/backends/go/Makefile.am
+++ b/backends/go/Makefile.am
@@ -16,7 +16,8 @@ gobackendservice_DATA = \
        backends/go/org.gnome.CodeAssist.v1.go.service
 
 EXTRA_DIST +=                          \
-       backends/go/deps                \
        $(gobackendservice_DATA)
 
 GITIGNOREDEPS += backends/go/Makefile.am
+
+include backends/go/deps.mk
diff --git a/backends/go/deps.mk b/backends/go/deps.mk
new file mode 100644
index 0000000..b86ad90
--- /dev/null
+++ b/backends/go/deps.mk
@@ -0,0 +1,181 @@
+godeps_deps_src_github_com_guelfey_go_dbus = \
+       backends/go/deps/src/github.com/guelfey/go.dbus/LICENSE \
+       backends/go/deps/src/github.com/guelfey/go.dbus/README.markdown \
+       backends/go/deps/src/github.com/guelfey/go.dbus/auth.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/auth_external.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/auth_sha1.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/call.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/conn.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/conn_darwin.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/conn_other.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/conn_test.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/dbus.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/decoder.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/doc.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/encoder.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/examples_test.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/export.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/message.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/proto_test.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/sig.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/sig_test.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/transport_darwin.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/transport_generic.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/transport_unix.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/transport_unix_test.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/transport_unixcred.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/variant.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/variant_lexer.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/variant_parser.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/variant_test.go
+
+godeps_deps_src_github_com_guelfey_go_dbus_prop = \
+       backends/go/deps/src/github.com/guelfey/go.dbus/prop/prop.go
+
+godeps_deps_src_github_com_jessevdk_go_flags = \
+       backends/go/deps/src/github.com/jessevdk/go-flags/LICENSE \
+       backends/go/deps/src/github.com/jessevdk/go-flags/README.md \
+       backends/go/deps/src/github.com/jessevdk/go-flags/check_crosscompile.sh \
+       backends/go/deps/src/github.com/jessevdk/go-flags/commander.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/convert.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/error.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/example_test.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/flags.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/group.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/group_private.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/help.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/ini.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/man.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/multitag.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/option.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/option_private.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/parser.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/parser_private.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/termsize.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/termsize_linux.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/termsize_other.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/termsize_unix.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/termsize_windows.go
+
+godeps_deps_src_github_com_guelfey_go_dbus_introspect = \
+       backends/go/deps/src/github.com/guelfey/go.dbus/introspect/call.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/introspect/introspect.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/introspect/introspectable.go
+
+godeps_deps_src_code_google_com_p_go_tools = \
+       backends/go/deps/src/code.google.com/p/go.tools/AUTHORS \
+       backends/go/deps/src/code.google.com/p/go.tools/CONTRIBUTORS \
+       backends/go/deps/src/code.google.com/p/go.tools/LICENSE \
+       backends/go/deps/src/code.google.com/p/go.tools/PATENTS \
+       backends/go/deps/src/code.google.com/p/go.tools/README
+
+godeps_deps_src_code_google_com_p_go_tools_go_types_typemap = \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/typemap/typemap.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/typemap/typemap_test.go
+
+godeps_deps_src_code_google_com_p_go_tools_go_types_testdata = \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/builtins.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/const0.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/const1.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/constdecl.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/conversions.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/cycles.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/cycles1.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/cycles2.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/cycles3.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/cycles4.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/decls0.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/decls1.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/decls2a.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/decls2b.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/decls3.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/errors.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/exports.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/expr0.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/expr1.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/expr2.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/expr3.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/gotos.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/importdecl0a.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/importdecl0b.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/init0.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/labels.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/methodsets.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/shifts.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/stmt0.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/stmt1.src \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/testdata/vardecl.src
+
+godeps_deps_src_github_com_guelfey_go_dbus__examples = \
+       backends/go/deps/src/github.com/guelfey/go.dbus/_examples/eavesdrop.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/_examples/introspect.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/_examples/list-names.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/_examples/notification.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/_examples/prop.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/_examples/server.go \
+       backends/go/deps/src/github.com/guelfey/go.dbus/_examples/signal.go
+
+godeps_deps_src_code_google_com_p_go_tools_go_exact = \
+       backends/go/deps/src/code.google.com/p/go.tools/go/exact/exact.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/exact/exact_test.go
+
+godeps_deps_src_code_google_com_p_go_tools_go_types = \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/api.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/api_test.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/assignments.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/builtins.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/builtins_test.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/call.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/check.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/check_test.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/conversions.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/errors.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/eval.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/eval_test.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/exportdata.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/expr.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/gcimporter.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/gcimporter_test.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/go11.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/go12.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/issues_test.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/labels.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/lookup.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/methodset.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/objects.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/objset.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/operand.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/package.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/predicates.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/resolver.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/resolver_test.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/return.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/scope.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/selection.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/self_test.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/sizes.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/stdlib_test.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/stmt.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/token_test.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/types.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/types_test.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/typexpr.go \
+       backends/go/deps/src/code.google.com/p/go.tools/go/types/universe.go
+
+godeps_deps_src_github_com_jessevdk_go_flags_examples = \
+       backends/go/deps/src/github.com/jessevdk/go-flags/examples/add.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/examples/main.go \
+       backends/go/deps/src/github.com/jessevdk/go-flags/examples/rm.go
+
+EXTRA_DIST += \
+       $(godeps_deps_src_github_com_guelfey_go_dbus) \
+       $(godeps_deps_src_github_com_guelfey_go_dbus_prop) \
+       $(godeps_deps_src_github_com_jessevdk_go_flags) \
+       $(godeps_deps_src_github_com_guelfey_go_dbus_introspect) \
+       $(godeps_deps_src_code_google_com_p_go_tools) \
+       $(godeps_deps_src_code_google_com_p_go_tools_go_types_typemap) \
+       $(godeps_deps_src_code_google_com_p_go_tools_go_types_testdata) \
+       $(godeps_deps_src_github_com_guelfey_go_dbus__examples) \
+       $(godeps_deps_src_code_google_com_p_go_tools_go_exact) \
+       $(godeps_deps_src_code_google_com_p_go_tools_go_types) \
+       $(godeps_deps_src_github_com_jessevdk_go_flags_examples)
diff --git a/backends/go/mkdeps.py b/backends/go/mkdeps.py
new file mode 100644
index 0000000..4a5b7ce
--- /dev/null
+++ b/backends/go/mkdeps.py
@@ -0,0 +1,38 @@
+#!/usr/bin/env python
+
+import subprocess, os, re
+
+perdir = {}
+
+rethead = subprocess.check_output(['git', 'ls-tree', 'HEAD', '--name-only', '-r', '--', 
'deps']).decode('utf-8').splitlines()
+retindex = subprocess.check_output(['git', 'ls-files', '--', 'gems']).decode('utf-8').splitlines()
+
+ret = rethead + retindex
+seen = {}
+
+for r in ret:
+    if r in seen:
+        continue
+
+    seen[r] = True
+    dname = os.path.dirname(r)
+
+    if dname in perdir:
+        perdir[dname].append(r)
+    else:
+        perdir[dname] = [r]
+
+datas = []
+
+for dname in perdir:
+    vname = 'godeps_{0}'.format(re.sub('[/.-]', '_', dname))
+
+    print('{0} = \\'.format(vname))
+    print("\tbackends/go/{0}".format(" \\\n\tbackends/go/".join(perdir[dname])))
+    print('')
+
+    datas.append('$({0})'.format(vname))
+
+print('EXTRA_DIST += \\\n\t{0}'.format(' \\\n\t'.join(datas)))
+
+# vi:ts=4:et


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]