Permalink
Browse files

Remove unnecessary files from git.

  • Loading branch information...
1 parent e6b19ee commit 6d188d551711c1964492a2d68c8ab9b02eb9de07 @ueno committed Jan 16, 2012
Showing with 1 addition and 60 deletions.
  1. +0 −5 TODO
  2. +1 −2 ibus-skk.spec.in
  3. +0 −53 python-config.py
View
5 TODO
@@ -1,5 +0,0 @@
-- add more tests
-- rewrite in C
-- error message using libnotify
-- NICOLA (thumb shift keyboard)
-- use lookup table to display completion candidates
View
@@ -34,8 +34,7 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
%files -f %{name}.lang
-%defattr(-,root,root,-)
-%doc AUTHORS COPYING README TODO
+%doc AUTHORS COPYING README
%{_datadir}/ibus-skk
%{_libexecdir}/ibus-*-skk
%{_datadir}/ibus/component/skk.xml
View
@@ -1,53 +0,0 @@
-#!/usr/bin/python2.5
-
-import sys
-import os
-import getopt
-from distutils import sysconfig
-
-valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
- 'ldflags', 'help']
-
-def exit_with_usage(code=1):
- print >>sys.stderr, "Usage: %s [%s]" % (sys.argv[0],
- '|'.join('--'+opt for opt in valid_opts))
- sys.exit(code)
-
-try:
- opts, args = getopt.getopt(sys.argv[1:], '', valid_opts)
-except getopt.error:
- exit_with_usage()
-
-if not opts:
- exit_with_usage()
-
-opt = opts[0][0]
-
-pyver = sysconfig.get_config_var('VERSION')
-getvar = sysconfig.get_config_var
-
-if opt == '--help':
- exit_with_usage(0)
-
-elif opt == '--prefix':
- print sysconfig.PREFIX
-
-elif opt == '--exec-prefix':
- print sysconfig.EXEC_PREFIX
-
-elif opt in ('--includes', '--cflags'):
- flags = ['-I' + sysconfig.get_python_inc(),
- '-I' + sysconfig.get_python_inc(plat_specific=True)]
- if opt == '--cflags':
- flags.extend(getvar('CFLAGS').split())
- print ' '.join(flags)
-
-elif opt in ('--libs', '--ldflags'):
- libs = getvar('LIBS').split() + getvar('SYSLIBS').split()
- libs.append('-lpython'+pyver)
- # add the prefix/lib/pythonX.Y/config dir, but only if there is no
- # shared library in prefix/lib/.
- if opt == '--ldflags' and not getvar('Py_ENABLE_SHARED'):
- libs.insert(0, '-L' + getvar('LIBPL'))
- print ' '.join(libs)
-

0 comments on commit 6d188d5

Please sign in to comment.