summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2009-11-17 21:01:05 -0500
committerEamon Walsh <ewalsh@tycho.nsa.gov>2009-11-17 21:01:05 -0500
commit3cb6916ee0295cc3e9b27fe94567a6d9c5dbb5a4 (patch)
treef7b61e193f54bd7c2c95a25cf5a87a62c1f79757
parent113965b2d798f08563393f2fda82ea00af3a585e (diff)
Add fdo repo script.
-rwxr-xr-xmkrepo.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/mkrepo.sh b/mkrepo.sh
new file mode 100755
index 0000000..3d801d8
--- /dev/null
+++ b/mkrepo.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if [ -z $1 ]; then
+ echo "Usage: $0 <reponame>."
+ exit
+fi
+
+repodir="$1.git"
+
+if [ -d $repodir ]; then
+ echo "Directory $repodir already exists."
+ exit
+fi
+
+mkdir $repodir
+GIT_DIR=$repodir git init
+touch $repodir/git-daemon-export-ok
+read -e -p "Description: " description
+echo -E $description > $repodir/description
+chmod +x $repodir/hooks/post-update