debian/canfestival-peak.postinst
changeset 533 4d50417dab22
parent 346 59dbdcc99264
child 579 3126da40d469
--- a/debian/canfestival-peak.postinst	Mon Mar 02 09:30:33 2009 +0100
+++ b/debian/canfestival-peak.postinst	Mon Mar 02 16:15:43 2009 +0100
@@ -17,10 +17,21 @@
 # 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)