From 734e1a134a35864fc798113a8e105b59ac578a51 Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Fri, 7 Oct 2005 17:29:06 +0000 Subject: * autotool basics in place git-svn-id: file:///home/lennart/svn/public/avahi/branches/py-simple-api@705 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-utils/avahi/Makefile.am | 13 ++++++++----- avahi-utils/avahi/SimpleAvahiApp.py | 25 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 5 deletions(-) create mode 100755 avahi-utils/avahi/SimpleAvahiApp.py diff --git a/avahi-utils/avahi/Makefile.am b/avahi-utils/avahi/Makefile.am index b1ebe22..c9fdeff 100644 --- a/avahi-utils/avahi/Makefile.am +++ b/avahi-utils/avahi/Makefile.am @@ -17,19 +17,24 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -EXTRA_DIST = __init__.py SimpleGladeApp.py ServiceTypeDatabase.py.in +EXTRA_DIST = __init__.py SimpleGladeApp.py ServiceTypeDatabase.py.in SimpleAvahiApp.py.in if HAVE_PYTHON avahidir = $(pythondir)/avahi -avahi_SCRIPTS = ServiceTypeDatabase.py +avahi_SCRIPTS = ServiceTypeDatabase.py SimpleAvahiApp.py ServiceTypeDatabase.py: ServiceTypeDatabase.py.in sed -e 's,@PYTHON\@,$(PYTHON),g' \ -e 's,@pkgdatadir\@,$(pkgdatadir),g' $< > $@ chmod +x $@ +SimpleAvahiApp.py: SimpleAvahiApp.py.in + sed -e 's,@PYTHON\@,$(PYTHON),g' \ + -e 's,@pkgdatadir\@,$(pkgdatadir),g' $< > $@ + chmod +x $@ + if HAVE_PYGTK if HAVE_PYTHON_DBUS @@ -39,6 +44,4 @@ endif endif endif -CLEANFILES=*.pyc *.pyo ServiceTypeDatabase.py - - +CLEANFILES=*.pyc *.pyo ServiceTypeDatabase.py SimpleAvahiApp.py diff --git a/avahi-utils/avahi/SimpleAvahiApp.py b/avahi-utils/avahi/SimpleAvahiApp.py new file mode 100755 index 0000000..f81d189 --- /dev/null +++ b/avahi-utils/avahi/SimpleAvahiApp.py @@ -0,0 +1,25 @@ +#!/usr/bin/python +# -*-python-*- +# $Id: $ + +# This file is part of avahi. +# +# avahi is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# avahi 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 Lesser General Public +# License along with avahi; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. + +if __name__ == "__main__": + print "__main__" + + -- cgit