24 lines
386 B
Bash
Executable file
24 lines
386 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd $(dirname $0)
|
|
|
|
for name in $@; do
|
|
dir="../$name.git"
|
|
url="ssh://osh@192.168.2.6:/~/git/$name.git"
|
|
|
|
mkdir $dir
|
|
pushd $dir
|
|
git init --bare
|
|
popd
|
|
|
|
|
|
echo "Oshgnacknak" > $dir/owner
|
|
echo $url > $dir/url
|
|
${EDITOR:-vi} $dir/description
|
|
ln -sr post-receive.sh $dir/hooks/post-receive
|
|
|
|
./build.sh $dir
|
|
echo "Clone: $url"
|
|
done
|