yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #06299
[Branch ~yade-dev/yade/trunk] Rev 2575: 1. scripts/debian-prep creates orig.tar.gz and removes .bzr directory
------------------------------------------------------------
revno: 2575
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: trunk
timestamp: Fri 2010-11-26 09:27:41 +0100
message:
1. scripts/debian-prep creates orig.tar.gz and removes .bzr directory
modified:
scripts/debian-prep
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'scripts/debian-prep'
--- scripts/debian-prep 2010-11-26 07:42:42 +0000
+++ scripts/debian-prep 2010-11-26 08:27:41 +0000
@@ -44,15 +44,23 @@
# package is yade-0.50, but with UPDATE .1, it is version 0.50.1
+# rename a current folder and create orig.tar.gz
+curName = os.path.basename(os.path.abspath(''))
+newName = 'yade-%s_%s' % (VERSION,DISTRIBUTION)
+os.rename (('../'+curName), '../'+newName)
+shutil.rmtree('.bzr')
+os.system(('tar -czf ../yade-%s_%s.orig.tar.gz ../'+os.path.basename(os.path.abspath(''))+'/')%(VERSION,DISTRIBUTION))
+
+
# write debian/changelog
try:
open('debian/changelog','w').write(
- '''yade-%s (%s%s-%s1) %s; urgency=low
+ '''yade-%s (%s) %s; urgency=low
* Automatic debian changelog entry for yade-%s
-- %s <%s> %s
-'''%(VERSION,VERSION,UPDATE,DISTRIBUTION,DISTRIBUTION,VERSION,os.environ['DEBFULLNAME'],os.environ['DEBEMAIL'],time.strftime("%a, %d %b %Y %H:%M:%S +0000",time.gmtime())))
+'''%(VERSION,DISTRIBUTION,DISTRIBUTION,VERSION,os.environ['DEBFULLNAME'],os.environ['DEBEMAIL'],time.strftime("%a, %d %b %Y %H:%M:%S +0000",time.gmtime())))
except KeyError:
print "Please, set DEBEMAIL and DEBFULLNAME as described here http://www.debian.org/doc/maint-guide/ch-first.en.html"