awesome/build-utils/atoms-int.sh
Julien Danjou db49685413 atoms: autogenerate atom list
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-30 20:05:53 +02:00

20 lines
270 B
Bash
Executable file

#!/bin/sh
echo "/* This file is autogenerated by $0 - do not edit */"
echo
while read atom
do
echo xcb_atom_t $atom\;
done < $1
echo
echo 'static atom_item_t ATOM_LIST[] ='
echo '{'
while read atom
do
echo ' { "'$atom'", &'$atom' },'
done < $1
echo '};'