[gtranslator] Fix the update script.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Fix the update script.
- Date: Fri, 19 Feb 2010 13:38:19 +0000 (UTC)
commit c0ec13e8eee5f37468e89abe4c59f13c612fd5df
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Feb 18 22:09:17 2010 +0100
Fix the update script.
src/update-from-gedit.sh | 25 ++++++++++++++-----------
1 files changed, 14 insertions(+), 11 deletions(-)
---
diff --git a/src/update-from-gedit.sh b/src/update-from-gedit.sh
index e7d8b0d..072ac63 100755
--- a/src/update-from-gedit.sh
+++ b/src/update-from-gedit.sh
@@ -1,22 +1,25 @@
#!/bin/sh
FILES="gedit-history-entry.h \
- gedit-history-entry.c"
+ gedit-history-entry.c \
+ gedit-status-combo-box.h \
+ gedit-status-combo-box.c"
sed_it () {
sed \
- -e 's/gedit-history-entry/history-entry/g' \
- -e 's/gedit-window.h/window.h/g' \
+ -e 's/gedit-history-entry/gtr-history-entry/g' \
+ -e 's/gedit-window.h/gtr-window.h/g' \
-e 's/#include "gedit-debug.h"/\/\/#include "gedit-debug.h"/g' \
- -e 's/gedit/gtranslator/g' \
- -e 's/Gedit/Gtranslator/g' \
+ -e 's/gedit/gtr/g' \
+ -e 's/Gedit/Gtr/g' \
-e 's/GEDIT/GTR/g' \
$1
}
-sed_it gedit-history-entry.h > history-entry.h
-sed_it gedit-history-entry.c > history-entry.c
-
-rm gedit-history-entry.c
-rm gedit-history-entry.h
-
+for i in $FILES
+do
+ if [ -f $i ]; then
+ sed_it $i > `echo $i | sed -e s/gedit/gtr/g`
+ rm $i
+ fi
+done
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]