mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
21 lines
270 B
Bash
21 lines
270 B
Bash
|
#!/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 '};'
|