You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aom/makesrc.sh

26 lines
514 B

#!/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."