From 266a2cdcc03f9fb7ff4199401c9e8f88ff3c429d Mon Sep 17 00:00:00 2001 From: Walmes Zeviani <walmes@ufpr.br> Date: Mon, 28 Sep 2015 16:43:36 -0300 Subject: [PATCH] First version of a pre-push script to upload to puclic folder. --- .hooks/pre-push | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .hooks/pre-push diff --git a/.hooks/pre-push b/.hooks/pre-push new file mode 100644 index 0000000..4d1aee2 --- /dev/null +++ b/.hooks/pre-push @@ -0,0 +1,13 @@ +#!/bin/bash + +# To use this script, copy it to .git/hooks. + +# Return the content in the public datasets folder. +# ssh leg@$PATAXO -p$PATAXOP "ls -la ~/public_html/legTools/datasets" + +# Tranfering data-raw/*.txt files. +rsync -avzh --progress data-raw/*.txt -e "ssh -p $PATAXOP" \ + leg@$PATAXO:~/public_html/legTools/datasets/ + +# Tranfering vignettes/*.html files. +# Tranfering manual in pdf, zip and tar.gz source files. -- GitLab