Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. ###
  2. # Sourceforge helper Makefile
  3. ###
  4. USER=jerryjacobs
  5. HOSTNAME=shell.sourceforge.net
  6. PROJECT=avra
  7. HTDOCS=/home/groups/a/av/avra/htdocs
  8.  
  9. all: help
  10.  
  11. upload: htdocs_scp htdocs_chmod
  12.  
  13. ###
  14. # Help message
  15. ###
  16. help:
  17.         @echo "No command specified! Available commands:"
  18.         @echo
  19.         @echo "Current settings"
  20.         @echo "----------------"
  21.         @echo "  User: ${USER}"
  22.         @echo "  Hostname: ${HOSTNAME}"
  23.         @echo "  Project: ${PROJECT}"
  24.         @echo "  Remote htdoc: ${HTDOCS}"
  25.         @echo
  26.         @echo "Shell commands"
  27.         @echo "--------------"
  28.         @echo "  * shell, open a shell"
  29.         @echo "  * shell_create, create a shell"
  30.         @echo
  31.         @echo "htdocs commands"
  32.         @echo "---------------"
  33.         @echo "  * htdocs_scp, copy all files from current dir to remote htdocs"
  34.         @echo "  * htdocs_rm, remove all files from remote htdocs"
  35.  
  36. ###
  37. # Shell
  38. ###
  39. shell:
  40.         ssh ${USER},${PROJECT}@${HOSTNAME}
  41.  
  42. shell_create:
  43.         ssh ${USER},${PROJECT}@${HOSTNAME} create
  44.  
  45. ###
  46. # htdocs
  47. ###
  48. htdocs_scp:
  49.         scp -r * ${USER}@${HOSTNAME}:${HTDOCS}
  50.  
  51. htdocs_chmod:
  52.         ssh ${USER}@${HOSTNAME} chmod -Rv ug+rw ${HTDOCS}/*
  53.  
  54. htdocs_rm:
  55.         ssh ${USER}@${HOSTNAME} rm -Rv ${HTDOCS}/*
  56.