#! /bin/bash

for i in 1 ; do
 patch -p1 -s < tmp/patch-0.97.2.$i
done

patch -p1 -s < tmp/patch-0.97.3

# 'add new line' odds to avoid 'patch' bug
for i in video recover footer commands; do
  (cd src/doc/README; echo "" >> $i)
done

rm -f core `find . -name '*.orig'`
rm -f core `find . -size 0`
sh set-permissions
rm -rf tmp
