Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] (PR#12645) replace "struct Sprite" with "struct sprite"
Home

[Freeciv-Dev] (PR#12645) replace "struct Sprite" with "struct sprite"

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12645) replace "struct Sprite" with "struct sprite"
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 25 Mar 2005 11:01:32 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12645 >

This patch replaces the "struct Sprite" with "struct sprite".

The only reason to do this is consistency with all the other names.  The 
only reason not to do it is it will (potentially) break existing patches.

The patch is just search-and-replace.  I ran

   replace "struct Sprite" "struct sprite"

in the top-level freeciv directory.

-jason

Attachment: sprite.diff.bz2
Description: application/bzip

#!/bin/bash

files=`find . -name "*.[ch]"`
#files=pango.diff
#files=`find . -type f -name "Makefile.am"`
#files=`find . -type f| grep -v CVS`
#files=`find . -name "*.tilespec"`

echo Replacing \"$1\" with \"$2\".

for file in $files; do
    cat $file \
        | sed "s/$1/$2/g" \
        > $file.$$

    cmp $file $file.$$ >/dev/null \
        || (mv $file.$$ $file && echo "  $file")
    rm -f $file.$$
done

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12645) replace "struct Sprite" with "struct sprite", Jason Short <=