*** zbenjamin is now known as Guest93333 | 02:15 | |
*** zbenjamin_ is now known as zbenjamin | 02:15 | |
*** frinring_ is now known as frinring | 05:12 | |
piggz | anyone know hoe to do this.... | 10:41 |
---|---|---|
piggz | in my qmake project, i install some additional files | 10:41 |
piggz | one of the files, i need to rename/pre-process before installation | 10:41 |
piggz | i thought i could do it specifying the commands in .extra, but it isnt workin | 10:42 |
ViGe | piggz: more details please | 10:48 |
piggz | ViGe: ok, specifically ... in amazfish, i install a systemd service | 10:49 |
piggz | for sailfish its fine | 10:49 |
ViGe | right | 10:49 |
piggz | but i now support desktop and other platforms | 10:49 |
piggz | i need something like a harbour-amazfish.service.in file, with some variables | 10:50 |
piggz | and replace them, antall timed rename the file at ins | 10:50 |
piggz | s/ | 10:50 |
piggz | and replace them and rename at install time | 10:50 |
piggz | ViGe: so far i tried this https://paste.mozilla.org/eLKa7eez | 10:52 |
piggz | but the file is never installed, possiblby is used to work, but i found this, and a comment says it no longer works https://stackoverflow.com/questions/11100321/how-to-rename-file-with-qmake-installs | 10:52 |
ViGe | How about not using .extra but .commands for the cp command? | 10:58 |
piggz | ViGe: nope | 11:04 |
piggz | there is no .service file created in the src or build dir either | 11:04 |
ViGe | piggz: Have you added systemd_services to target.depends? | 11:11 |
piggz | ViGe: progress..... had a typo in the target name! | 11:17 |
ViGe | :) | 11:18 |
piggz | still not working, but progress | 11:18 |
piggz | ViGe: progress++ | 11:23 |
piggz | ViGe: got it! | 11:30 |
piggz | file movend and contents changed | 11:30 |
piggz | systemd_services.commands = cp $$PWD/harbour-amazfish.service.in $$OUT_PWD/harbour-amazfish.service; sed -i \'s PREFIX $$PREFIX g\' $$OUT_PWD/harbour-amazfish.service | 11:30 |
ViGe | nice! | 11:31 |
mal | piggz: just a hint, you don't need the cp part if you use the template file in the sed command and pipe the sed output to the new file | 11:32 |
mal | piggz: so systemd_services.commands = sed \'s PREFIX $$PREFIX g\' $$PWD/harbour-amazfish.service.in > $$OUT_PWD/harbour-amazfish.service | 11:33 |
piggz | out of interest, why does sailfish use a different DBUS_SESSION_BUS_ADDRESS than the other distros ive seen, which all seem to use the same | 11:34 |
piggz | mal: thx! | 11:35 |
*** vilpan is now known as Guest58652 | 15:43 | |
*** Guest58652 is now known as vilpan | 15:44 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!