rubygem-rouge/rouge-create-missing-test-files.sh
Mamoru TASAKA 97550b18cc Execute spec test provided by the upstream
Backport upstream patch for ruby32 regex issue with hash character
2023-02-12 16:42:17 +09:00

34 lines
451 B
Bash

#!/bin/bash
usage() {
echo "$0 <VERSION>"
}
set -e
set -x
if [ $# -lt 1 ] ; then
usage
exit 1
fi
VERSION=$1
REPONAME=rouge
TMPDIR=$(mktemp -d /tmp/rouge-XXXXXX)
CURDIR=$(pwd)
pushd $TMPDIR
git clone https://github.com/rouge-ruby/${REPONAME}.git
cd rouge/
git reset --hard v$VERSION
cd ..
ln -sf ${REPONAME} ${REPONAME}-${VERSION}
tar czf $CURDIR/rouge-${VERSION}-test-missing-files.tar.gz ${REPONAME}-${VERSION}/spec/
popd
rm -rf $TMPDIR