commit aaf5bcee55f5d54fa26fd8afb32df77dac0625a6
parent 3300f24d6eac9892f0e80347c7390160f0c58d24
Author: Tyler Clark <tyler.clark@foxide.xyz>
Date: Sun, 26 Apr 2026 01:54:01 -0400
Adding ability to create new repo from remote machine and help menu.
This patch adds a help menu that is somewhat useful, as well as adding the
ability to create new repositories from remote machines using SSH.
Diffstat:
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/scripts/mkrepo b/scripts/mkrepo
@@ -5,9 +5,10 @@
# The process should look like:
# 1. DONE Create ${REPO}
# 2. DONE Set description for ${REPO}, unless flag is set to skip
-# 3. TODO Create README.md for ${REPO}, unless flag is set to skip
-# 4. HOLD Implement 'template' repos
-# 5. HOLD Copy license file to ${REPO}, unless flag is set to skip
+# 3. DONE Create a useful help menu
+# 4. TODO Create README.md for ${REPO}, unless flag is set to skip
+# 5. HOLD Implement 'template' repos
+# 6. HOLD Copy license file to ${REPO}, unless flag is set to skip
REPODIR="/usr/local/www/git"
TEMPLATE=0
@@ -18,6 +19,13 @@ REMOTE=""
help()
{
echo "Will put something here once flags are decided fully."
+
+ echo "mkrepo [OPTIONS]"
+ echo ""
+ echo "-d: Does not add description to the repository"
+ echo "-h: Print this help menu"
+ echo "-n (NAME): The name of the new repo being created"
+ echo "-r (URL): Create repository on server URL, this requires SSH be setup for that target in the relevant location"
}
createRepo()
@@ -52,7 +60,7 @@ createRepo()
git init --bare ${REPODIR}/${NAME}${EXT}
if [ ${NO_DESC} != 1]; then
- vim ${REPODIR}/${NAME}${EXT}/description
+ $EDITOR ${REPODIR}/${NAME}${EXT}/description
fi
printf "#!/bin/sh\n