opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

printerdecls.awk (169B)


      1 BEGIN {
      2 	FS = "\\(|\\)|, "
      3 	OFS = ", "
      4 }
      5 
      6 $1 == "MPERS_PRINTER_DECL" {
      7 	printf "extern %s %s(%s", $2, $3, $4
      8 	for (i = 5; i < NF; ++i)
      9 		printf ", %s", $i
     10 	print ");"
     11 }