On 05/04/2012 04:30 PM, Josh Stone wrote:
> On 05/04/2012 12:41 PM, William Cohen wrote:
>> git clone ssh://sourceware.org/git/dyninstfans.git dyninst
>> pushd dyninst; git checkout wcohen/dyninst/spec; popd
>> # used the --reference option below to speed up the creation
>> git clone ssh://sourceware.org/git/dyninstfans.git packagers --reference ./dyninst
>> pushd packagers; git checkout wcohen/packagers/spec; popd
>
> FYI, git clone can take a '-b' option to specify the initial branch,
> making this a little more direct than pushd/checkout/popd.
>
> Also, people without sourceware accounts should also use git:// or
> http:// urls, which are otherwise identical.
>
> Josh
Josh, thanks for the comments. Below is a revised set of steps:
export DYNINSTSRC=/tmp/packaging
mkdir $DYNINSTSRC; cd $DYNINSTSRC
git clone http://sourceware.org/git/dyninstfans.git dyninst \
-b wcohen/dyninst/spec
# used the --reference option below to speed up the creation
git clone http://sourceware.org/git/dyninstfans.git packagers \
--reference ./dyninst -b wcohen/packagers/spec
git clone http://git.dyninst.org/docs.git
git clone http://git.dyninst.org/scripts.git
cd packagers/rpm
./maketar.sh $DYINSTSRC ~/rpmbuild/SOURCES
#you may need to tweak version in start of spec file to match generated tarball
rpmbuild -ba dyninst.spec
# src rpm should be in ~/rpmbuild/SRPMS
# binary RPMS should be in ~/rpmbuild/RPMS/<arch>
-Will
|