I want to configure symbolic links and add some lines to the system configuration files, I think I should perform these tasks in some cases after installation.
Makefile.am:
bin_SCRIPTS = a a1
a1:
ln -snf a a1
This works, but it copies ato a1in bindir, and a1is created as a symbolic link in the assembly directory.
I also want to change some system configuration files, and not replace them, for example, something like
post-install:
grep -q [magic-word] /etc/somefile || echo more-config... >>/etc/somefile
But I do not know how to do this.
source
share