diff options
-rw-r--r-- | priv/templates/simplenode.erl.script | 2 | ||||
-rwxr-xr-x | priv/templates/simplenode.runner | 2 | ||||
-rw-r--r-- | src/rebar_port_compiler.erl | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/priv/templates/simplenode.erl.script b/priv/templates/simplenode.erl.script index d97c514..e500626 100644 --- a/priv/templates/simplenode.erl.script +++ b/priv/templates/simplenode.erl.script @@ -24,7 +24,7 @@ APP_VSN=${START_ERL#* } BINDIR=$ROOTDIR/erts-$ERTS_VSN/bin EMU=beam -PROGNAME=`echo $0 | sed 's/.*\///'` +PROGNAME=`echo $0 | sed 's/.*\\///'` CMD="$BINDIR/erlexec" export EMU export ROOTDIR diff --git a/priv/templates/simplenode.runner b/priv/templates/simplenode.runner index 08fa4af..70f4584 100755 --- a/priv/templates/simplenode.runner +++ b/priv/templates/simplenode.runner @@ -103,7 +103,7 @@ case "$1" in ROOTDIR=$RUNNER_BASE_DIR BINDIR=$ROOTDIR/erts-$ERTS_VSN/bin EMU=beam - PROGNAME=`echo $0 | sed 's/.*\///'` + PROGNAME=`echo $0 | sed 's/.*\\///'` CMD="$BINDIR/erlexec -boot $RUNNER_BASE_DIR/releases/$APP_VSN/$SCRIPT -embedded -config $RUNNER_ETC_DIR/app.config -args_file $RUNNER_ETC_DIR/vm.args -- ${1+"$@"}" export EMU export ROOTDIR diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl index 46ce954..a770eda 100644 --- a/src/rebar_port_compiler.erl +++ b/src/rebar_port_compiler.erl @@ -271,7 +271,7 @@ so_name(Config, AppFile) -> %% generate the linked port driver name case rebar_app_utils:load_app_file(AppFile) of {ok, AppName, _} -> - AppName; + lists:concat([AppName, "_drv.so"]); error -> ?FAIL end; @@ -280,4 +280,4 @@ so_name(Config, AppFile) -> end, %% Construct the driver name - ?FMT("priv/~s_drv.so", [PortName]). + ?FMT("priv/~s", [PortName]). |