removed upload things from build script"

This commit is contained in:
shockrah 2019-09-13 22:01:51 -07:00
parent c54517e9cc
commit 71748a8b48

12
make
View File

@ -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)