Date:2014-01-05 17:33:14 (10 years 2 months ago)
Author:Werner Almesberger
Commit:2497d96cd3b645755b436fb83851e5d315890400
Message:scripts/missing-in-tree: new option -Q to check project.pro

Files: scripts/missing-in-tree (4 diffs)

Change Details

scripts/missing-in-tree
22#
33# missing-in-tree - List items present in libraries but not in the tree
44#
5# Copyright 2012 by Werner Almesberger
5# Copyright 2012, 2014 by Werner Almesberger
66#
77# This program is free software; you can redistribute it and/or modify
88# it under the terms of the GNU General Public License as published by
...... 
1414usage()
1515{
1616    echo "usage: $0 [-F] [-L libdir ...] [-l lib ...] hierarchy" 1>&2
17    echo " $0 -Q [-L libdir ...] [-l lib ...] project.pro" 1>&2
1718    exit 1
1819}
1920
...... 
3435}
3536
3637
38scan_pro()
39{
40    for n in `sed '/^LibName[0-9]*=\.\/\(.*\)/s//\1/p;d' $1`; do
41        sed '/^DEF ~\?/{s///;s/ .*//;p;};d' <$n.lib
42    done
43}
44
3745trap "rm -f _tmp1 _tmp2" 0
3846
39genkicat -D "$@" >_tmp1 || exit
47if [ "$1" = -Q ]; then
48    pro=true
49    shift
50else
51    genkicat -D "$@" >_tmp1 || exit
52    pro=false
53fi
4054
4155ext=lib
4256
...... 
6781[ "$1" ] || usage
6882[ -z "$2" ] || usage
6983
84if $pro; then
85    scan_pro "$1" >_tmp1
86fi
87
7088cat _tmp1 _tmp1 _tmp2 | sort | uniq -u
7189
7290exit 0

Archive Download the corresponding diff file

Branches:
master



interactive