changed version format in changelog file
[wifi-assistant] / package / Makefile
index 567dac3..05c7835 100644 (file)
@@ -1,11 +1,13 @@
 #
-# Makefile for Hermes: Contacts Updated
-# (c) Andrew Flegg 2009. Released under the Artistic Licence.
+# Makefile for Wifi Assistant
+# (c) Fredrik Wendt 2010. Released under the Artistic Licence.
+# Based on Hermes' Makefile, written by Andrew Flegg.
+#
 
-DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
+DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: 1://p')
 
 compile:
-       #perl -pi -e "s/(WimpWorks\.__init__.*?version\s*=\s*)['\"].*?['\"]/\1'${DEBVERS}'/" src/org/maemo/wifi-assistant/gui/gtkui.py
+       sed -i -e 's/VERSION = .*/VERSION = "${DEBVERS}"/' src/wifi_assistant/gui/about_dialog.py
        perl -ni -e 'print; exit if /^XB-Maemo-Icon-26:$$/' debian/control
        uuencode -m share/wifi-assistant-48.png - | perl -ne 'print " $$_" unless $$. == 1 or /^====$$/' >>debian/control
        py_compilefiles `find src -type f -name '*.py'`
@@ -14,15 +16,19 @@ compile:
 
 install:
        mkdir -p ${DESTDIR}/opt/wifi-assistant/lib ${DESTDIR}/opt/wifi-assistant/bin ${DESTDIR}/opt/wifi-assistant/share
-       ln -s ../lib/config-gui.py ${DESTDIR}/opt/wifi-assistant/bin/wifi-assistant
+       ln -s ../lib/gui.sh ${DESTDIR}/opt/wifi-assistant/bin/wifi-assistant
+       ln -s ../lib/daemon.sh ${DESTDIR}/opt/wifi-assistant/bin/wifi-assistant-daemon
        cp -r src/* ${DESTDIR}/opt/wifi-assistant/lib/
        chown -R root:root ${DESTDIR}/opt/wifi-assistant/lib/
-       install -D -m 0644 -o root -g root src/*.py* ${DESTDIR}/opt/wifi-assistant/lib/
+       install -D -m 0644 -o root -g root src/wifi_assistant/*.py* ${DESTDIR}/opt/wifi-assistant/lib/wifi_assistant/
+       install -D -m 0644 -o root -g root src/*.sh* ${DESTDIR}/opt/wifi-assistant/lib/
        install -D -m 0644 -o root -g root share/wifi-assistant-64.png ${DESTDIR}/usr/share/icons/hicolor/scalable/hildon/wifi-assistant.png
        install -D -m 0644 -o root -g root share/wifi-assistant-48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/hildon/wifi-assistant.png
        install -D -m 0644 -o root -g root share/wifi-assistant.desktop ${DESTDIR}/usr/share/applications/hildon/wifi-assistant.desktop
-       install -D -m 0644 -o root -g root share/wifi-assistant.service ${DESTDIR}/usr/share/dbus-1/services/wifi-assistant.service
-       chmod 755 ${DESTDIR}/opt/wifi-assistant/lib/config-gui.py
+#      install -D -m 0644 -o root -g root share/wifi-assistant.service ${DESTDIR}/usr/share/dbus-1/services/wifi-assistant.service
+       install -D -m 0644 -o root -g root share/upstart ${DESTDIR}/etc/event.d/wifi-assistant
+       chmod 755 ${DESTDIR}/opt/wifi-assistant/lib/gui.sh
+       chmod 755 ${DESTDIR}/opt/wifi-assistant/lib/daemon.sh
        #cd po && $(MAKE) install 
 
 clean: