Commit e8f75bf4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

remove obsoleted files

parent 2df9134e
#!/bin/sh
# Lists incoming dir
# Use -M23 and so on
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
parse_cmd_pre -- "$@"
echog "Checking for private key..."
ssh-add -l || ssh-add
set_incoming $MENV
rsync -n -e ssh $RSYNCINCOMING/$INCOMING/
echog "Ls from $RSYNCINCOMING/$INCOMING"
#!/bin/sh
# 2003-2005 (c) Etersoft www.etersoft.ru
# Public domain
# Upload files from upload dir to alt
# 25.01.2005 upload.old.xxx
# 04.11.2005 use arg for set destination (-M23 and so on)
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
build_list_and_args -- "$@"
test -n "$MENV" && UPLOADDIR=${UPLOADDIR}.$MENV
set_incoming $MENV
echog "Changing permissions..."
chmod 644 -- $UPLOADDIR/*.rpm || exit 1
echog "Upload to incoming/$INCOMING from $UPLOADDIR"
echog "Checking for sisyphus compliance..."
CHECKSUM="--checksum"
sisyphus_check $UPLOADDIR || exit 1
echo "Checking for private key..."
ssh-add -l || ssh-add
rsync -va --partial --progress $CHECKSUM \
-e ssh $UPLOADDIR/* $RSYNCINCOMING/$INCOMING/
RES=$?
NSD="old"
uploadOLD=$(basename `mktemp -d $UPLOADDIR.${NSD}.XXX`)
rmdir $uploadOLD
test $RES && mv $UPLOADDIR $uploadOLD
mkdir $UPLOADDIR
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment