summaryrefslogtreecommitdiff
path: root/homedecor/listnodes.sh
blob: 2332080162726c8d25cf4313745d323af7db3ba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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