kolibrios/contrib/toolchain/avra/doc/Makefile
Serhii Sakhno 7c539d8e19 upload avra
git-svn-id: svn://kolibrios.org@6400 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-04-13 17:05:47 +00:00

56 lines
1.1 KiB
Makefile

###
# Sourceforge helper Makefile
###
USER=jerryjacobs
HOSTNAME=shell.sourceforge.net
PROJECT=avra
HTDOCS=/home/groups/a/av/avra/htdocs
all: help
upload: htdocs_scp htdocs_chmod
###
# Help message
###
help:
@echo "No command specified! Available commands:"
@echo
@echo "Current settings"
@echo "----------------"
@echo " User: ${USER}"
@echo " Hostname: ${HOSTNAME}"
@echo " Project: ${PROJECT}"
@echo " Remote htdoc: ${HTDOCS}"
@echo
@echo "Shell commands"
@echo "--------------"
@echo " * shell, open a shell"
@echo " * shell_create, create a shell"
@echo
@echo "htdocs commands"
@echo "---------------"
@echo " * htdocs_scp, copy all files from current dir to remote htdocs"
@echo " * htdocs_rm, remove all files from remote htdocs"
###
# Shell
###
shell:
ssh ${USER},${PROJECT}@${HOSTNAME}
shell_create:
ssh ${USER},${PROJECT}@${HOSTNAME} create
###
# htdocs
###
htdocs_scp:
scp -r * ${USER}@${HOSTNAME}:${HTDOCS}
htdocs_chmod:
ssh ${USER}@${HOSTNAME} chmod -Rv ug+rw ${HTDOCS}/*
htdocs_rm:
ssh ${USER}@${HOSTNAME} rm -Rv ${HTDOCS}/*