]> rtime.felk.cvut.cz Git - CanFestival-3.git/commitdiff
updated : debian package scripts
authorgreg <greg>
Mon, 2 Mar 2009 15:15:43 +0000 (15:15 +0000)
committergreg <greg>
Mon, 2 Mar 2009 15:15:43 +0000 (15:15 +0000)
debian/canfestival-peak.postinst
debian/canfestival-peak.postrm [new file with mode: 0755]
debian/canfestival-virtual.postinst
debian/canfestival-virtual.postrm
debian/control-peak [deleted file]
debian/control-peak_linux
debian/control-virtual

index df7817d0596cae82204b0bff94702b51b8c43ed1..669e2785968ca1e2e0e474b64d66ff8683d5bf5b 100644 (file)
@@ -17,10 +17,21 @@ set -e
 # for details, see http://www.debian.org/doc/debian-policy/ or
 # the debian-policy package
 
-
+DLL_LIST=
+CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py
+CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py
 case "$1" in
     configure)
-       ldconfig    
+    ldconfig
+    cd /usr/lib
+    DLL_LIST=
+       FILES=
+       for file in libcanfestival_can*
+       do
+               DLL_LIST="'$file',""$DLL_LIST"
+       done
+       cat $CF_CONFIG_TEMP > $CF_CONFIG
+       echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG
        ;;
        
     abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/canfestival-peak.postrm b/debian/canfestival-peak.postrm
new file mode 100755 (executable)
index 0000000..eb6363e
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/sh
+# postinst script for canfestival
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+DLL_LIST=
+CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py
+CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py
+
+case "$1" in
+    configure)
+    ;;
+       
+    remove|purge)
+    ldconfig
+    cd /usr/lib
+    cd /usr/lib
+       DLL_LIST=
+       FILES=
+
+       for file in libcanfestival_can*
+       do
+               DLL_LIST="'$file',""$DLL_LIST"
+       done
+
+       cat $CF_CONFIG_TEMP > $CF_CONFIG
+       echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG
+       ;;
+    
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
index bafaa3b11020a58d788fff5047ac231c2ec48007..669e2785968ca1e2e0e474b64d66ff8683d5bf5b 100755 (executable)
@@ -28,7 +28,7 @@ case "$1" in
        FILES=
        for file in libcanfestival_can*
        do
-               DLL_LIST="$file,""$DLL_LIST"
+               DLL_LIST="'$file',""$DLL_LIST"
        done
        cat $CF_CONFIG_TEMP > $CF_CONFIG
        echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG
index 811a78df5fbada933d3fbc4d05709c939383ad24..1e81e513ea10dd3ffd5a2cebe9a06be9d4f8c1a0 100755 (executable)
@@ -28,14 +28,14 @@ case "$1" in
     remove|purge)
     ldconfig
     cd /usr/lib
-    DLL_LIST=
+       DLL_LIST=
        FILES=
        for file in libcanfestival_can*
        do
-               DLL_LIST="$file,""$DLL_LIST"
+               DLL_LIST="'$file',""$DLL_LIST"
        done
        cat $CF_CONFIG_TEMP > $CF_CONFIG
-       echo 'DLL_LIST=["$DLL_LIST"]' >> $CF_CONFIG
+       echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG
        ;;
     
     abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/control-peak b/debian/control-peak
deleted file mode 100644 (file)
index 066b88b..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-Source: canfestival
-Section: devel
-Priority: standard
-Maintainer: lolitech <gregory.trelat@lolitech.fr>
-Build-Depends: debhelper (>= 5), autotools-dev, libwxgtk2.8-dev
-Standards-Version: 3.7.2
-
-Package: canfestival
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: <insert up to 60 chars description>
-
-Package: canfestival-devel
-Architecture: all
-Description: Canfestival library
- This package contains the CanFestival library for unix platform.
-
-Package: canfestival-examples
-Architecture: all
-Description: Program's Examples for canfestival
- This package contains some test programs you can use as example
- for your own developments.
- - TestMasterSlave : Two CanOpen nodes in the same process
- - TestMasterMicromod : A CanOpen master that control a peak MicroMod module
- - DS401_Master : Master Node for the DS401_Slave_Gui
- - DS401_Slave_Gui : Simulate an I/O module with GUI
-
-Package: canfestival-doc
-Architecture: all
-Description: Documentation for canfestival
-
-Package: canfestival-peak
-Architecture: all
-Description: Can Driver Interface for Peak Driver
-
-Package: canfestival-objdictedit
-Architecture: all
-Depends: python-wxgtk2.8, xpdf
-Description: A CanOpen Node Editor
- Objdictedit, the Object Dictionary Editor, is a WxPython based GUI that is used to
- create the C file needed to create a new CanOpen node.
-
index 67260cb3b533a31edd0e86ffa14e334721bddf94..f5bcd45e85a062bf1da9efbb829ca958017484cc 100644 (file)
@@ -2,7 +2,7 @@ Source: canfestival
 Section: devel
 Priority: standard
 Maintainer: lolitech <gregory.trelat@lolitech.fr>
-Build-Depends: debhelper (>= 5), autotools-dev, libwxgtk2.8-dev
+Build-Depends: debhelper (>= 5), autotools-dev
 Standards-Version: 3.7.2
 
 Package: canfestival-peak
index 6f0f709d485bade7a56d9b0a7209a2f4ea6fd8fe..c184b940883a17f0fb8667e0ff66bbf29782bf40 100644 (file)
@@ -2,7 +2,7 @@ Source: canfestival
 Section: devel
 Priority: standard
 Maintainer: lolitech <gregory.trelat@lolitech.fr>
-Build-Depends: debhelper (>= 5), autotools-dev, libwxgtk2.8-dev
+Build-Depends: debhelper (>= 5), autotools-dev
 Standards-Version: 3.7.2
 
 Package: canfestival-devel