Revision: 5791
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=5791&view=rev
Author: manningr
Date: 2010-08-15 19:04:09 +0000 (Sun, 15 Aug 2010)
Log Message:
-----------
scripts for rpm installation.
Added Paths:
-----------
trunk/sql12/installer/squirrelsql-other-installer/src/main/resources/postinstall.sh
trunk/sql12/installer/squirrelsql-other-installer/src/main/resources/postremove.sh
Added: trunk/sql12/installer/squirrelsql-other-installer/src/main/resources/postinstall.sh
===================================================================
--- trunk/sql12/installer/squirrelsql-other-installer/src/main/resources/postinstall.sh (rev 0)
+++ trunk/sql12/installer/squirrelsql-other-installer/src/main/resources/postinstall.sh 2010-08-15 19:04:09 UTC (rev 5791)
@@ -0,0 +1,8 @@
+#! /bin/bash
+
+if [ "$RPM_INSTALL_PREFIX" != "" ]; then
+ sed -i "s:/opt:$RPM_INSTALL_PREFIX:g" $RPM_INSTALL_PREFIX/SQuirreLSQLClient/squirrel-sql.sh
+ chmod 777 $RPM_INSTALL_PREFIX/SQuirreLSQLClient
+else
+ chmod 777 /opt/SQuirreLSQLClient
+fi
Added: trunk/sql12/installer/squirrelsql-other-installer/src/main/resources/postremove.sh
===================================================================
--- trunk/sql12/installer/squirrelsql-other-installer/src/main/resources/postremove.sh (rev 0)
+++ trunk/sql12/installer/squirrelsql-other-installer/src/main/resources/postremove.sh 2010-08-15 19:04:09 UTC (rev 5791)
@@ -0,0 +1,7 @@
+#! /bin/bash
+
+if [ "$RPM_INSTALL_PREFIX" != "" ]; then
+ rm -rf $RPM_INSTALL_PREFIX/SQuirreLSQLClient
+else
+ rm -rf /opt/SQuirreLSQLClient
+fi
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|