Skip to content

Commit

Permalink
tag: add mklicensestables utility
Browse files Browse the repository at this point in the history
Add (uninstalled) tool to create licenses-table.dat from liblicense's
RDF files. It's not very pretty and makes loats of assumptions about
the input, but should work. If things change, we can fix it then.

https://bugzilla.gnome.org/show_bug.cgi?id=646868
  • Loading branch information
Tim-Philipp Müller committed Aug 10, 2011
1 parent c4bab48 commit 25f8f64
Show file tree
Hide file tree
Showing 3 changed files with 905 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Expand Up @@ -43,8 +43,9 @@ Makefile
*.gir
*.typelib

gst-libs/gst/pbutils/gstpluginsbaseversion.h
gst-libs/gst/tag/mklangtables
/gst-libs/gst/pbutils/gstpluginsbaseversion.h
/gst-libs/gst/tag/mklangtables
/gst-libs/gst/tag/mklicensestables

tmp-orc.c
gst*orc.h
Expand Down
13 changes: 12 additions & 1 deletion gst-libs/gst/tag/Makefile.am
Expand Up @@ -84,7 +84,18 @@ else
ISO_CODE_PROGS =
endif

noinst_PROGRAMS = $(ISO_CODE_PROGS)
LICENSE_PROGS = mklicensestables
mklicensestables_SOURCES = mklicensestables.c
mklicensestables_CFLAGS = $(GST_CFLAGS)
mklicensestables_LDADD = $(GST_LIBS)

noinst_PROGRAMS = $(ISO_CODE_PROGS) $(LICENSE_PROGS)

update-licenses: mklicensestables
$(builddir)/mklicensestables \
--translation-dictionary=$(builddir)/license-translations.dict \
> $(builddir)/licenses-tables.dat && \
echo "Updated licenses-tables.dat and license-translations.dict"

#if USE_NLS
# Yes, this is not great, but it's only an implementation detail. The
Expand Down

0 comments on commit 25f8f64

Please sign in to comment.