On Thu, Jun 30, 2011 at 5:35 PM, Jody Garnett <[email protected]> wrote:
> I just tried the installer; the version number came up as 1.2-terradata -
> that would be "wrong".
> The steps mentioned in the installer/readme.txt indicate that we need to do
> a search and replace in an editor ...
>
> 3. Next, open up uDigInstallScript.nsi, and edit the parts that state the
> version of uDig.
>    This includes the following lines: 44,45,50,55,125,163,218,270,303
>    (Replace VersionXXXX with whatever version you are working with for
> example 1.2-M4)
>
> We probably need to fix 1.2-terradata to VersionXXXX - and then update the
> script.


sed -e 's/VersionXXXX/VersionNew/g' uDigInstallScript.nsi

That will dump the result in standard output on console.

sed -e 's/VersionXXXX/VersionNew/g' uDigInstallScript.nsi >
uDigInstallScript_final.nsi

Don't do sed -e 's/VersionXXXX/VersionNew/g' uDigInstallScript.nsi >
uDigInstallScript.nsi
because sed works in streaming and would corrupt your file.


Andrea




> --
> Jody Garnett
>
> On Friday, 1 July 2011 at 1:29 AM, andrea antonello wrote:
>
> what do you need from sed?
>
> I think I can help.
>
> Andrea
>
> On Thu, Jun 30, 2011 at 5:16 PM, Jody Garnett <[email protected]>
> wrote:
>
> Okay I fixed it .... could use some help with "sed" to do the correct search
> replace in the uDigInstallScript.nsi file.
>     MAKENSIS=`which makensis`
>     if [ $? == 0 ] ; then
>         HERE=`pwd`
>         # todo use sed or something to update VERSION inside
> uDigInstallScript.nsi
>
>         cp ${INSTALLER}/uDigInstallScript.nsi ${BUILD}/${PLATFORM}
>         cp ${INSTALLER}/32-uDigIcon.ico ${BUILD}/${PLATFORM}
>         cp ${INSTALLER}/ECWEULA.txt ${BUILD}/${PLATFORM}
>         cp ${INSTALLER}/LICENSE.txt ${BUILD}/${PLATFORM}
>         cp ${INSTALLER}/uDigInstallScript.nsi ${BUILD}/${PLATFORM}
>         cp ${INSTALLER}/32-uninstallIcon.ico ${BUILD}/${PLATFORM}
>         cp ${INSTALLER}/LGPL.txt ${BUILD}/${PLATFORM}
>         cp ${INSTALLER}/udig/icons ${BUILD}/${PLATFORM}/icons
>
>         cd ${BUILD}/${PLATFORM}
>         makensis "-NOCD" uDigInstallScript.nsi
>         cd ${HERE}
>         cp ${BUILD}/${PLATFORM}/udig-*.exe
> ${BUILD}/udig-${VERSION}.${EXT}.exe
>     else
>         WINE=`which wine`
>
> --
> Jody Garnett
>
>
> The uDigInstallScript.nsi is not in the correct location; so there must be
> some magic setup I am unware of ... I am used to unpacking the win32 build
> into the installer directory before running nsis; perhaps this time the
> configuration file is supposed to be copied into the build directory?
> --
> Jody Garnett
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to