Revision 3019,
555 bytes
checked in by amuller, 14 years ago
(diff) |
Ticket #1135 - Corrigindo CSS e adicionando filemanager
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | NDIR=$HOME/.netscape |
---|
4 | PFILE=$NDIR/preferences.js |
---|
5 | CFFILE=$NDIR/fontsz.cf |
---|
6 | TMPFILE=$NDIR/fontsz.sed |
---|
7 | |
---|
8 | die() { |
---|
9 | echo "notscape: can't $*" >&2 |
---|
10 | exit 1 |
---|
11 | } |
---|
12 | |
---|
13 | [ -r $CFFILE ] && { |
---|
14 | awk '{ printf("/intl.font_spec_list/s/-[^-]*-\\([^-]*\\)-%s,/-%s-\\1-%s,/\n", \ |
---|
15 | $1, $2, $1); }' <$CFFILE >$TMPFILE |
---|
16 | |
---|
17 | cp $PFILE $PFILE.old || die "save old pref file" |
---|
18 | sed -f $TMPFILE <$PFILE.old >$PFILE.new || die "create new pref file" |
---|
19 | [ -s $PFILE.new ] || die "create new pref file" |
---|
20 | |
---|
21 | mv $PFILE.new $PFILE || die "install new pref file" |
---|
22 | |
---|
23 | } |
---|
24 | |
---|
25 | exec netscape -no-about-splash "$@" |
---|
Note: See
TracBrowser
for help on using the repository browser.