~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to extensions/enigmail/ipc/makemake.cmd

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * MAKEMAKE.CMD for OS/2
3
 
 *
4
 
 * REXX script to make Makefile from Makefile.in in OS/2
5
 
 *
6
 
 * Usage:
7
 
 * MAKEMAKE.CMD [/R] [ObjDir]
8
 
 *
9
 
 * /R:     create Makefiles recursively in all subdirectories
10
 
 * ObjDir: should correspond to the MOZ_OBJDIR parameter of
11
 
 *         your .mozconfig, if defined
12
 
 *
13
 
 */
14
 
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
15
 
call SysLoadFuncs
16
 
 
17
 
PARSE ARG ObjDir;
18
 
 
19
 
if ObjDir = '' then do
20
 
   Makelist.0 = 1;
21
 
   Makelist.1 = 'Makefile.in.ipc';
22
 
   ObjDir = '';
23
 
end
24
 
else do
25
 
   Switch = SUBWORD(ObjDir, 1, 1);
26
 
   ObjDir = SUBWORD(ObjDir, 2, 1);
27
 
   if (Switch = '/r') | (Switch = '/R') then do
28
 
      CALL SysFileTree 'Makefile.in.ipc', 'Makelist', 'FSO'
29
 
   end /* do */
30
 
   else do
31
 
      Makelist.0 = 1;
32
 
      Makelist.1 = 'Makefile.in.ipc';
33
 
      ObjDir = Switch;
34
 
   end /* do */
35
 
end
36
 
 
37
 
/*
38
 
 * Check if ObjDir is correct
39
 
 */
40
 
CurDir = DIRECTORY();
41
 
if ObjDir \= '' then do
42
 
   ObjDir = DIRECTORY(ObjDir);
43
 
   if ObjDir = '' then
44
 
      SIGNAL Usage
45
 
   SAY 'ObjDir:' ObjDir
46
 
end /* if ObjDir */
47
 
 
48
 
/*
49
 
 * Find TOPSRCDIR (usally x:/Mozilla)
50
 
 */
51
 
TopSrcDir = DIRECTORY(CurDir);
52
 
 
53
 
DO WHILE (TopSrcDir \= '') & (FILESPEC('name', TopSrcDir) \= 'mozilla')
54
 
   TopSrcDir = DIRECTORY(..);
55
 
end /* do */
56
 
 
57
 
TopSrcDir = TRANSLATE(TopSrcDir, '/', '\');
58
 
n = LENGTH(TopSrcDir);
59
 
CALL DIRECTORY CurDir
60
 
 
61
 
/*
62
 
 * Create Makefile
63
 
 */
64
 
'@ECHO OFF'
65
 
do i = 1 to Makelist.0
66
 
   SAY Makelist.i
67
 
   SrcDir = FILESPEC('path', Makelist.i);
68
 
   Drive = FILESPEC('drive', Makelist.i);
69
 
   SrcDir = STRIP(Drive||SrcDir,'T','\');
70
 
   SrcDir = DIRECTORY(SrcDir);
71
 
 
72
 
   ObjMake = 'Makefile';
73
 
   if ObjDir \= '' then do
74
 
      RelDir = SUBSTR(SrcDir, n+1);
75
 
      ObjMake = ObjDir||RelDir'\Makefile';
76
 
      CALL SysMkDir ObjDir||RelDir;
77
 
   end /* do */
78
 
   SAY ObjMake
79
 
 
80
 
   SrcDir = TRANSLATE(SrcDir, '/', '\');
81
 
 
82
 
   'sed.exe -e "s,@top_srcdir@,'TopSrcDir',g" -e "s,@srcdir@,'SrcDir',g" Makefile.in > 'ObjMake
83
 
 
84
 
   SAY 'srcdir:' SrcDir
85
 
   SAY 'topsrcdir:' TopSrcDir
86
 
   SAY
87
 
end /* do 1 to Makelist.0 ... */
88
 
 
89
 
CALL DIRECTORY CurDir
90
 
 
91
 
EXIT 0;
92
 
 
93
 
Usage:
94
 
SAY 'Usage: MAKEMAKE.CMD [/R] [ObjDir]'
95
 
EXIT 1;
96