File: sav.btm

package info (click to toggle)
dosemu-freedos 1%3A0.0.b9r5a%2Betch.1-0etch1
  • links: PTS
  • area: contrib
  • in suites: etch
  • size: 19,744 kB
  • ctags: 23,279
  • sloc: ansic: 143,864; asm: 20,397; makefile: 3,868; perl: 1,106; yacc: 690; sh: 553; pascal: 297; xml: 150; cpp: 67
file content (62 lines) | stat: -rw-r--r-- 889 bytes parent folder | download | duplicates (2)
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
53
54
55
56
57
58
59
60
61
62
@echo off

: setdos /y1  echo on



iff %# == 0 then

	echo Useage: %@name[%0] COM.* description

else

	set max=0

	for /a:d %dir in (c[1-9]*) (set num=%@substr[%dir,1]if %num GT %max set max=%num)

	set ldir=..\c%max

	set dir=c%@eval[%max+1]

	mkdir %dir

	iff not isdir %dir then

		echo Cannot create directory %dir

	else

		dmake32 xref || (Echo failed to create XREF  quit 20)

		pushd %dir

		echo %& >info

		copy /q ..\com.* ..\xref ..\mkxref.log .

		perl ..\fetchseg.pl com.map %ldir\com.map >chg_segs

		perl ..\compsyms.pl com.map %ldir\com.map >chg_syms

		echo Backup %dir created

		iff %@filesize[chg_segs,b] GT 0 then

			echo Changes of the length of the segments:

			type chg_segs

		endiff

		iff %@lines[chg_syms] GE 0 then

			echo The number of symbols changed by %@eval[%@lines[chg_syms]+1]

		endiff

		popd

	endiff

endiff