40 | | set sharedir ${destroot}${prefix}/share |
41 | | set l4jdir ${sharedir}/launch4j |
42 | | set l4jdoc ${sharedir}/doc/launch4j |
43 | | |
44 | | xinstall -d -m 755 ${l4jdoc} |
45 | | file rename ${worksrcpath}/web ${l4jdoc} |
46 | | file rename ${worksrcpath}/demo ${l4jdoc} |
47 | | file rename ${worksrcpath}/LICENSE.txt ${l4jdoc} |
48 | | file rename ${worksrcpath}/w32api/MinGW.LICENSE.txt ${l4jdoc} |
49 | | foreach doc {JGoodies.Forms JGoodies.Looks Nuvola.Icon.Theme XStream commons foxtrot} { |
50 | | file rename ${worksrcpath}/lib/${doc}.LICENSE.txt ${l4jdoc} |
51 | | } |
52 | | file rename ${worksrcpath}/bin/COPYING ${l4jdoc}/bin.COPYING |
53 | | file rename ${worksrcpath}/bin/readme.txt ${l4jdoc}/bin.readme.txt |
54 | | file rename ${worksrcpath}/head/LICENSE.txt ${l4jdoc}/head.LICENSE.txt |
| 36 | # set install paths |
| 37 | set l4jdir ${prefix}/share/${name} |
| 38 | set l4jdoc ${prefix}/share/doc/${name} |
| 39 | |
| 40 | # delete source control files |
| 41 | file delete ${worksrcpath}/.gitignore |
| 42 | file delete ${worksrcpath}/demo/ConsoleApp/.gitignore |
| 43 | file delete ${worksrcpath}/demo/SimpleApp/.gitignore |
| 49 | file delete ${worksrcpath}/build.xml |
| 50 | file delete ${worksrcpath}/launch4j.jfpr |
| 51 | |
| 52 | # delete source files |
| 53 | file delete -force ${worksrcpath}/head_src |
| 54 | file delete -force ${worksrcpath}/src |
| 55 | file delete -force ${worksrcpath}/sign4j |
| 56 | |
| 57 | # delete windows executable |
| 58 | file delete ${worksrcpath}/launch4j.exe |
| 59 | |
| 60 | # set absolute path to jar in wrapper script |
| 61 | set jar_relpath {"$(dirname "$0")"/launch4j.jar} |
| 62 | set jar_abspath '${l4jdir}/launch4j.jar' |
| 63 | reinplace "s|${jar_relpath}|${jar_abspath}|g" ${worksrcpath}/launch4j |
| 64 | |
| 65 | # install documentation |
| 66 | xinstall -d -m 755 ${destroot}${l4jdoc} |
| 67 | file rename ${worksrcpath}/LICENSE.txt ${destroot}${l4jdoc} |
| 68 | file rename ${worksrcpath}/bin/COPYING ${destroot}${l4jdoc}/bin.COPYING |
| 69 | file rename ${worksrcpath}/head/LICENSE.txt ${destroot}${l4jdoc}/head.LICENSE.txt |
| 70 | file rename ${worksrcpath}/w32api/MinGW.LICENSE.txt ${destroot}${l4jdoc} |
| 71 | foreach doc {JGoodies.Forms JGoodies.Looks Nuvola.Icon.Theme XStream ant commons foxtrot} { |
| 72 | file rename ${worksrcpath}/lib/${doc}.LICENSE.txt ${destroot}${l4jdoc} |
| 73 | } |
| 74 | file rename ${worksrcpath}/web ${destroot}${l4jdoc} |
| 75 | file rename ${worksrcpath}/demo ${destroot}${l4jdoc} |