[Pychord-commits] r16 - /
danilo at garage.maemo.org
danilo at garage.maemo.org
Mon Oct 8 15:57:18 EEST 2007
Author: danilo
Date: 2007-10-08 15:57:17 +0300 (Mon, 08 Oct 2007)
New Revision: 16
Removed:
make/
Modified:
gen.sh
Log:
Removing make directory
Fixing deb generator script
Modified: gen.sh
===================================================================
--- gen.sh 2007-10-08 12:41:34 UTC (rev 15)
+++ gen.sh 2007-10-08 12:57:17 UTC (rev 16)
@@ -5,7 +5,40 @@
# This script should be run from pychord svn root directory
-# Coping files
+
+rm -fr "make"
+#creating directories
+
+mkdir -p "make/usr/bin/"
+mkdir -p "make/usr/share/pychord"
+mkdir -p "make/usr/share/pixmaps"
+mkdir -p "make/usr/share/doc/pychord"
+
+#Coping icon
+cp trunk/icon/pychord.png "make/usr/share/pixmaps/pychord.png"
+
+#Creating executable file
+cat > make/usr/bin/pychord <<END
+#!/bin/sh
+
+python2.5 /usr/share/pychord/pychord.py
+END
+chmod +x make/usr/bin/pychord
+
+#Creating hildon.desktop file
+cat > make/usr/share/applications/hildon/pychord.desktop <<END
+[Desktop Entry]
+Encoding=UTF-8
+Version=$VERSION
+Type=Application
+Name=PyChord
+Exec=/usr/bin/pychord
+Icon=pychord
+StartupWMClass=pychord
+X-Osso-Type=application/x-executable
+END
+
+# Coping files from trunk-tree
# ./PyChord
mkdir -p make/usr/share/pychord/PyChord
cp trunk/PyChord/Chstrings.py make/usr/share/pychord/PyChord/Chstrings.py
@@ -43,7 +76,7 @@
# write the README file
cat > usr/share/doc/pychord/README <<END
-This is an application to help musicians in for Maemo.
+This is a Maemo's application to help musicians with song chords.
END
@@ -79,7 +112,7 @@
# create the data tarball
# (the tar options "czvf" mean create, zip, verbose, and filename.)
#rm -fr $(find | grep svn)
-rm -fr $(find | egrep "pyc$")
+#rm -fr $(find | egrep "pyc$")
tar czvf data.tar.gz usr
# create the control tarball
@@ -97,10 +130,4 @@
# remove the tarballs, and cd back up to where we started
rm data.tar.gz control.tar.gz prerm control debian-binary
-# Removing files to fix svn-tree
-rm -fr usr/share/pychord/PyChord
-rm -fr usr/share/pychord/img
-rm -fr usr/share/pychord/pywi
-rm -fr usr/share/pychord/pychord.py
-
cd ..
More information about the Pychord-commits
mailing list