summaryrefslogtreecommitdiff
path: root/test/setup
blob: d4193ad0c50f5bda8b737ba44388e0036d4a4fb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## vim:ft=zsh
echo "# setting up PKG_ROOT"
cd $test_proot
git clone --quiet ${1-git://derf.homelinux.org/caretaker} caretaker
cp caretaker/examples/pkglist pkglist
for repo in ra rb rc; (
	mkdir $repo
	cd $repo
	git init --quiet
	git config receive.denyCurrentBranch ignore
	touch foo
	mkdir bin
	touch bin/$repo
	mkdir -p man/2
	echo "=head1 WASTED SPACE\n\nhuhu" > man/2/$repo
	chmod 755 bin/$repo
	echo 'touch ~/prereq_ok_'$repo > prereqs
	git add .
	git commit --quiet -m 'initial commit'
	cd ..
	mkdir ${repo}-bare
	cd ${repo}-bare
	git --bare init --quiet
	cd ../$repo
	git push ../${repo}-bare master
)