mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
5db6c04c42
Signed-off-by: Uli Schlachter <psychon@znc.in>
22 lines
373 B
Bash
Executable file
22 lines
373 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'", sizeof("'$atom'") - 1, &'$atom' },'
|
|
done < $1
|
|
|
|
echo '};'
|
|
|
|
# vim: filetype=sh:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|