summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2005-10-07 17:29:06 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2005-10-07 17:29:06 +0000
commit734e1a134a35864fc798113a8e105b59ac578a51 (patch)
tree576b0307c136297283e8c73ce293fba3652b0ec8
parent8439157b200f094073b7855f28be20b6a416c10f (diff)
* autotool basics in place
git-svn-id: file:///home/lennart/svn/public/avahi/branches/py-simple-api@705 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-utils/avahi/Makefile.am13
-rwxr-xr-xavahi-utils/avahi/SimpleAvahiApp.py25
2 files changed, 33 insertions, 5 deletions
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__"
+
+