~ubuntu-branches/ubuntu/intrepid/libgtkada2/intrepid

« back to all changes in this revision

Viewing changes to patches/02-commands.patch

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2008-08-11 09:46:51 UTC
  • mfrom: (6.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20080811094651-9mjd6acwa98ffw5c
Tags: 2.12.0-2ubuntu1
Add lpia to supported architectures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Change the command names: gate to gate2, dgate to dgate2,
2
 
gtkada-config to gtkada2-config.
3
 
 
4
 
Ludovic Brenta.
5
 
 
6
 
Index: src/gate.in
7
 
===================================================================
8
 
--- src/gate.in.orig    2006-07-04 07:48:24.000000000 +0200
9
 
+++ src/gate.in 2006-07-04 08:05:31.000000000 +0200
10
 
@@ -1,7 +1,7 @@
11
 
 #!/bin/sh
12
 
 
13
 
 if [ $# -eq 0 ]; then
14
 
-  echo "Usage: gate project-file"
15
 
+  echo "Usage: gate2 project-file"
16
 
   exit 1
17
 
 fi
18
 
 
19
 
@@ -9,7 +9,7 @@
20
 
 
21
 
 dir=`dirname $1`
22
 
 file=`cd $dir; pwd`/`basename $1`
23
 
-info=`gate-in.exe -p -s -x $file`
24
 
+info=`/usr/lib/ada/adalib/gtkada2/bin/gate2-in.exe -p -s -x $file`
25
 
 stat=$?
26
 
 
27
 
 if [ $stat != 0 ]; then
28
 
@@ -54,13 +54,13 @@
29
 
   exit 1
30
 
 fi
31
 
 
32
 
-gt=".gate/$prj"
33
 
+gt=".gate2/$prj"
34
 
 mkdir -p $gt > /dev/null 2>&1
35
 
 tmp=$gt/tmp
36
 
 /bin/rm -rf $tmp
37
 
 mkdir $tmp
38
 
 wd=`pwd`
39
 
-gate-in.exe $file > $tmp/gate.ada
40
 
+/usr/lib/ada/adalib/gtkada2/bin/gate2-in.exe $file > $tmp/gate.ada
41
 
 
42
 
 if [ $? != 0 ]; then
43
 
   echo "Couldn't generate Ada code. Exiting."
44
 
@@ -105,7 +105,7 @@
45
 
   done
46
 
 
47
 
   if [ $conflicts = 1 ]; then
48
 
-    cat $gt/conflicts.txt | gdialog error justify_left
49
 
+    cat $gt/conflicts.txt | gdialog2 error justify_left
50
 
   fi
51
 
   
52
 
   echo done.
53
 
Index: src/gate.sh
54
 
===================================================================
55
 
--- src/gate.sh.orig    2006-07-04 07:48:24.000000000 +0200
56
 
+++ src/gate.sh 2006-07-04 08:05:31.000000000 +0200
57
 
@@ -1,16 +1,16 @@
58
 
 #
59
 
 
60
 
 if [ $# -eq 0 ]; then
61
 
-  echo "Usage: gate project-file" | gdialog error justify_left
62
 
+  echo "Usage: gate2 project-file" | gdialog2 error justify_left
63
 
   exit 1
64
 
 fi
65
 
 
66
 
 dir=`dirname $1|sed -e 's$\\\\$/$g'`
67
 
 file=`cd $dir; pwd`/`basename $1`
68
 
-info=`gate-in.exe -p -s -x $file`
69
 
+info=`gate2-in.exe -p -s -x $file`
70
 
 
71
 
 if [ $? != 0 ]; then
72
 
-  echo "Couldn't parse $file. Exiting." | gdialog error justify_left
73
 
+  echo "Couldn't parse $file. Exiting." | gdialog2 error justify_left
74
 
   exit 1
75
 
 fi
76
 
 
77
 
@@ -43,12 +43,12 @@
78
 
 cd $dir/$srcdir
79
 
 
80
 
 if [ $? != 0 ]; then
81
 
-  echo "Couldn't change to $dir/$srcdir, aborting." | gdialog error justify_left
82
 
+  echo "Couldn't change to $dir/$srcdir, aborting." | gdialog2 error justify_left
83
 
   exit 1
84
 
 fi
85
 
 
86
 
-gt=".gate/$prj"
87
 
-mkdir -p .gate > /dev/null 2>&1
88
 
+gt=".gate2/$prj"
89
 
+mkdir -p .gate2 > /dev/null 2>&1
90
 
 mkdir -p $gt > /dev/null 2>&1
91
 
 tmp=$gt/tmp
92
 
 rm -rf $tmp
93
 
@@ -56,10 +56,10 @@
94
 
 wd=`pwd`
95
 
 out=$gt/output.txt
96
 
 
97
 
-gate-in.exe $file | grep -v Gtk-WARNING > $tmp/gate.ada
98
 
+gate2-in.exe $file | grep -v Gtk-WARNING > $tmp/gate.ada
99
 
 
100
 
 if [ $? != 0 ]; then
101
 
-  echo "Couldn't generate Ada code. Exiting." | gdialog error justify_left
102
 
+  echo "Couldn't generate Ada code. Exiting." | gdialog2 error justify_left
103
 
   exit 1
104
 
 fi
105
 
 
106
 
@@ -85,7 +85,7 @@
107
 
   done
108
 
 
109
 
   rm -f *.orig
110
 
-  # cat $out | gdialog information justify_fill
111
 
+  # cat $out | gdialog2 information justify_fill
112
 
 else
113
 
   echo "The following files have been updated in $psrcdir:" > $out
114
 
 
115
 
@@ -98,7 +98,7 @@
116
 
   echo Files with the ".rej" extension have been generated to help merging>>$out
117
 
   echo manually if needed.>> $out
118
 
 
119
 
-  cat $out | gdialog error justify_fill
120
 
+  cat $out | gdialog2 error justify_fill
121
 
 fi
122
 
 
123
 
 cp -f $tmp/* $gt
124
 
Index: src/generate.pl
125
 
===================================================================
126
 
--- src/generate.pl.orig        2006-07-04 07:48:24.000000000 +0200
127
 
+++ src/generate.pl     2006-07-04 08:05:31.000000000 +0200
128
 
@@ -1,9 +1,9 @@
129
 
-#! /usr/bin/env perl
130
 
+#!/usr/bin/perl
131
 
 
132
 
 use strict;
133
 
 
134
 
 if ($#ARGV < 0) {
135
 
-  print "Syntax : generate.pl [switches] file_name [definition-file unit_name]\n";
136
 
+  print "Syntax : generate2.pl [switches] file_name [definition-file unit_name]\n";
137
 
   print "   -l  : simply list the functions defined in the file (c or Ada)\n";
138
 
   print "         The arguments are then   file_name_1  file_name_2]\n";
139
 
   print "         If file_name_2 is present, the output will only show the difference\n";
140
 
@@ -13,8 +13,8 @@
141
 
   print "   definition_file : file to parse for the struct definition\n";
142
 
   print "   unit_name : if present, only the functions including this name will be \n";
143
 
   print "               generated\n";
144
 
-  print " ex/  generate.pl ../include/gdk/gdk.h ../include/gdk/gdktypes.h window\n";
145
 
-  print " ex/  generate.pl ../include/gtk/gtkframe.h\n";
146
 
+  print " ex/  generate2.pl ../include/gdk/gdk.h ../include/gdk/gdktypes.h window\n";
147
 
+  print " ex/  generate2.pl ../include/gtk/gtkframe.h\n";
148
 
   exit;
149
 
 }
150
 
 
151
 
Index: src/glade/glade.ads
152
 
===================================================================
153
 
--- src/glade/glade.ads.orig    2006-07-04 07:48:24.000000000 +0200
154
 
+++ src/glade/glade.ads 2006-07-04 08:05:31.000000000 +0200
155
 
@@ -37,7 +37,7 @@
156
 
 
157
 
 package Glade is
158
 
 
159
 
-   pragma Linker_Options ("-lgtkada_glade");
160
 
+   pragma Linker_Options ("-lgtkada2_glade");
161
 
 
162
 
    --------------------------------------------
163
 
    -- dynamic loading of libglade extensions --
164
 
Index: src/gtkada-config.in
165
 
===================================================================
166
 
--- src/gtkada-config.in.orig   2006-07-04 07:48:24.000000000 +0200
167
 
+++ src/gtkada-config.in        2006-07-04 08:07:51.000000000 +0200
168
 
@@ -4,9 +4,9 @@
169
 
 prefix=@prefix@
170
 
 
171
 
 gtk_libs="@GTK_LIBS@"
172
 
-gtkada_libs="-L$prefix/lib/gtkada"
173
 
-gtkada_cflags="-aI$prefix/include/gtkada -aO$prefix/lib/gtkada"
174
 
-gtkada_lflags="-lgtkada"
175
 
+gtkada_libs="-L$prefix/lib"
176
 
+gtkada_cflags="-aI$prefix/share/ada/adainclude/gtkada2 -aO$prefix/lib/adalib/gtkada2"
177
 
+gtkada_lflags="-lgtkada2"
178
 
 
179
 
 usage()
180
 
 {
181
 
@@ -41,7 +41,7 @@
182
 
       exit 1
183
 
       ;;
184
 
     --static)
185
 
-      gtkada_libs="$prefix/lib/gtkada/libgtkada.a"
186
 
+      gtkada_libs="$prefix/lib/libgtkada2.a"
187
 
       gtkada_lflags=""
188
 
       ;;  
189
 
     --prefix)
190
 
Index: src/opengl/gdk-gl.adb
191
 
===================================================================
192
 
--- src/opengl/gdk-gl.adb.orig  2006-07-04 07:48:24.000000000 +0200
193
 
+++ src/opengl/gdk-gl.adb       2006-07-04 08:05:31.000000000 +0200
194
 
@@ -31,7 +31,7 @@
195
 
 
196
 
 package body Gdk.GL is
197
 
 
198
 
-   pragma Linker_Options ("-lgtkada_gl");
199
 
+   pragma Linker_Options ("-lgtkada2_gl");
200
 
 
201
 
    -----------
202
 
    -- Query --