mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Convert all uses automatically, via these two commands:
git grep -l '\<exit *(1)' \
| grep -vEf .x-sc_prohibit_magic_number_exit \
| xargs --no-run-if-empty \
perl -pi -e 's/\b(exit ?)\(1\)/$1(EXIT_FAILURE)/'
git grep -l '\<exit *(0)' \
| grep -vEf .x-sc_prohibit_magic_number_exit \
| xargs --no-run-if-empty \
perl -pi -e 's/\b(exit ?)\(0\)/$1(EXIT_SUCCESS)/'
* .x-sc_prohibit_magic_number_exit: New file.
Edit (RWMJ): Don't change Java code.
This directory contains various example programs which use the libguestfs API. As they are examples, these are licensed so they can be freely copied and used without any restrictions. Tips: (1) To enable verbose messages, set environment variable LIBGUESTFS_DEBUG=1 (2) If you haven't installed libguestfs, run the examples like this: LIBGUESTFS_PATH=appliance examples/to-xml (the path should point to the directory containing vmlinuz.* and initramfs.* files).