diff --git a/make b/make index 0a2eb71..296143e 100755 --- a/make +++ b/make @@ -1,13 +1,7 @@ #!/bin/bash -rootDir='./tmp/' +rootDir='./site/' targetDir='post/' -if [ -f .creds ] -then - source .creds - url="https://$user:$pass@neocities.org/api/upload" -fi -# auto tools should be able to fix this post() { echo Building: $1 tmp=".swap" @@ -62,7 +56,7 @@ then exit 0 fi -while getopts ":aslrhup:" opt;do +while getopts ":aslrhp:" opt;do case "$opt" in a) build_all;; @@ -85,8 +79,6 @@ while getopts ":aslrhup:" opt;do post $file done ;; - u) - upload;; # this needs a proper fix according to api h) _help;; l)