Don't create symlink if it exists; "What now?" piped through more for smaller terminals

This commit is contained in:
2018-11-03 17:26:42 +01:00
parent 0db6ed5870
commit b742a615fd
2 changed files with 25 additions and 11 deletions

View File

@ -3,5 +3,4 @@ appicon_DATA=pampanic.svg
pixmapsdir=$(datadir)/pixmaps
install-exec-hook:
$(MKDIR_P) $(pixmapsdir)
$(LN_S) $(appicondir)/pampanic.svg $(pixmapsdir)/pampanic.svg
test -L $(pixmapsdir)/pampanic.svg && echo "Symlink exists" || { $(MKDIR_P) $(pixmapsdir) ; $(LN_S) $(appicondir)/pampanic.svg $(pixmapsdir)/pampanic.svg ; }