And googling hasn't helped much, I'm trying to find some example shell scripts to help me figure-out an installer.pkg pre- / post-install scripts I've been ordered to build. I have very little knowledge of shell scripting and need to find something to work with. This project was not my choice, but was dropped into my lap and I'm stuck doing it. The app could be a drag and drop affair but my manager wants an installer.pkg, no, if, ands, or buts.
Anyway, I have no clue as to where to begin. I am most experienced in applescripting, not shell scripting. If someone could point me in the right direction I would appreciate it.
• I need to import user saved "info" from any old versions.
• If the app was never installed, I have to put the app icon in the Dock (using emmett).
• How do I get the path to the installer at run-time so as to refer to path to emmett?