git commit -a -m "speedwm-mkpage: Uploaded new page."
git push && exit 0
echo "Could not git push."
exit 1
}
MKHTML() {
./speedwm-help -whtml
cd ..
echo "Created readme.html"
}
MKMD() {
./speedwm-help -wmd
cd ..
echo "Created README.md"
}
MK() {
./speedwm-help -w
cd ..
echo "Created readme"
}
# Perform actions based on user input
case "$1" in
"") echo "speedwm-mkpage\nNo arguments | Show the help screen\n-h | Show the help screen\n-mkpage | Create full page with templates from docs/\n-mkhtml | Create HTML document based on speedwm documentation\n-mkmd | Create markdown file (usually for use with GitHub repositories)\n-mk | Copy the output of speedwm-help -a to 'readme'.\n-ulspeedwm | Auto-push speedwm changes\n" ; exit 0 ;;