File: generate.sh

package info (click to toggle)
kdevelop-python 24.12.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,640 kB
  • sloc: python: 183,048; cpp: 18,798; xml: 140; sh: 14; makefile: 9
file content (22 lines) | stat: -rw-r--r-- 819 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
22
# SPDX-FileCopyrightText: 2014 Sven Brauch <svenbrauch@gmail.com>
# SPDX-License-Identifier: GPL-2.0-or-later

pyqt=($(ls /usr/share/sip/PyQt5))
element_count=${#pyqt[@]}
for index in $(seq $element_count); do
    python2.7 sip_to_xml5.py ${pyqt[$index]}
    python2.7 xml_to_py.py ${pyqt[$index]}.xml
    cp ${pyqt[$index]}.py ../../documentation_files/PyQt5/
done

# mkdir -p ../../documentation_files/PyKDE4
# pykde=($(ls /usr/share/sip/python2-PyKDE4))
# element_count=${#pykde[@]}
# for index in $(seq $element_count); do
#     python2.7 sip_to_xml.py python2-PyKDE4/${pykde[$index]}
#     python2.7 xml_to_py.py ${pykde[$index]}.xml
#     cp ${pykde[$index]}.py ../../documentation_files/PyKDE4/
# done

# sed -i 's/typename=" dir="out"/dir="out" typename="None"/g' *.xml
# sed -i 's/SLOT()SLOT()/SLOT()/g' *.xml