2008-02-24 15:23:39 -05:00
|
|
|
#!/bin/sh -e
|
2005-09-19 08:46:50 -04:00
|
|
|
#
|
|
|
|
# Graft the ELinks development history to the current tree.
|
|
|
|
#
|
|
|
|
# Note that this will download about 80M.
|
|
|
|
|
|
|
|
if [ -z "`which wget 2>/dev/null`" ]; then
|
|
|
|
echo "Error: You need to have wget installed so that I can fetch the history." >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2005-12-14 13:32:18 -05:00
|
|
|
[ "$GIT_DIR" ] || GIT_DIR=.git
|
|
|
|
if ! [ -d "$GIT_DIR" ]; then
|
|
|
|
echo "Error: You must run this from the project root (or set GIT_DIR to your .git directory)." >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
cd "$GIT_DIR"
|
2005-09-19 08:46:50 -04:00
|
|
|
|
|
|
|
echo "[grafthistory] Downloading the history"
|
2005-12-14 13:32:18 -05:00
|
|
|
mkdir -p objects/pack
|
2005-09-19 08:46:50 -04:00
|
|
|
cd objects/pack
|
2008-02-28 03:55:47 -05:00
|
|
|
echo "ELinks history converted from CVS. Keep this pack separate to speed up git gc." \
|
|
|
|
> pack-0d6c5c67aab3b9d5d9b245da5929c15d79124a48.keep
|
2008-02-24 15:24:33 -05:00
|
|
|
# pack-0d6c5c67aab3b9d5d9b245da5929c15d79124a48.idx is 3163784 bytes long.
|
|
|
|
# Downloading it takes less than 6 seconds here, whereas generating it
|
|
|
|
# with git index-pack takes over 4 minutes (750 MHz Duron, git 1.5.4.1).
|
2005-12-28 23:43:25 -05:00
|
|
|
wget -c http://elinks.cz/elinks-history.git/objects/pack/pack-0d6c5c67aab3b9d5d9b245da5929c15d79124a48.idx
|
|
|
|
wget -c http://elinks.cz/elinks-history.git/objects/pack/pack-0d6c5c67aab3b9d5d9b245da5929c15d79124a48.pack
|
2005-09-19 08:46:50 -04:00
|
|
|
|
|
|
|
echo "[grafthistory] Setting up the grafts"
|
|
|
|
cd ../..
|
2005-12-14 13:32:18 -05:00
|
|
|
mkdir -p info
|
2005-09-19 08:46:50 -04:00
|
|
|
# master
|
|
|
|
echo 0f6d4310ad37550be3323fab80456e4953698bf0 06135dc2b8bb7ed2e441305bdaa82048396de633 >>info/grafts
|
|
|
|
# REL_0_10
|
|
|
|
echo 43a9a406737fd22a8558c47c74b4ad04d4c92a2b 730242dcf2cdeed13eae7e8b0c5f47bb03326792 >>info/grafts
|
|
|
|
|
|
|
|
echo "[grafthistory] Refreshing the dumb server info wrt. new packs"
|
|
|
|
cd ..
|
2008-02-24 15:13:00 -05:00
|
|
|
git update-server-info
|