Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
Various fixes and additions to PlistBuddy.
Browse files Browse the repository at this point in the history
 - Fix `Exit` command in PlistBuddy to actually exit.
 - Fix `Key:` syntax in PlistBuddy to append to arrays.
 - Fix `Set Key:0` syntax in PlistBuddy to overwrite, not insert.
 - Fix PlistBuddy to correctly initialize new property lists: only
   write to disk on `Save` and start out with a dictionary.
 - Fix crashes with out-of-bounds array indexes in PlistBuddy.
 - Add `Import`, `Copy`, and `Revert` commands to PlistBuddy.
  • Loading branch information
grp committed Dec 15, 2016
1 parent 1f66407 commit 41cb9ab
Show file tree
Hide file tree
Showing 2 changed files with 318 additions and 226 deletions.
6 changes: 3 additions & 3 deletions Libraries/plist/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ target_include_directories(plist PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/PrivateHea
install(TARGETS plist DESTINATION usr/lib)

add_executable(plutil Tools/plutil.cpp)
target_link_libraries(plutil plist process util)
target_link_libraries(plutil PRIVATE plist process util)
install(TARGETS plutil DESTINATION usr/bin)

add_executable(PlistBuddy Tools/PlistBuddy.cpp)
target_link_libraries(PlistBuddy plist util)
target_link_libraries(PlistBuddy PRIVATE plist util)
install(TARGETS PlistBuddy DESTINATION usr/bin)

set(LINENOISE_ROOT "${CMAKE_SOURCE_DIR}/ThirdParty/linenoise")
Expand All @@ -82,7 +82,7 @@ if (EXISTS "${LINENOISE_SOURCE}")
target_compile_definitions(linenoise PRIVATE _GNU_SOURCE)
endif ()

target_link_libraries(PlistBuddy linenoise)
target_link_libraries(PlistBuddy PRIVATE linenoise)
target_compile_definitions(PlistBuddy PRIVATE HAVE_LINENOISE)
endif ()

Expand Down
Loading

0 comments on commit 41cb9ab

Please sign in to comment.