Skip to content

Commit b916c57

Browse files
committed
Update src/etc/gyp-uv
Make instructions more accurate. Make the sed commands work on linux.
1 parent bdbeb75 commit b916c57

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/etc/gyp-uv

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22

33
# This script generates rust compatible makefiles from libuv. When upgrading
44
# libuv, do:
5-
#
5+
# cd $RUST_DIR
6+
# rm -r mk/libuv
67
# cd $LIBUV_DIR
78
# git archive --prefix libuv/ $REVISION > libuv.tar.gz
89
# cd $RUST_DIR/src/rt
910
# rm -r libuv
1011
# tar -xvf $LIBUV_DIR/libuv.tar.gz
11-
# mkdir -p libuv/build
12-
# svn co http://gyp.googlecode.com/svn build/gyp
13-
# cd ../..
14-
# ./etc/src/gyp_uv
12+
# cd libuv
13+
# mkdir build
14+
# svn co http://gyp.googlecode.com/svn/trunk build/gyp
15+
# cd ../../..
16+
# ./src/etc/gyp-uv
1517

1618
set -e
1719

@@ -37,11 +39,11 @@ args="--depth . -Dlibrary=static_library -Dtarget_arch=ia32"
3739

3840
# Comment out the gyp auto regeneration
3941
for os in mac unix win; do
40-
sed -i ".save" \
42+
sed -i".save" \
4143
-e 's/^\(Makefile: $(srcdir)\/src\/rt\/libuv\/uv\.gyp\)/#\1/' \
4244
mk/libuv/$os/Makefile
4345

44-
sed -i ".save" \
46+
sed -i".save" \
4547
-e 's/^\( $(call do_cmd,regen_makefile)\)/#\1/' \
4648
mk/libuv/$os/Makefile
4749

0 commit comments

Comments
 (0)