wayland/make-git-snapshot.sh
Thorsten Leemhuis ea60c5f1c5 update to 0.85.0
- adjust license, as upstream changed it to MIT
- update make-git-snapshot.sh to current locations and scheme
- drop common package, not needed anymore
- compositor is now in a separate package, hence reduce BuildRequires to what
  is actually needed (a lot less) and adjust summary
- make usage of a git checkout in spec file optional
- a %{?_isa} to requires where it makes sense
2012-02-19 09:22:10 +01:00

23 lines
596 B
Bash
Executable File

#!/bin/sh
# Usage: ./make-git-snapshot.sh [COMMIT]
#
# to make a snapshot of the given tag/branch. Defaults to HEAD.
# Point env var REF to a local repo to reduce clone time.
DIRNAME=wayland-$( date +%Y%m%d )
REPO=wayland
echo REF ${REF:+--reference $REF}
echo DIRNAME $DIRNAME
echo HEAD ${1:-HEAD}
rm -rf $DIRNAME
git clone ${REF:+--reference $REF} \
git://git.freedesktop.org/git/wayland/${REPO}/ $DIRNAME/${REPO}/
GIT_DIR=$DIRNAME/${REPO}/.git git archive --format=tar --prefix=${REPO}-${DIRNAME#wayland-}/ ${1:-HEAD} \
| bzip2 > ${REPO}-${DIRNAME#wayland-}.tar.bz2
# rm -rf $DIRNAME