URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [gdb-5.0/] [djunpack.bat] - Rev 1769
Go to most recent revision | Compare with Previous | Blame | View Log
@echo offRemRem WARNING WARNING WARNING: This file needs to have DOS CRLF end-of-lineRem format, or else stock DOS/Windows shells will refuse to run it.RemRem This batch file unpacks the GDB distribution while simultaneouslyRem renaming some of the files whose names are invalid on DOS or conflictRem with other file names after truncation to DOS 8+3 namespace.RemRem Invoke like this:RemRem djunpack gdb-XYZ.tarRemRem where XYZ is the version number. If the argument includes leadingRem directories, it MUST use backslashes, not forward slashes.RemRem The following 2 lines need to be changed with each new GDB release, toRem be identical to the name of the top-level directory where the GDBRem distribution unpacks itself.set GDBVER=gdb-5.0if "%GDBVER%"=="gdb-5.0" GoTo EnvOkRem If their environment space is too small, re-exec with a larger onecommand.com /e:4096 /c %0 %1GoTo End:EnvOkif not exist %1 GoTo NoArchivedjtar -x -p -o %GDBVER%/gdb/config/djgpp/fnchange.lst %1 > fnchange.tmpRem The following uses a feature of COPY whereby it does not copyRem empty files. We need that because the previous line will createRem an empty fnchange.tmp even if the command failed for some reason.copy fnchange.tmp junk.tmp > nulif not exist junk.tmp GoTo NoDjTardel junk.tmpsed -e 's,@V@,%GDBVER%,g' < fnchange.tmp > fnchange.lstRem See the comment above about the reason for using COPY.copy fnchange.lst junk.tmp > nulif not exist junk.tmp GoTo NoSeddel junk.tmpdjtar -x -n fnchange.lst %1GoTo End:NoSedecho FAIL: Sed is not available.GoTo End:NoDjTarecho FAIL: DJTAR is not available or no fnchange.lst file in %1.GoTo End:NoArchiveecho FAIL: the file %1 does not seem to exist.echo Remember that %1 cannot use forward slashes, only backslashes.GoTo End:Endset GDBVER=
Go to most recent revision | Compare with Previous | Blame | View Log
