File: makedoc

package info (click to toggle)
xapp 2.8.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,724 kB
  • sloc: ansic: 11,268; python: 1,463; xml: 258; sh: 22; makefile: 9
file content (18 lines) | stat: -rwxr-xr-x 463 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python3

# This script is used to update the docs in docs/reference
# which are served at https://projects.linuxmint.com/xapp/reference/index.html.

import os
import sys

SRC="debian/tmp/usr/share/gtk-doc/html/libxapp/"

if not os.path.exists(SRC):
    print("Build first, with dpkg-buildpackage")
    sys.exit(1)

os.system("rm -rf docs/reference/*")
os.system("cp -R %s/* docs/reference/" % SRC)

print ("Docs updated, you can now commit and push.")