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

Saturday, March 29th, 2008 at 6:39:56pm UTC 

  1. #!/bin/sh
  3. srcdir=~/src/rockbox
  4. tarball=/tmp/rockbox.tar
  5. tempdir=/tmp/rockbox-temp
  6. outfile=/tmp/rockbox.7z
  8. # remove previous leftovers
  9. rm -rf $tempdir $tarball
  11. cd $srcdir
  13. # get the svn revision
  14. version=`svnversion`
  16. # create the dir name based on revision number
  17. rbdir=$tempdir/rockbox-$version
  19. # create new temp dir
  20. mkdir -p $rbdir
  22. # copy everything to the temp dir
  23. svn ls -R | xargs -Imoo cp --parents moo $rbdir 2>/dev/null
  25. cd $tempdir
  27. rm -f $outfile
  29. # 7zip the entire directory
  30. 7zr a $outfile rockbox*
  32. # world readable please
  33. chmod a+r $outfile
  35. # remove temporary files
  36. rm -rf $tempdir $tarball

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 expire by default in one month. 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