summaryrefslogtreecommitdiffstats
path: root/tools/Makefile.am
diff options
context:
space:
mode:
authorGravatar Calil Khalil2026-02-21 10:39:24 -0300
committerGravatar Nikias Bassen2026-03-20 17:12:47 +0100
commit3edac28498d883f1f768699ee15ce85a82bb2a7b (patch)
treeb350517a84a671fc500d943168f973e7c97aa93e /tools/Makefile.am
parent6e03a1df6d1aa87c8f9e2b35f1a2ca60feca1c0e (diff)
downloadlibplist-3edac28498d883f1f768699ee15ce85a82bb2a7b.tar.gz
libplist-3edac28498d883f1f768699ee15ce85a82bb2a7b.tar.bz2
Add JSON coercion support for non-JSON plist typesHEADmaster
- Add PLIST_OPT_COERCE option to coerce PLIST_DATE, PLIST_DATA, and PLIST_UID to JSON-compatible types (ISO 8601 strings, Base64 strings, and integers) - Add plist_to_json_with_options() function to allow passing coercion options (and others) - Update plist_write_to_string() and plist_write_to_stream() to support coercion option - Add --coerce flag to plistutil for JSON output - Create plist2json symlink that automatically enables coercion when invoked
Diffstat (limited to 'tools/Makefile.am')
-rw-r--r--tools/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 5883286..93b5b9f 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -11,4 +11,10 @@ bin_PROGRAMS = plistutil
plistutil_SOURCES = plistutil.c
plistutil_LDADD = $(top_builddir)/src/libplist-2.0.la
+install-exec-hook:
+ cd $(DESTDIR)$(bindir) && ln -sf plistutil plist2json
+
+uninstall-hook:
+ rm -f $(DESTDIR)$(bindir)/plist2json
+
endif