#!/bin/sh
SOURCE_PATH=/tmp/fdroid
REPO_PATH=$SOURCE_PATH/repo/
S3_PATH=$SOURCE_PATH/s3/

mkdir -p $SOURCE_PATH/
cp /Makefile $SOURCE_PATH/

cd $SOURCE_PATH
mkdir -p $REPO_PATH
mkdir -p $S3_PATH
while true; do
  make S3_PATH=$S3_PATH REPO_PATH=$REPO_PATH
  sleep $UPDATE_WAIT
done
