File: extract-data-files

package info (click to toggle)
rosegarden 1%3A25.12-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,888 kB
  • sloc: cpp: 209,189; xml: 6,580; sh: 1,608; perl: 755; python: 416; ansic: 324; lisp: 139; ruby: 33; makefile: 20
file content (20 lines) | stat: -rwxr-xr-x 466 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#
# extract-data-files
#
# Copyright (c) 2009  D. Michael McIntyre <rosegarden.trumpeter@gmail.com>
# Released under the GPL
#
# REQUIRES: bash, cut, sed
#
# PURPOSE:  Prints a list of the files contained in data/data.qrc to stdout so
# they can be tracked by make, and the resource bundle rebuilt when one of them
# changes
#

for f in $(grep "<file>" data/data.qrc|cut -d \> -f 2|cut -d \< -f 1|sed s/^\./data/g  ); do
    printf "$f "
done
echo

exit 0