]> git.proxmox.com Git - pve-cluster.git/blame - data/PVE/Cluster/IPCConst.pm.awk
buildsys: add sbuild convenience target
[pve-cluster.git] / data / PVE / Cluster / IPCConst.pm.awk
CommitLineData
95c44445
TL
1BEGIN {
2 print "package PVE::Cluster::IPCConst;"
3 print "use strict; use warnings;"
4 print
5 print "use base 'Exporter';"
6 print
7 print "my %IPC_OPS;"
8 print "BEGIN {"
9 print " %IPC_OPS = ("
10}
11
12/^#define CFS_IPC/ {
13 print " " $2, "=>", $3 ","
14}
15
16END {
17 print " );"
18 print "}"
19 print "use constant \\%IPC_OPS;"
20 print "our @EXPORT = keys(%IPC_OPS);"
21}