~ubuntu-branches/ubuntu/hardy/ruby1.8/hardy-updates

« back to all changes in this revision

Viewing changes to win32/configure.bat

  • Committer: Bazaar Package Importer
  • Author(s): akira yamada
  • Date: 2007-03-13 22:11:58 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070313221158-h3oql37brlaf2go2
Tags: 1.8.6-1
* new upstream version, 1.8.6.
* libruby1.8 conflicts with libopenssl-ruby1.8 (< 1.8.6) (closes: #410018)
* changed packaging style to cdbs from dbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@echo off
 
2
::: Don't set environment variable in batch file other than autoexec.bat
 
3
::: to avoid "Out of environment space" problem on Windows 95/98.
 
4
::: set TMPMAKE=~tmp~.mak
 
5
 
 
6
echo> ~tmp~.mak ####
 
7
echo>> ~tmp~.mak conf = %0
 
8
echo>> ~tmp~.mak $(conf:\=/): nul
 
9
echo>> ~tmp~.mak        @del ~tmp~.mak
 
10
echo>> ~tmp~.mak        @-$(MAKE) -l$(MAKEFLAGS) -f $(@D)/setup.mak \
 
11
:loop
 
12
if "%1" == "" goto :end
 
13
if "%1" == "--prefix" goto :prefix
 
14
if "%1" == "--srcdir" goto :srcdir
 
15
if "%1" == "srcdir" goto :srcdir
 
16
if "%1" == "--target" goto :target
 
17
if "%1" == "target" goto :target
 
18
if "%1" == "--with-static-linked-ext" goto :extstatic
 
19
if "%1" == "--with-winsock2" goto :winsock2
 
20
if "%1" == "--program-suffix" goto :suffix
 
21
if "%1" == "--program-name" goto :installname
 
22
if "%1" == "--install-name" goto :installname
 
23
if "%1" == "--so-name" goto :soname
 
24
if "%1" == "--enable-install-doc" goto :enable-rdoc
 
25
if "%1" == "--disable-install-doc" goto :disable-rdoc
 
26
if "%1" == "--extout" goto :extout
 
27
if "%1" == "-h" goto :help
 
28
if "%1" == "--help" goto :help
 
29
  echo>> ~tmp~.mak      "%1" \
 
30
  shift
 
31
goto :loop
 
32
:srcdir
 
33
  echo>> ~tmp~.mak      "srcdir=%2" \
 
34
  shift
 
35
  shift
 
36
goto :loop
 
37
:prefix
 
38
  echo>> ~tmp~.mak      "prefix=%2" \
 
39
  shift
 
40
  shift
 
41
goto :loop
 
42
:suffix
 
43
  echo>> ~tmp~.mak      "RUBY_SUFFIX=%2" \
 
44
  shift
 
45
  shift
 
46
goto :loop
 
47
:installname
 
48
  echo>> ~tmp~.mak      "RUBY_INSTALL_NAME=%2" \
 
49
  shift
 
50
  shift
 
51
goto :loop
 
52
:soname
 
53
  echo>> ~tmp~.mak      "RUBY_SO_NAME=%2" \
 
54
  shift
 
55
  shift
 
56
goto :loop
 
57
:target
 
58
  echo>> ~tmp~.mak      "%2" \
 
59
  shift
 
60
  shift
 
61
goto :loop
 
62
:extstatic
 
63
  echo>> ~tmp~.mak      "EXTSTATIC=static" \
 
64
  shift
 
65
goto :loop
 
66
:winsock2
 
67
  echo>> ~tmp~.mak      "USE_WINSOCK2=1" \
 
68
  shift
 
69
goto :loop
 
70
:enable-rdoc
 
71
  echo>> ~tmp~.mak      "RDOCTARGET=install-doc" \
 
72
  shift
 
73
goto :loop
 
74
:disable-rdoc
 
75
  echo>> ~tmp~.mak      "RDOCTARGET=install-nodoc" \
 
76
  shift
 
77
goto :loop
 
78
:extout
 
79
  echo>> ~tmp~.mak      "EXTOUT=%2" \
 
80
  shift
 
81
  shift
 
82
goto :loop
 
83
:help
 
84
  echo Configuration:
 
85
  echo   --help                  display this help
 
86
  echo   --srcdir=DIR            find the sources in DIR [configure dir or `..']
 
87
  echo Installation directories:
 
88
  echo   --prefix=PREFIX         install files in PREFIX (ignored currently)
 
89
  echo System types:
 
90
  echo   --target=TARGET         configure for TARGET [i386-mswin32]
 
91
  echo Optional Package:
 
92
  echo   --with-winsock2         link winsock2
 
93
  echo   --with-static-linked-ext link external modules statically
 
94
  echo   --enable-install-doc    install rdoc indexes during install
 
95
  del ~tmp~.mak
 
96
goto :exit
 
97
:end
 
98
echo>> ~tmp~.mak        WIN32DIR=$(@D)
 
99
nmake -alf ~tmp~.mak
 
100
:exit