OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [insight/] [tix/] [tools/] [setcolon.sh] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#!/bin/sh
2
#
3
# setcolon.sh --
4
#
5
#
6
# This program replaces all occurrences of :: in a file to :. It can
7
# be used to convert Tix mega widget classes to use the new convention
8
# of the single colon qualifier in method names.
9
#
10
# *Use with caution*. You may not want to replace all double colons in
11
# your program with single colons. The following is the entire
12
# program. Please examine carefully before execution.
13
#
14
# Copyright (c) 1996, Expert Interface Technologies
15
#
16
# See the file "license.terms" for information on usage and redistribution
17
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
18
 
19
 
20
if test "$*" = ""; then
21
    echo Usage: $0 file [files ...]
22
    echo
23
    cat $0
24
    exit
25
fi
26
 
27
for i in $*;
28
do
29
    echo "modifying $i";
30
    sed -e 's|::|:|' $i > $i.tmp;
31
    mv $i.tmp $i;
32
done;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.