nutcracker 0.2.4.1 → 0.2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +28 -10
- data/Rakefile +5 -19
- data/bin/nutcracker +6 -1
- data/ext/nutcracker/ChangeLog +9 -0
- data/ext/nutcracker/Makefile.in +54 -29
- data/ext/nutcracker/README.md +13 -11
- data/ext/nutcracker/aclocal.m4 +46 -26
- data/ext/nutcracker/config/config.guess +209 -240
- data/ext/nutcracker/config/config.sub +157 -70
- data/ext/nutcracker/config/depcomp +66 -8
- data/ext/nutcracker/config/install-sh +18 -11
- data/ext/nutcracker/config/ltmain.sh +2632 -1384
- data/ext/nutcracker/config/missing +4 -49
- data/ext/nutcracker/configure +2866 -2118
- data/ext/nutcracker/configure.ac +1 -1
- data/ext/nutcracker/contrib/Makefile.in +17 -10
- data/ext/nutcracker/m4/libtool.m4 +1437 -812
- data/ext/nutcracker/m4/ltoptions.m4 +24 -8
- data/ext/nutcracker/m4/ltversion.m4 +6 -6
- data/ext/nutcracker/m4/lt~obsolete.m4 +9 -3
- data/ext/nutcracker/notes/recommendation.md +21 -2
- data/ext/nutcracker/notes/redis.md +9 -9
- data/ext/nutcracker/scripts/redis-check.sh +9 -0
- data/ext/nutcracker/src/Makefile.in +18 -11
- data/ext/nutcracker/src/hashkit/Makefile.am +1 -0
- data/ext/nutcracker/src/hashkit/Makefile.in +23 -13
- data/ext/nutcracker/src/hashkit/nc_crc16.c +66 -0
- data/ext/nutcracker/src/hashkit/nc_hashkit.h +2 -0
- data/ext/nutcracker/src/hashkit/nc_modula.c +18 -6
- data/ext/nutcracker/src/nc_conf.c +14 -35
- data/ext/nutcracker/src/nc_conf.h +1 -1
- data/ext/nutcracker/src/nc_message.h +2 -0
- data/ext/nutcracker/src/nc_server.c +9 -7
- data/ext/nutcracker/src/proto/Makefile.in +16 -9
- data/ext/nutcracker/src/proto/nc_redis.c +17 -4
- data/lib/nutcracker/version.rb +1 -1
- data/lib/nutcracker.rb +60 -2
- metadata +3 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
# install - install a program, script, or datafile
|
3
3
|
|
4
|
-
scriptversion=
|
4
|
+
scriptversion=2011-01-19.21; # UTC
|
5
5
|
|
6
6
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
7
7
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
@@ -156,6 +156,10 @@ while test $# -ne 0; do
|
|
156
156
|
-s) stripcmd=$stripprog;;
|
157
157
|
|
158
158
|
-t) dst_arg=$2
|
159
|
+
# Protect names problematic for `test' and other utilities.
|
160
|
+
case $dst_arg in
|
161
|
+
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
162
|
+
esac
|
159
163
|
shift;;
|
160
164
|
|
161
165
|
-T) no_target_directory=true;;
|
@@ -186,6 +190,10 @@ if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
|
|
186
190
|
fi
|
187
191
|
shift # arg
|
188
192
|
dst_arg=$arg
|
193
|
+
# Protect names problematic for `test' and other utilities.
|
194
|
+
case $dst_arg in
|
195
|
+
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
196
|
+
esac
|
189
197
|
done
|
190
198
|
fi
|
191
199
|
|
@@ -200,7 +208,11 @@ if test $# -eq 0; then
|
|
200
208
|
fi
|
201
209
|
|
202
210
|
if test -z "$dir_arg"; then
|
203
|
-
|
211
|
+
do_exit='(exit $ret); exit $ret'
|
212
|
+
trap "ret=129; $do_exit" 1
|
213
|
+
trap "ret=130; $do_exit" 2
|
214
|
+
trap "ret=141; $do_exit" 13
|
215
|
+
trap "ret=143; $do_exit" 15
|
204
216
|
|
205
217
|
# Set umask so as not to create temps with too-generous modes.
|
206
218
|
# However, 'strip' requires both read and write access to temps.
|
@@ -228,9 +240,9 @@ fi
|
|
228
240
|
|
229
241
|
for src
|
230
242
|
do
|
231
|
-
# Protect names
|
243
|
+
# Protect names problematic for `test' and other utilities.
|
232
244
|
case $src in
|
233
|
-
-*) src=./$src;;
|
245
|
+
-* | [=\(\)!]) src=./$src;;
|
234
246
|
esac
|
235
247
|
|
236
248
|
if test -n "$dir_arg"; then
|
@@ -252,12 +264,7 @@ do
|
|
252
264
|
echo "$0: no destination specified." >&2
|
253
265
|
exit 1
|
254
266
|
fi
|
255
|
-
|
256
267
|
dst=$dst_arg
|
257
|
-
# Protect names starting with `-'.
|
258
|
-
case $dst in
|
259
|
-
-*) dst=./$dst;;
|
260
|
-
esac
|
261
268
|
|
262
269
|
# If destination is a directory, append the input filename; won't work
|
263
270
|
# if double slashes aren't ignored.
|
@@ -385,7 +392,7 @@ do
|
|
385
392
|
|
386
393
|
case $dstdir in
|
387
394
|
/*) prefix='/';;
|
388
|
-
|
395
|
+
[-=\(\)!]*) prefix='./';;
|
389
396
|
*) prefix='';;
|
390
397
|
esac
|
391
398
|
|
@@ -403,7 +410,7 @@ do
|
|
403
410
|
|
404
411
|
for d
|
405
412
|
do
|
406
|
-
test
|
413
|
+
test X"$d" = X && continue
|
407
414
|
|
408
415
|
prefix=$prefix$d
|
409
416
|
if test -d "$prefix"; then
|