3
function download_file()
5
if [ "x$3" != "xf" ]; then
14
XKEYSYM=http://cgit.freedesktop.org/xorg/proto/xproto/plain/keysymdef.h
15
KEYSYMGEN_HEADER=keysymgen.h
17
download_file keysymdef.h $XKEYSYM
19
cat > $KEYSYMGEN_HEADER <<EOF
20
/***************************************************************************
21
* Copyright (C) 2012~2012 by CSSlayer *
24
* This program is free software; you can redistribute it and/or modify *
25
* it under the terms of the GNU General Public License as published by *
26
* the Free Software Foundation; either version 2 of the License, or *
27
* (at your option) any later version. *
29
* This program is distributed in the hope that it will be useful, *
30
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
31
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
32
* GNU General Public License for more details. *
34
* You should have received a copy of the GNU General Public License *
35
* along with this program; if not, write to the *
36
* Free Software Foundation, Inc., *
37
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
38
***************************************************************************/
40
#ifndef FCITX_UTILS_KEYSYMGEN_H
41
#define FCITX_UTILS_KEYSYMGEN_H
46
typedef enum _FcitxKeySym
51
grep '^#define' keysymdef.h | sed 's|^#define XK_\([a-zA-Z_0-9]\+\) \+0x\([0-9A-Fa-f]\+\)\(.*\)$|FcitxKey_\1 = 0x\2,\3|g' >> $KEYSYMGEN_HEADER
52
cat >> $KEYSYMGEN_HEADER <<EOF