mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Do it by running this command:
[exempted files are matched via .x-sc_TAB_in_indentation]
git ls-files \
| pcregrep -vf .x-sc_TAB_in_indentation \
| xargs pcregrep -l '^ *\t' \
| xargs perl -MText::Tabs -ni -le \
'$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
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).