Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i am trying to create a .deb file that first installs the dependency that is stored in the some folder, for that i have created a shell script. My issue is executing the shell script through make file my make file format to call a shell script is like this:

$(shell PATH="$(../)" "./something.sh")

but when i do a fakeroot debian/rules clean, it throws an error:

./something.sh: 3: ./something.sh: sh: not found
./something.sh: 4: ./something.sh: make: not found
./something.sh: 5: ./something.sh: make: not found
share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

You are setting PATH to "" you even commands in /usr/bin can't be found.

I assume you want to add .. to PATH. What you want is:

$(shell PATH="$(PATH):.." ./something.sh)

Assuming you are doing something with the output of something.sh, if not then:

PATH=$(PATH):.. ./something.sh

Is all that is required.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.