Menu

[03a9b8]: / Utilities / Homepage_Download.command  Maximize  Restore  History

Download this file

53 lines (48 with data), 1.9 kB

#!/bin/zsh
########################################################### {{{1 ###########
#   Copyright © 2005 … 2023  "Martin Krischik" «krischik@users.sourceforge.net»
#
#   This program is free software; you can redistribute it and/or
#   modify it under the terms of the GNU General Public License
#   as published by the Free Software Foundation; either version 2
#   of the License, or (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
########################################################### }}}1 ###########

source ${0:h}/Setup.command

setopt No_XTrace
setopt No_Verbose
setopt SH_Word_Split
setopt Err_Exit
setopt CSH_Null_Glob

test -n "${Homepage}"
test -n "${Web_Server}"
rsync				\
    --archive			\
    --update			\
    --verbose			\
    --keep-dirlinks		\
    --exclude='*/.temp'		\
    --exclude='*/.backups'	\
    --exclude='*/.flock'	\
    --exclude='*/.lastmod'	\
    --exclude='*/.linkindex'	\
    --exclude='*/.pageindex'	\
    --exclude='*/.thumbnails'	\
    --exclude='.backups'	\
    --exclude='.DS_Store'	\
    --exclude='.thumbnails'	\
    --exclude='session'		\
    --exclude='sessions'	\
    "${Web_Server}/."		\
    "${Homepage}/."

########################################################### {{{1 ###########
# vim: textwidth=0 nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab
# vim: fileformat=unix filetype=zsh fileencoding=utf-8 fileformat=unix
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.