
for f in `ls -d *.txt docs docs/*.txt`; do cp -r $f dist; done

echo "Current revision:"
hg log -r.

# Update Jenkins' NML
echo "Building:   $USE_REV"
echo "Build type: $BUILD_TYPE"
if [ "$USE_REV" == "tip" ] || [ "`hg id -r$USE_REV`" = "`hg id -rtip`" ] || [ "$BUILD_TYPE" == "releases"  ]; then
echo "Updating because we build tip"
# cd ~/bin/repos/nml-$BRANCH
# hg pull -u
# hg up -r$USE_REV
#
# echo "Updating NML on NewGRF build node"
# # Update the default build machine (debian7, x64)
# ssh repos@build-default << ENDSSH
# cd nml-$BRANCH
# hg pull
# hg up -r${USE_REV}
# ENDSSH

else
echo "Neither tip nor a release was built. Not updating NML"
fi

