Add templete for python source file with local definitions.

This commit is contained in:
Jon Lund Steffensen
2010-02-11 20:55:38 +01:00
parent b6a6031497
commit 27331fa532
2 changed files with 31 additions and 1 deletions
+10 -1
View File
@@ -20,6 +20,7 @@ EXTRA_redshift_SOURCES = \
AM_CFLAGS =
redshift_LDADD = @LIBINTL@
EXTRA_DIST =
if ENABLE_RANDR
redshift_SOURCES += src/randr.c src/randr.h
@@ -40,15 +41,23 @@ endif
# gtk-redshift Script
if ENABLE_GTK
dist_bin_SCRIPTS = src/gtk-redshift/gtk-redshift.py
bin_SCRIPTS = src/gtk-redshift/defs.py
EXTRA_DIST += src/gtk-redshift/defs.py.in
endif
# Icons
icondir = @datadir@/icons/hicolor/scalable/apps
icon_DATA = data/icons/hicolor/scalable/apps/redshift.svg
EXTRA_DIST = $(icon_DATA)
EXTRA_DIST += $(icon_DATA)
CLEANFILES = src/gtk-redshift/defs.py
# Local python definitions
src/gtk-redshift/defs.py: src/gtk-redshift/defs.py.in
sed -e "s|\@localedir\@|$(localedir)|g" $< > $@
# Update PO translations
.PHONY: update-po
update-po:
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python
# defs.py -- GTK+ redshift local definitions
# This file is part of Redshift.
# Redshift is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# Redshift is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with Redshift. If not, see <http://www.gnu.org/licenses/>.
# Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com>
LOCALEDIR = '@localedir@'