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.
29 lines
491 B
29 lines
491 B
#!/bin/bash
|
|
|
|
set -x
|
|
set -e
|
|
|
|
REPONAME=gnome-commander
|
|
GITURL=https://gitlab.gnome.org/GNOME/${REPONAME}.git
|
|
BRANCH=gcmd-1-12
|
|
|
|
DATE=$(date '+%Y%m%d')
|
|
TIME=$(date '+%H%M')
|
|
|
|
TARNAME=${REPONAME}-${DATE}T${TIME}.tar.gz
|
|
|
|
PWDDIR=$(pwd)
|
|
TMPDIR=$(mktemp -d /var/tmp/${REPONAME}-XXXXXX)
|
|
pushd $TMPDIR
|
|
|
|
git clone --mirror $GITURL
|
|
tar czf ${TARNAME} ${REPONAME}.git/
|
|
|
|
pushd ${REPONAME}.git/
|
|
git log --first-parent --format=fuller ${BRANCH} | head -n 12
|
|
popd
|
|
|
|
cp -p ${TARNAME} $PWDDIR
|
|
popd
|
|
rm -rf $TMPDIR
|