blob: 81261339df714196b258d2ec35933cedbe81c1b5 [file] [log] [blame]
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Illegal number of parameters"
exit 1
fi
if [ ! -d "p2updatesite" ]; then
echo "Missing directory: p2updatesite"
exit 2
fi
BUILD=$1
SRC="p2updatesite/target/repository"
TRG="/home/data/httpd/download.eclipse.org/modeling/emft/henshin/updates/$BUILD"
ssh genie.henshin@projects-storage.eclipse.org rm -R $TRG/* 2> /dev/null
scp -pr $SRC/. genie.henshin@projects-storage.eclipse.org:$TRG
ssh genie.henshin@projects-storage.eclipse.org ls -al $TRG