]> git.pld-linux.org Git - projects/distfiles.git/blame - show_spec.sh
- changes for repositories kept in git
[projects/distfiles.git] / show_spec.sh
CommitLineData
ad64e6a8
KK
1#!/bin/sh
2
3GIT_SERVER=carme.pld-linux.org
4
5package=$1
6ref=$2
7
8exticode=0
9
10export GIT_DIR=`mktemp -d gitemp.XXXXXX --tmpdir`
11(
12 set -e
13 git init --bare >/dev/null
14 git fetch --depth=1 git://${GIT_SERVER}/packages/$package $ref:
15 git ls-tree --name-only FETCH_HEAD | grep '.spec$' | while read file; do
16 git show FETCH_HEAD:$file > $package || exitcode=1
17 done
18)
19exitcode=$?
20rm -rf $GIT_DIR
21exit $exitcode
22
This page took 0.022657 seconds and 4 git commands to generate.