minetest-mods/homedecor_modpack/listnodes.sh

14 lines
285 B
Bash
Raw Normal View History

2019-12-14 17:47:31 +01:00
#!/bin/bash
echo "Node listing as of "`date` > nodes.txt
for i in *.lua; do
echo -e "\nIn $i:\n" >> nodes.txt
cat $i | grep "minetest.register_node(" | \
sed "s/minetest.register_node(.homedecor:/homedecor:/; s/., {//" | \
sort >> nodes.txt
done
less nodes.txt
rm -f nodes.txt