File: genpc.py

package info (click to toggle)
gsettings-desktop-schemas 3.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,836 kB
  • ctags: 214
  • sloc: sh: 728; python: 200; ansic: 170; makefile: 103
file content (21 lines) | stat: -rw-r--r-- 532 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
# Simple script to generate pkg-config (.pc) file
# for gsettings-desktop-schemas

import os
import sys

from replace import replace_multi
from pc_base import BasePCItems

def main(argv):
    base_pc = BasePCItems()

    base_pc.setup(argv)

    # Generate gsettings-desktop-schemas.pc
    replace_multi(base_pc.top_srcdir + '/gsettings-desktop-schemas.pc.in',
                  base_pc.srcdir + '/gsettings-desktop-schemas.pc',
                  base_pc.base_replace_items)

if __name__ == '__main__':
    sys.exit(main(sys.argv))