aboutsummaryrefslogtreecommitdiff
path: root/djunpack.bat
blob: 5c6e9b2e3f4865c69ae37e3d1bd85a8b8a6f2599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@echo off
Rem
Rem WARNING WARNING WARNING: This file needs to have DOS CRLF end-of-line
Rem format, or else stock DOS/Windows shells will refuse to run it.
Rem
Rem This batch file unpacks the GDB distribution while simultaneously
Rem renaming some of the files whose names are invalid on DOS or conflict
Rem with other file names after truncation to DOS 8+3 namespace.
Rem
Rem Invoke like this:
Rem
Rem     djunpack gdb-XYZ.tar
Rem
Rem where XYZ is the version number.  If the argument includes leading
Rem directories, it MUST use backslashes, not forward slashes.
Rem
Rem The following 2 lines need to be changed with each new GDB release, to
Rem be identical to the name of the top-level directory where the GDB
Rem distribution unpacks itself.
set GDBVER=gdb-5.0
if "%GDBVER%"=="gdb-5.0" GoTo EnvOk
Rem If their environment space is too small, re-exec with a larger one
command.com /e:4096 /c %0 %1
GoTo End
:EnvOk
if not exist %1 GoTo NoArchive
djtar -x -p -o %GDBVER%/gdb/config/djgpp/fnchange.lst %1 > fnchange.tmp
Rem The following uses a feature of COPY whereby it does not copy
Rem empty files.  We need that because the previous line will create
Rem an empty fnchange.tmp even if the command failed for some reason.
copy fnchange.tmp junk.tmp > nul
if not exist junk.tmp GoTo NoDjTar
del junk.tmp
sed -e "s,@V@,%GDBVER%,g" < fnchange.tmp > fnchange.lst
Rem See the comment above about the reason for using COPY.
copy fnchange.lst junk.tmp > nul
if not exist junk.tmp GoTo NoSed
del junk.tmp
djtar -x -n fnchange.lst %1
GoTo End
:NoSed
echo FAIL: Sed is not available.
GoTo End
:NoDjTar
echo FAIL: DJTAR is not available or no fnchange.lst file in %1.
GoTo End
:NoArchive
echo FAIL: the file %1 does not seem to exist.
echo Remember that %1 cannot use forward slashes, only backslashes.
GoTo End
:End
set GDBVER=
rtions'>+1 2010-05-142010-05-14 Michael Snyder <msnyder@vmware.com>Michael Snyder1-0/+9 2010-05-062010-05-06 Michael Snyder <msnyder@vmware.com>Michael Snyder1-1/+0 2010-03-25 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:Tom Tromey1-42/+27 2010-03-182010-03-17 Stan Shebs <stan@codesourcery.com>Stan Shebs1-0/+4 2010-02-28gdb/Jan Kratochvil1-4/+3 2010-01-28 * regcache.c (regcache_xmalloc): Add aspace argument. Use itDaniel Jacobowitz1-1/+2 2010-01-01Update copyright year in most headers.Joel Brobecker1-1/+1 2009-10-192009-10-19 Pedro Alves <pedro@codesourcery.com>Pedro Alves1-0/+1 2009-10-132009-10-13 Pedro Alves <pedro@codesourcery.com>Pedro Alves1-1/+1 2009-10-012009-10-01 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon1-1/+7 2009-07-28 * arch-utils.c (displaced_step_at_entry_point): Do not callDaniel Jacobowitz1-11/+8 2009-07-02 * breakpoint.h (struct breakpoint): New member GDBARCH.Ulrich Weigand1-2/+2 2009-07-02 * gdbtypes.c (make_pointer_type, make_reference_type,Ulrich Weigand1-5/+4 2009-07-02 * gdbtypes.h (builtin_type_void): Remove.Ulrich Weigand1-1/+1 2009-06-29 * ada-lang.h (ada_convert_actual): Add GDBARCH argument.Ulrich Weigand1-1/+1 2009-06-17 * dummy-frame.c (deprecated_pc_in_call_dummy): Add GDBARCH parameter,Ulrich Weigand1-1/+2 2009-06-152009-06-15 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon1-0/+98 2009-05-282009-05-27 Tom Tromey <tromey@redhat.com>Tom Tromey1-1/+1 2009-05-24gdb:Doug Evans1-1/+1 2009-05-02 * dbxread.c (read_dbx_symtab): Avoid compiler warnings forEli Zaretskii1-0/+1 2009-03-22 * gdbthread.h (struct thread_info): Add in_infcall member.Pedro Alves1-12/+11 2009-03-22 * infcall.c (run_inferior_call): Remove references toPedro Alves1-3/+0 2009-01-19 * dummy-frame.c (dummy_frame): Replace regcache member withDoug Evans1-131/+244 2009-01-03 Updated copyright notices for most files.Joel Brobecker1-1/+1 2008-12-04 * infcall.c (call_function_by_hand): Clean up use of local dummy_addr.Doug Evans1-26/+17 2008-11-18 * infcall.c (call_function_by_hand): Fix punctuation and capitalizationDoug Evans1-4/+4 2008-11-12 * infcall.c (call_function_by_hand): Handle inferior exit.Doug Evans1-0/+10 2008-09-15* infcall.c (generic_push_dummy_code): Remove.Mark Kettenis1-45/+5 2008-09-11 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use itsUlrich Weigand1-16/+17 2008-09-08 * gdbthread.h (struct thread_info): Add comments aroundPedro Alves1-1/+2 2008-09-08 * inferior.h (stop_bpstat): Delete.Pedro Alves1-3/+5 2008-06-13 Don't suppress *running when doing finish.Vladimir Prus1-3/+4 2008-06-10 Implement *running.Vladimir Prus1-2/+2 2008-06-10 Suppress normal stop observer when it's problematic.Vladimir Prus1-1/+6