toshio / rpms / ansible

Forked from rpms/ansible 5 years ago
Clone
fa99a17
#!/bin/sh
fa99a17
17fb6e7
VERSION="$1"
17fb6e7
TAG="$2"
17fb6e7
fa99a17
if test -d ansible-temp ; then
fa99a17
  pushd ansible-temp
fa99a17
  git checkout devel
fa99a17
  git pull --rebase
fa99a17
  popd
fa99a17
else
fa99a17
  git clone https://github.com/ansible/ansible.git ansible-temp
fa99a17
fi
fa99a17
fa99a17
pushd ansible-temp
17fb6e7
if test -n "$TAG" ; then
17fb6e7
  git checkout "$TAG"
fa99a17
fi
fa99a17
popd
17fb6e7
tar -cJvf "ansible-unittests-$VERSION.tar.xz" -C ansible-temp/ test/units