Make install-script for SVR4 package
With help of Michal Pryc and Erwann Chenede, I am now able to create easy use install-script for my projects. Here is how to:
1) You have install script for SVR4 packages
2) Create a base .sh script
You need to edit install and needed files to fit your requirements.
Please adjust the value "skip=54", which is currently at line 34 of the script.
This value should equal the line number of this .sh file plus one.
3) make a .tar.bz2 for packages.
# /usr/sfw/bin/gtar -jcf opensync-0.3.3-solaris-x86.tar.bz2 SFEswig \
SFEsqlite SFEwbxml SFEpylibs-httplib2 SFEopenobex SFElibsyncml \
SFElibopensync SFElibopensync-plugin-file SFElibopensync-plugin-evo2 \
SFElibopensync-plugin-gcal SFElibopensync-plugin-palm \
SFElibopensync-plugin-sml SFElibopensync-plugin-vfmt \
SUNWgnome-sync SUNWgnome-sync-plugins \
SUNWgnome-sync-root install-opensync
4) cp opensync-version-solaris-arch.sh opensync-0.3.3-solaris-x86.sh
5) cat opensync-0.3.3-solaris-x86.tar.bz2 >> opensync-0.3.3-solaris-x86.sh
6) Try this script
# cp opensync-0.3.3-solaris-x86.sh /tmp
# cd /tmp/
# sh ./opensync-0.3.3-solaris-x86.sh -x
# sh ./opensync-0.3.3-solaris-x86.sh
Here we go.