# DP: updated class files from the 4.6 branch upto yyyymmdd.

dir=gcc-4_6-branch
dir=/scratch/packages/gcc/svn/gcc-4_6-branch
tag=gcc_4_6_0_release
branch=gcc-4_6-branch

tmplist=files$$

svn diff --summarize \
        svn://gcc.gnu.org/svn/gcc/tags/$tag \
        svn://gcc.gnu.org/svn/gcc/branches/$branch \
    | grep '\.class$' > $tmplist

sed -n '/^[AM].*\.class$/s,.*/'$tag'/\(.*\),\1,p' $tmplist \
    > neworchanged.list
sed -n '/^[D].*\.class$/s,.*/'$tag'/\(.*\),\1,p' $tmplist \
    > removed.list
sed -n '/^[^ADM].*\.class$/s,.*/'$tag'/\(.*\),\1,p' $tmplist \
    > unknown.list

echo "new or changed: $(wc -l neworchanged.list | cut '-d ' -f1), removed $(wc -l removed.list | cut '-d ' -f1): , unknown: $(wc -l unknown.list | cut '-d ' -f1)"
tar -c -J -f java-class-files.tar.xz -C $dir -T neworchanged.list
uuencode java-class-files.tar.xz java-class-files.tar.xz > java-class-files.tar.xz.uue

rm -f $tmplist neworchanged.list removed.list unknown.list

