Author: Paul_R
Date: 2008-09-18 14:44:35 +0200 (Thu, 18 Sep 2008)
New Revision: 1903
Added:
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/postinst
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/preinst
Modified:
software_suite_v2/tuxware/installers/unix/trunk/build.sh
Log:
* Added postinst and preinst files to build_deps
Removed the creation of these files in the script
Modified: software_suite_v2/tuxware/installers/unix/trunk/build.sh
===================================================================
--- software_suite_v2/tuxware/installers/unix/trunk/build.sh 2008-09-18
10:47:31 UTC (rev 1902)
+++ software_suite_v2/tuxware/installers/unix/trunk/build.sh 2008-09-18
12:44:35 UTC (rev 1903)
@@ -194,24 +194,13 @@
createPostInstFileDeb () {
echo Creating post install script
- echo "#!/bin/bash" >$POSTINST
- echo "cd /opt/tuxdroid/python_api" |tee -a $POSTINST >/dev/null
- echo "python setup.py install >/dev/null" |tee -a $POSTINST >/dev/null
- echo "cd .." |tee -a $POSTINST >/dev/null
- echo "rm -rf python_api" |tee -a $POSTINST >/dev/null
- echo "chmod +x /opt/tuxdroid/bin/*" |tee -a $POSTINST >/dev/null
- echo "update-rc.d tuxhttpserver defaults >/dev/null" |tee -a $POSTINST
>/dev/null
- echo "/etc/init.d/tuxhttpserver start" |tee -a $POSTINST >/dev/null
- echo "chmod 777 /opt/tuxdroid/controlcenter" |tee -a $POSTINST >/dev/null
- echo "gksu -u $USER /opt/tuxdroid/misc/tux_updater" |tee -a $POSTINST
>/dev/null
+ cp ./build_deps/common/postinst ./build/
chmod +x $POSTINST
}
createPreInstFileDeb () {
echo Creating pre install script
- echo "#!/bin/bash" >$PREINST
- echo "if [ -e /etc/init.d/tuxhttpserver ]; then" |tee -a $PREINST
>/dev/null
- echo "/etc/init.d/tuxhttpserver stop; fi" |tee -a $PREINST >/dev/null
+ cp ./build_deps/common/preinst ./build/
chmod +x $PREINST
}
Added:
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/postinst
===================================================================
--- software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/postinst
(rev 0)
+++ software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/postinst
2008-09-18 12:44:35 UTC (rev 1903)
@@ -0,0 +1,10 @@
+#!/bin/bash
+cd /opt/tuxdroid/python_api
+python setup.py install >/dev/null
+cd ..
+rm -rf python_api
+chmod +x /opt/tuxdroid/bin/*
+update-rc.d tuxhttpserver defaults
+/etc/init.d/tuxhttpserver start
+chmod 777 /opt/tuxdroid/controlcenter
+gksu -u $USER /opt/tuxdroid/misc/tux_updater
Added: software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/preinst
===================================================================
--- software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/preinst
(rev 0)
+++ software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/preinst
2008-09-18 12:44:35 UTC (rev 1903)
@@ -0,0 +1,3 @@
+#!/bin/bash" >$PREINST
+if [ -e /etc/init.d/tuxhttpserver ]; then
+/etc/init.d/tuxhttpserver stop; fi
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn