2008-09-01 02:52:32 +07:00
|
|
|
default:
|
|
|
|
echo "sorry, no default action"
|
|
|
|
|
2009-04-06 12:04:18 +07:00
|
|
|
uninstall:
|
|
|
|
rm -rf /opt/relational
|
|
|
|
rm -f /usr/local/bin/relational
|
2009-04-08 01:09:36 +07:00
|
|
|
rm -f /usr/share/applications/relational.desktop
|
2009-04-06 12:04:18 +07:00
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir /opt/relational
|
|
|
|
cp -R relational relational_gui /opt/relational/
|
|
|
|
cp relational_gui.py /opt/relational
|
|
|
|
chmod -R 555 /opt/relational/
|
|
|
|
echo "#!/bin/bash" > /usr/local/bin/relational
|
|
|
|
echo "/opt/relational/relational_gui.py" >> /usr/local/bin/relational
|
|
|
|
chmod 555 /usr/local/bin/relational
|
2009-04-08 01:09:36 +07:00
|
|
|
cp relational.desktop /usr/share/applications/
|
|
|
|
chmod a+r /usr/share/applications/relational.desktop
|
2009-04-06 12:04:18 +07:00
|
|
|
|
2011-03-22 11:17:41 +07:00
|
|
|
dist: clean
|
2009-02-24 08:32:00 +07:00
|
|
|
rm -rf /tmp/relational/
|
2011-03-04 06:18:22 +07:00
|
|
|
rm -rf /tmp/relational-*
|
2009-02-24 08:32:00 +07:00
|
|
|
mkdir /tmp/relational/
|
|
|
|
cp -R * /tmp/relational/
|
2011-03-03 12:11:02 +07:00
|
|
|
rm -rf /tmp/relational/windows
|
|
|
|
rm -rf /tmp/relational/samples/.svn/
|
2011-03-22 11:17:41 +07:00
|
|
|
rm -rf /tmp/relational/setup/.svn/
|
2011-03-03 12:11:02 +07:00
|
|
|
rm -rf /tmp/relational/debscript/.svn/
|
|
|
|
rm -rf /tmp/relational/mac/.svn/
|
|
|
|
rm -rf /tmp/relational/relational/.svn/
|
|
|
|
rm -rf /tmp/relational/relational_gui/.svn/
|
|
|
|
rm -rf /tmp/relational/mac
|
|
|
|
rm -rf /tmp/relational/debian/
|
|
|
|
rm -rf /tmp/relational/relational_curses/.svn/
|
|
|
|
rm -rf /tmp/relational/relational_readline/.svn/
|
|
|
|
rm -rf /tmp/relational/test/.svn
|
|
|
|
|
2011-03-04 06:18:22 +07:00
|
|
|
#mv /tmp/relational /tmp/relational-`./relational_gui.py -v | grep Relational | cut -d" " -f2`
|
|
|
|
#(cd /tmp; tar -zcf relational.tar.gz relational-*/)
|
|
|
|
(cd /tmp; tar -zcf relational.tar.gz relational/)
|
2010-07-02 10:07:26 +07:00
|
|
|
mv /tmp/relational.tar.gz ./relational_`./relational_gui.py -v | grep Relational | cut -d" " -f2`.tar.gz
|
2009-02-24 08:32:00 +07:00
|
|
|
|
2008-09-01 02:52:32 +07:00
|
|
|
clean:
|
2009-02-24 08:32:00 +07:00
|
|
|
rm -rf *~ || echo ok
|
|
|
|
rm -rf *.pyc *.pyo || echo ok
|
2008-09-01 02:52:32 +07:00
|
|
|
rm -rf Relational.app || echo ok
|
2008-11-15 09:51:04 +07:00
|
|
|
rm relational*.tar.gz || echo ok
|
2009-03-02 10:29:11 +07:00
|
|
|
rm -rf relational_mac
|
2008-11-15 09:33:02 +07:00
|
|
|
rm -rf data || echo ok
|
2009-02-24 08:32:00 +07:00
|
|
|
rm -rf *tar.bz || echo ok
|
2008-11-15 09:33:02 +07:00
|
|
|
rm -rf *.deb || echo ok
|
2009-03-02 10:29:11 +07:00
|
|
|
rm -rf relational/*~ || echo ok
|
2011-03-03 12:11:02 +07:00
|
|
|
rm -rf relational/*.pyc relational/*.pyo || echo ok
|
2009-03-02 10:29:11 +07:00
|
|
|
rm -rf relational_gui/*~ || echo ok
|
2011-03-03 12:11:02 +07:00
|
|
|
rm -rf relational_gui/*.pyc || echo ok
|
|
|
|
rm -rf relational_gui/*.pyo || echo ok
|
|
|
|
rm -rf relational_curses/*~ || echo ok
|
|
|
|
rm -rf relational_curses/*.pyc || echo ok
|
|
|
|
rm -rf relational_curses/*.pyo || echo ok
|
|
|
|
rm -rf relational_readline/*~ || echo ok
|
|
|
|
rm -rf relational_readline/*.pyc || echo ok
|
|
|
|
rm -rf relational_readline/*.pyo || echo ok
|
2011-03-22 11:17:41 +07:00
|
|
|
rm -rf setup/*.pyc || echo ok
|
|
|
|
rm -rf setup/*.pyo || echo ok
|
2009-03-08 03:31:39 +07:00
|
|
|
rm -rf relational_mac
|
2011-03-03 12:11:02 +07:00
|
|
|
rm -rf test/*~
|
2008-09-01 02:52:32 +07:00
|
|
|
mac: app
|
2009-03-02 10:29:11 +07:00
|
|
|
mkdir relational_mac || echo Exists
|
|
|
|
mv Relational.app relational_mac
|
|
|
|
mkdir relational_mac/samples || echo Exists
|
|
|
|
cp samples/*csv relational_mac/samples
|
2010-07-02 10:11:16 +07:00
|
|
|
tar -zcvvf relational_`./relational_gui.py -v | grep Relational | cut -d" " -f2`.tar.gz relational_mac/
|
2009-03-08 03:31:39 +07:00
|
|
|
rm -rf relational_mac
|
2008-09-01 02:52:32 +07:00
|
|
|
app:
|
2009-03-08 04:46:29 +07:00
|
|
|
mkdir -p Relational.app/Contents/Resources || echo Exists
|
2008-09-01 02:52:32 +07:00
|
|
|
cp *py Relational.app/Contents/Resources
|
2009-03-08 04:46:29 +07:00
|
|
|
mkdir -p Relational.app/Contents/Resources/relational || echo Exists
|
2009-03-02 10:29:11 +07:00
|
|
|
cp relational/*py Relational.app/Contents/Resources/relational
|
2009-03-08 04:46:29 +07:00
|
|
|
mkdir -p Relational.app/Contents/Resources/relational_gui || echo Exists
|
2009-03-02 10:29:11 +07:00
|
|
|
cp relational_gui/*py Relational.app/Contents/Resources/relational_gui
|
2008-09-01 02:52:32 +07:00
|
|
|
cp mac/Info.plist mac/PkgInfo Relational.app/Contents
|
2009-03-08 04:46:29 +07:00
|
|
|
mkdir -p Relational.app/Contents/MacOS || echo Exists
|
|
|
|
cp mac/relational_gui mac/Python Relational.app/Contents/MacOS
|
|
|
|
cp mac/PythonApplet.icns mac/__argvemulator_relational_gui.py Relational.app/Contents/Resources/
|
2008-11-15 09:33:02 +07:00
|
|
|
|
2008-11-15 09:51:04 +07:00
|
|
|
debian:
|
2010-08-10 12:53:43 +07:00
|
|
|
dpkg-buildpackage
|