File: instgen

package info (click to toggle)
pcb-rnd 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 29,260 kB
  • sloc: ansic: 198,059; sh: 5,767; yacc: 5,568; makefile: 2,519; awk: 1,737; lex: 1,073; python: 519; lisp: 169; tcl: 67; xml: 40; perl: 34; ruby: 5
file content (26 lines) | stat: -rwxr-xr-x 517 bytes parent folder | download
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
#!/bin/sh
export LANG=C
find 0*_* *.html *.css -type f -print | sort | awk '
BEGIN {
	print "### autogenerated, DO NOT EDIT (but do commit); run make regen on *NIX ###"
	print "install_all:"
}
($0 ~ "[/][.]") { next }
($0 ~ "[/]src[/]") { next }
/[.]bak$/ { next }
/[.]backup$/ { next }
/~$/ { next }

($0 ~ "/") {
	path = $0
	sub("/[^/]*$", "", path)
	if (!(path in PATHS)) {
		print "	$(SCCBOX) mkdir -p $(USERDIR)/" path
		PATHS[path]=1
	}
}

{
	print "	$(SCCBOX) $(HOW) " $0 " $(USERDIR)/" $0
}
' > Makefile.inst