@echo off

cd binutils
strip ar cxxfilt nm.new objcopy objdump ranlib size strings strip.new
coff2exe  ar cxxfilt nm.new objcopy objdump ranlib size strings strip.new
mv *.exe ../../../bin
cp binutils.inf binutils.tex *.1 ../../../docs/binutils

cd ../gas
strip as.new gasp.new
coff2exe as.new gasp.new
mv *.exe ../../../bin
cp doc/* ../../../docs/gas
rm ../../../docs/gas/*.in

cd ../ld
strip ld.new
coff2exe ld.new
mv *.exe ../../../bin
cp ld.i* ld.1 ../../../docs/binutils

cd ../gprof
strip gprof
coff2exe gprof
mv *.exe ../../../bin
cp *.1 ../../../docs/binutils
