summaryrefslogtreecommitdiff
path: root/source/ap/slackpkg/files/install-new.awk
blob: d2fd4eeba7198107fdc82efe71a2b00d10cabab0 (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
/^(a|ap|d|e|f|k|kde|kdei|l|mac|n|t|tcl|x|xap|xfce|y)\/([a-zA-Z0-9_\+.\-]+):.* ([Aa]dded|[Ss]plit|[Rr]enamed|[Mm]oved|[Nn]ame [Cc]hange|NAME CHANGE|[Ss]witched).*/ {
	INPUT=$1
	fs=FS
	FS="/" ; OFS="/"
	$0=INPUT
	FULLPACK=$NF
	FS="-" ; OFS="-"
	$0=FULLPACK
	if ( NF > 3 ) { 
		NF=NF-3
	} else {
		FS=":" ; OFS=":"
		$0=$0
		$0=$1
	}
	FS=fs
	CONTINUE=no
	print $0
}

/^(a|ap|d|e|f|k|kde|kdei|l|mac|n|t|tcl|x|xap|xfce|y)\/([a-zA-Z0-9_\+.\-]+): *$/ {
	INPUT=$1
	fs=FS
	FS="/" ; OFS="/"
	$0=INPUT
	FULLPACK=$NF
	FS="-" ; OFS="-"
	$0=FULLPACK
	if ( NF > 3 ) { 
		NF=NF-3
	} else {
		FS=":"
		$0=$1
	}
	FS=fs
	CONTINUE=yes
	NAME=$0
}

/^ *([Aa]dded|[Ss]plit|[Rr]enamed|[Mm]oved|[Nn]ame [Cc]hange|NAME CHANGE|[Ss]witched).*/ {
	if ( CONTINUE==yes ) {
		print NAME
	}
	CONTINUE=no
}