Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Paste Description for DaveMorris

The debian control stuff all sits in debian-feisty/gutsy and is copied in

DaveMorris
Wednesday, October 24th, 2007 at 7:38:04pm UTC 

  1. #!/bin/sh
  2.  
  3. #### TODO ####
  4. #
  5. # This should loop through the releases rather than the same script copy and pasted
  6.  
  7. ############ start feisty build ########################
  8.  
  9. #build counter
  10. ppa=`more OSGPPA`
  11. ppa=$(($ppa+1))
  12.  
  13. #grab the latest version
  14. cvs -z3 -d:pserver:[email protected]:/cvsroot/opensg co -P OpenSG
  15.  
  16. #remove all of the CVS dir's
  17. find . -name "CVS" -print | xargs rm -rf
  18.  
  19. #move it to match the version etc
  20. mv OpenSG opensg-cvs-1.8.0alpha1
  21.  
  22. #update the changelog
  23. echo "opensg-cvs (1:1.8.0alpha1-0ubuntu1~ppa"$ppa") feisty; urgency=low" >> debian-feisty/changelog.temp
  24. echo "" >>  debian-feisty/changelog.temp
  25. echo "  * Automatic weekly build " >> debian-feisty/changelog.temp
  26. echo "" >>  debian-feisty/changelog.temp
  27. echo " -- David Morris <[email protected]> " `date --rfc-2822` >> debian-feisty/changelog.temp
  28. echo "" >>  debian-feisty/changelog.temp
  29.  
  30. mv debian-feisty/changelog.temp debian-feisty/changelog
  31.  
  32. #copy our debian control stuff in
  33. cp -r debian-feisty opensg-cvs-1.8.0alpha1/debian
  34.  
  35. #copy in the pkg-config file
  36. cp libopensg.pc opensg-cvs-1.8.0alpha1/.
  37.  
  38. #build the source package
  39. cd opensg-cvs-1.8.0alpha1
  40. dpkg-buildpackage -S -rfakeroot
  41. cd ..
  42.  
  43. #sign the source package using the phraseless key
  44. debsign -k<key-id> opensg-cvs_1.8.0alpha1-0ubuntu1~ppa*_source.changes
  45.  
  46. #upload the source package to ppa
  47. dput opensg opensg-cvs_1.8.0alpha1-0ubuntu1~ppa*_source.changes
  48.  
  49.  
  50. #save the PPA number
  51. echo $ppa > OSGPPA
  52.  
  53. #clean up the checkout
  54. rm -rf opensg-cvs-1.8.0alpha1
  55. mv opensg-cvs_1.8.0alpha1-0ubuntu1~ppa*  previous-builds/.
  56.  
  57.  
  58.  
  59. ############ end feisty build ########################
  60.  
  61. ############ start gutsy build #######################
  62.  
  63. #build counter
  64. ppa=`more OSGPPA`
  65. ppa=$(($ppa+1))
  66.  
  67. #grab the latest version
  68. cvs -z3 -d:pserver:[email protected]:/cvsroot/opensg co -P OpenSG
  69.  
  70. #remove all of the CVS dir's
  71. find . -name "CVS" -print | xargs rm -rf
  72.  
  73. #move it to match the version etc
  74. mv OpenSG opensg-cvs-1.8.0alpha1
  75.  
  76. #update the changelog
  77. echo "opensg-cvs (1:1.8.0alpha1-0ubuntu1~ppa"$ppa") gutsy; urgency=low" >> debian-gutsy/changelog.temp
  78. echo "" >>  debian-gutsy/changelog.temp
  79. echo "  * Automatic weekly build " >> debian-gutsy/changelog.temp
  80. echo "" >>  debian-gutsy/changelog.temp
  81. echo " -- David Morris <[email protected]> " `date --rfc-2822` >> debian-gutsy/changelog.temp
  82. echo "" >>  debian-gutsy/changelog.temp
  83.  
  84. mv debian-gutsy/changelog.temp debian-gutsy/changelog
  85.  
  86. #copy our debian control stuff in
  87. cp -r debian-gutsy opensg-cvs-1.8.0alpha1/debian
  88.  
  89. #copy in the pkg-config file
  90. cp libopensg.pc opensg-cvs-1.8.0alpha1/.
  91.  
  92. #build the source package
  93. cd opensg-cvs-1.8.0alpha1
  94. dpkg-buildpackage -S -rfakeroot
  95. cd ..
  96.  
  97. #sign the source package using the phraseless key
  98. debsign -k<key-id> opensg-cvs_1.8.0alpha1-0ubuntu1~ppa*_source.changes
  99.  
  100. #upload the source package to ppa
  101. dput opensg opensg-cvs_1.8.0alpha1-0ubuntu1~ppa*_source.changes
  102.  
  103.  
  104. #save the PPA number
  105. echo $ppa > OSGPPA
  106.  
  107. #clean up the checkout
  108. rm -rf opensg-cvs-1.8.0alpha1
  109. mv opensg-cvs_1.8.0alpha1-0ubuntu1~ppa*  previous-builds/.
  110.  
  111. ############ end gutsy build #######################

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right
worth-right