#!/bin/bash

# Kiddo script to pull the linux kernel BK tree
#
# Copyright (C) 20054, Amit Gud <gud@eth.net>
#


#Tunables

BK_DIR="/home/amit/projects/kernels/bk"
TREE="linux-2.6"
REPO="http://linux.bkbits.net"
LOG_FILE="/home/amit/.bkpull.log"

#---
BK_DIR=$BK_DIR/$TREE/
if [ ! -e $LOG_FILE ]
then
	touch $LOG_FILE
	echo "bkpull.sh log file, created `date`" > $LOG_FILE
fi

echo "---" >> $LOG_FILE
date >> $LOG_FILE
(cd $BK_DIR; bk pull $REPO/$TREE 2>&1 | cat >> $LOG_FILE)

