On Tue, 03 Jun 2008 01:56:49 +1000 Allan McRae <[EMAIL PROTECTED]> wrote:
> Dan McGee wrote: > > While we are making changes, can you see an easy way to get everything > > under a pkgname/ dir (maybe with pkgver-pkgrel too) inside the > > tarball? Unfortunately bsdtar has no --prefix option to easily do > > this, and our friend Loui says it is doable but has not offered a line > > of code. > > I think that is along the lines of what Loui was suggesting. It also > removes the whole -C issue without adding any further SOURCEONLY=2 checks. I can't quite grok the makepkg source code so I'll just demonstrate what I do via a lil script. Enjoy! :D #!/bin/bash # Script for making source tarballs # $1 = directory name # $2 = release version if [ "$1" == "" ]; then echo "Usage: $0 <directory_name> <release_version>" exit fi echo "Creating temporary symlink $1-$2" ln -s $1 $1-$2 tar -cvvzf $1-$2.tar.gz $(find $1-$2/ -type f) echo "Removing symlink $1-$2" rm $1-$2 exit _______________________________________________ pacman-dev mailing list pacman-dev@archlinux.org http://archlinux.org/mailman/listinfo/pacman-dev