[daisy] [JIRA] Updated: (DSY-405) Integrate tanuki wrapper scripts in Daisy build

Andreas Deininger (JIRA) issues at cocoondev.org
Mon Mar 12 16:33:20 CDT 2007


     [ http://issues.cocoondev.org//browse/DSY-405?page=all ]

Andreas Deininger updated DSY-405:
----------------------------------

    Attachment: tanuki_wrapper.diff

The following patch is minimal invasive to the existing installation scripts.

I don't mind having a discussion about the installation scripts and certainly my proposed solution can be further improved. Maybe the code is not fundamentally easier, however the achieved installation routine for the end user certainly is:
* no need to run three different scripts
* no need to login three times into the repository
* one single configuration file instead of two

I acknowledge that the daisy-wiki-init script should be available for re-installing the default types. I already thought about that, with my proposed solution that could be done by simply adding a command-line switch to the script (-x: installing default types only). 
Certainly the installation could be done via an integrated script, also. However, most  important, a simplified installation should be implemented at all. I hope that my initiative will be picked up soon.

> Intention of this code in DaisyWikiInit:
>
>       InstallHelper.moveFile(wikiWrapperTemplateLinux, wikiWrapperLinux);
>       InstallHelper.copyFile(wikiWrapperLinux, wikiWrapperTemplateLinux); 

I have to copy the wrapper template to the bin directory of the daisy(wiki) data directory. Depending on the umask, the executable might got lost while copying the file. Since the executable bit can be set programmatically in Java 6 only, I came up with the solution to move the file rather than copying it (since the executable bit will be preserved). In order to allow multiple installations (e.g. if the first installation failed), I copy the file back to the original location. This solution is clearly not ideal (if you run the script for the second time, the moved file might not have its executable bit set). Any idea for a better approach is appreciated. 

> Integrate tanuki wrapper scripts in Daisy build
> -----------------------------------------------
>
>          Key: DSY-405
>          URL: http://issues.cocoondev.org//browse/DSY-405
>      Project: Daisy
>         Type: Improvement
>     Versions: public - 2.0
>     Reporter: Andreas Deininger
>     Priority: Minor
>  Attachments: tanuki_wrapper.diff, wrapper.diff, wrapper.diff, wrapper.tar.bz2
>
> The following patch integrates the tanuki wrapper scripts in the Daisy binary build.
> During build time, a self contained wrapper installation is created inside the daisy binaries, these scripts are automatically configured during the repository and daisy wiki initialisation (no manual configuration is needed afterwards).
> This patch also upgrades the tanuki wrapper inside the windows installer to the latest release.
> This patch is the linux part only though it already contains a some files  needed for the windows variant. I will finalize the windows part once this patch is committed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



More information about the daisy mailing list