Skip to content

Commit d392a2c

Browse files
committed
fix install.sh
1 parent 66114bc commit d392a2c

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

adtcont.pas.mcp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
(* This file is a part of the PascalAdt library, which provides
22
commonly used algorithms and data structures for the FPC and Delphi
33
compilers.
4-
4+
55
Copyright (C) 2004, 2005 by Lukasz Czajka
6-
6+
77
This library is free software; you can redistribute it and/or
88
modify it under the terms of the GNU Lesser General Public License
99
as published by the Free Software Foundation; either version 2.1 of
1010
the License, or (at your option) any later version.
11-
11+
1212
This library is distributed in the hope that it will be useful, but
1313
WITHOUT ANY WARRANTY; without even the implied warranty of
1414
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1515
Lesser General Public License for more details.
16-
16+
1717
You should have received a copy of the GNU Lesser General Public
1818
License along with this library; if not, write to the Free Software
1919
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
@@ -45,11 +45,11 @@ unit adtcont;
4545

4646
{ * Notes on ownership issues * }
4747
{ When a pointer is inserted into a container it is owned by it only
48-
after the insertion is successfully completed. It will be than
48+
after the insertion is successfully completed. It will be then
4949
automatically disposed by the container. However, if an exception is
5050
raised the insertion is not yet completed and a pointer passed as an
5151
argument is not owned by the container. It must be disposed by the
52-
calling code. The reason for such behaviour is not to make any any
52+
calling code. The reason for such behaviour is not to make any
5353
user data 'sink' without trace in case of an exception. This
5454
eventuality should be handled with a try ... except block around
5555
suitable parts of code which would dispose or otherwise handle any
@@ -61,9 +61,9 @@ uses
6161
SysUtils, adtfunct, adtcontbase, adtiters;
6262

6363
&include adtdefs.inc
64-
64+
6565
&_mcp_generic_include(adtcont.i)
66-
66+
6767
implementation
6868

6969
uses

install.sh

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -120,31 +120,31 @@ else
120120
INCLUDE_DIR="/usr/local/include/"
121121
fi
122122

123-
read -n 1 -p "Make a dynamic library? (y/n) "
124-
echo
125-
if [ "$REPLY" != n ]; then
123+
#read -n 1 -p "Make a dynamic library? (y/n) "
124+
#echo
125+
#if [ "$REPLY" != n ]; then
126126
MAKE_DYNAMIC=1
127127
XD="-XD"
128-
else
129-
MAKE_DYNAMIC=0
130-
XD=""
131-
fi
132-
133-
read -n 1 -p "Make a smartlinked static library? (n/y) "
134-
echo
135-
if [ "$REPLY" == "y" ]; then
136-
MAKE_SMART=1
137-
else
128+
#else
129+
# MAKE_DYNAMIC=0
130+
# XD=""
131+
#fi
132+
133+
#read -n 1 -p "Make a smartlinked static library? (n/y) "
134+
#echo
135+
#if [ "$REPLY" == "y" ]; then
136+
# MAKE_SMART=1
137+
#else
138138
MAKE_SMART=0
139-
fi
139+
#fi
140140

141-
read -n 1 -p "Make a non-smartlinked static library? (n/y) "
142-
echo
143-
if [ "$REPLY" == "y" ]; then
144-
MAKE_STATIC=1
145-
else
146-
MAKE_STATIC=0
147-
fi
141+
#read -n 1 -p "Make a non-smartlinked static library? (n/y) "
142+
#echo
143+
#if [ "$REPLY" == "y" ]; then
144+
# MAKE_STATIC=1
145+
#else
146+
# MAKE_STATIC=0
147+
#fi
148148

149149
read -n 1 -p "Install debug version also? (n/y) "
150150
echo
@@ -183,11 +183,11 @@ echo
183183
if [ "$REPLY" == "y" ]; then
184184
MCPOPTS="-dMCP_POINTER $MCPOPTS"
185185
fi
186-
read -n 1 -p "Generate template instantiations for Cardinal? (n/y) "
187-
echo
188-
if [ "$REPLY" == "y" ]; then
189-
MCPOPTS="-dMCP_CARDINAL $MCPOPTS"
190-
fi
186+
#read -n 1 -p "Generate template instantiations for Cardinal? (n/y) "
187+
#echo
188+
#if [ "$REPLY" == "y" ]; then
189+
# MCPOPTS="-dMCP_CARDINAL $MCPOPTS"
190+
#fi
191191
read -n 1 -p "Generate template instantiations for Real? (n/y) "
192192
echo
193193
if [ "$REPLY" == "y" ]; then
@@ -258,15 +258,15 @@ fi
258258
# compile and install the release version(s)
259259

260260
if [ $MAKE_DYNAMIC == 1 ]; then
261-
install_release dynamic ${DYNAMIC_LIB_STEM}${VERSION_SUFFIX}.so " " "$*" "$MCPOPTS";
261+
install_release dynamic ${DYNAMIC_LIB_STEM}${VERSION_SUFFIX}.so " " "$*" "\"$MCPOPTS\"";
262262
fi
263263

264264
if [ $MAKE_SMART == 1 ]; then
265-
install_release smart ${STATIC_LIB_STEM}${VERSION_SUFFIX}.a "-m 644" "$*" "$MCPOPTS";
265+
install_release smart ${STATIC_LIB_STEM}${VERSION_SUFFIX}.a "-m 644" "$*" "\"$MCPOPTS\"";
266266
fi
267267

268268
if [ $MAKE_STATIC == 1 ]; then
269-
install_release static ${STATIC_LIB_STEM}${VERSION_SUFFIX}.a "-m 644" "$*" "$MCPOPTS";
269+
install_release static ${STATIC_LIB_STEM}${VERSION_SUFFIX}.a "-m 644" "$*" "\"$MCPOPTS\"";
270270
fi
271271

272272
if should_overwrite_ppu "" ; then
@@ -285,7 +285,7 @@ if [ $INSTALL_DEBUG == 1 ]; then
285285
DEBUG_LINK_PATH=${DEBUG_LIB_DIR}${DYNAMIC_LIB_STEM}.so
286286
DEBUG_LIB_PATH=${DEBUG_LIB_DIR}${DYNAMIC_LIB_STEM}${VERSION_SUFFIX}.so
287287
checked_eval make fastclean
288-
checked_eval make dynamic DEBUG=true OPTS="$*" VER="$VERSION_SUFFIX" MCP_OPTS="$MCPOPTS"
288+
checked_eval make dynamic DEBUG=true OPTS="$*" VER="$VERSION_SUFFIX" MCP_OPTS="\"$MCPOPTS\""
289289
checked_eval install -m 644 $INSTALL_OPTS ${DYNAMIC_LIB_STEM}${VERSION_SUFFIX}.so ${DEBUG_LIB_DIR}
290290
if should_overwrite_ppu DEBUG_ ; then
291291
checked_eval install -m 664 $INSTALL_OPTS *.ppu ${DEBUG_INCLUDE_DIR}

0 commit comments

Comments
 (0)