File: glade-fixup

package info (click to toggle)
libaqbanking 5.4.3beta-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,244 kB
  • ctags: 6,703
  • sloc: ansic: 119,813; sh: 11,218; xml: 9,839; makefile: 2,357; cpp: 2,233; perl: 278; pascal: 115
file content (24 lines) | stat: -rwxr-xr-x 637 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# Remove entries that are for post-gtk2.4 attributes.  Glade on a
# gtk2.4 system will complain when unknown attributes are present on a
# widget.
#
# This script should be run from the top-level source directory before
# committing changed glade files.
#
# This script has been taken from Gnucash (2006/01/24) -- aquamaniac
#

if test -d src ; then
    SEARCHDIRS=src
else
    SEARCHDIRS=.
fi

find ${SEARCHDIRS} -name \*.glade | xargs \
  sed -i -e '/name="focus_on_map"/d' \
         -e '/name="ellipsize"/d' \
         -e '/name="width_chars"/d' \
         -e '/name="single_line_mode"/d' \
         -e '/name="angle"/d'