1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

mkdist: use git instead of cogito

<http://git.or.cz/cogito/> says Cogito is deprecated and unmaintained.
This commit is contained in:
Kalle Olavi Niemitalo 2008-06-30 17:45:35 +03:00 committed by Kalle Olavi Niemitalo
parent 80aa801e6a
commit 6e3011b29a

View File

@ -88,7 +88,7 @@ then
label=$rev label=$rev
fi fi
commit=$(GIT_DIR=$GIT_DIR cg-object-id -c "$rev") || exit 1 commit=$(git --git-dir="$GIT_DIR" rev-parse --verify "$rev^{commit}") || exit 1
if [ "$snap" ] if [ "$snap" ]
then then
@ -104,7 +104,8 @@ tmpdir=$(mktemp -d -t elinks-dist-XXXXXXXX) || exit 1
# To make it easier to compare build logs, put the source first in an # To make it easier to compare build logs, put the source first in an
# "elinks" directory, and only move to "$tartopdir" when finished. # "elinks" directory, and only move to "$tartopdir" when finished.
GIT_DIR=$GIT_DIR cg-export -r "$rev" -- "$tmpdir/elinks" git --git-dir="$GIT_DIR" archive --format=tar --prefix="elinks/" "$rev" |
(cd -- "$tmpdir" && tar -xf -)
mkdir -- "$tmpdir/elinks/.git" mkdir -- "$tmpdir/elinks/.git"
printf "%s\n" "$commit" > "$tmpdir/elinks/.git/HEAD" printf "%s\n" "$commit" > "$tmpdir/elinks/.git/HEAD"