Skip to content

How run a script with arguments? #7

@uliwitness

Description

@uliwitness

I'm trying to get this to run in my (non-MPW) makefile:

MakePPCCodeRsrc build/obj/$(EXECUTABLE).tmp -o $(EXECUTABLE) -append -rt xcmd=7000 -c 'RSED' -t 'rsrc' -rn $(EXECUTABLE)

Installed copied the Scripts folder from Apple's MPW to ~/mpw/Scripts/. Tried

~/mpw/bin/mpw-shell -c "MakePPCCodeRsrc build/obj/$(EXECUTABLE).tmp -o build/$(EXECUTABLE) -append -rt xcmd=7000 -c 'RSED' -t 'rsrc' -rn $(EXECUTABLE)"

And as long as I add {MPW}Scripts to $Commands that seems to run, but it then fails with

Exiting - PC = 0
make: *** [build/SelectionMode] Error 70

I tried adding -v before -c to get some additional information, but that doesn't seem to have any effect. Also tried :build:obj:$(EXECUTABLE).tmp as the path. I'm assuming something about the file paths is wrong, but no idea how to confirm that or what format this stuff should really be. Do I somehow need to tell mpw-shell about the current directory from zsh? Or should it just pick that up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions