parent
05c2237ec2
commit
e6e3f6b798
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME=$(basename $PWD)
|
||||||
|
VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec)
|
||||||
|
COMMIT=$(sed -n '/^%global commit/{s/.* //;p}' $NAME.spec)
|
||||||
|
SHORT=${COMMIT:0:7}
|
||||||
|
|
||||||
|
echo -e "\nCreate git snapshot\n"
|
||||||
|
|
||||||
|
echo "Cloning..."
|
||||||
|
rm -rf $NAME-$VERSION
|
||||||
|
git clone https://aomedia.googlesource.com/aom $NAME-$VERSION
|
||||||
|
|
||||||
|
echo "Getting commit..."
|
||||||
|
pushd $NAME-$VERSION
|
||||||
|
git checkout $COMMIT
|
||||||
|
popd
|
||||||
|
|
||||||
|
echo "Archiving..."
|
||||||
|
tar czf $NAME-$VERSION.tar.gz $NAME-$VERSION/
|
||||||
|
|
||||||
|
echo "Cleaning..."
|
||||||
|
rm -rf $NAME-$VERSION
|
||||||
|
|
||||||
|
echo "Done."
|
@ -1 +1 @@
|
|||||||
SHA512 (aom-1.0.0.tar.gz) = 85bca7eff7a247efd0772bcbbba2e8d1bc10390c64551b4a63ecf95b89bca3ad899e4aa04b8cb5d3ed3aaa42ab5e0b7f5612b085106375088062b38a2121d203
|
SHA512 (aom-1.0.0.tar.gz) = 467aeaa02dee485a7f8d87abe1ab3ee3c847f355db8897250f300e47c35e678d8aa0e34e1a1faeeda57c0faabb5b2c6f99f0a82e6177dbda51d4d90de6c26d0f
|
||||||
|
Loading…
Reference in new issue