File: port-qslots.sh

package info (click to toggle)
plasma-framework 5.28.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,168 kB
  • ctags: 3,945
  • sloc: cpp: 28,840; sh: 534; python: 477; ruby: 117; xml: 110; php: 27; makefile: 5
file content (11 lines) | stat: -rwxr-xr-x 211 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# slots -> Q_SLOTS, signals -> Q_SIGNALS

for FS in `find $PWD -type f -name '*.h'`; do
    perl -p -i -e 's/ slots\:/ Q_SLOTS\:/g' $FS
    perl -p -i -e 's/signals\:/Q_SIGNALS\:/g' $FS
done

#exit;