0

I have a program written completely in Bash, which includes the main script, a set of modules called by the main script, a config file, a lib file, etc.

Since nothing needs to be compiled, what's the best way to create an installation file that places all the files in their proper locations (main script in /usr/bin/, conf file in /etc/, lib file in /usr/lib/, etc.)? Should I just use a makefile, even though no compilation is needed?

Note that I do not want to package the file. I just want to be able to pull from the repo and install from source.

  • You may wish to check this out. blog.packagecloud.io/eng/2016/12/15/… Hope this helps. – BeanThere Jan 9 at 0:11
  • 1
    You've basically ruled out the "right" answer by stating you don't want to package the file in a dpkg. You've written your script in bash, why not write another bash script to install it, that way your target system doesn't need make installed. – couling Jan 9 at 0:28

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.