From ba9d1d4fc20c6ff28dd16b567edc60c9ca210f7d Mon Sep 17 00:00:00 2001 From: ngn Date: Sun, 11 Aug 2024 01:50:19 +0300 Subject: [PATCH] update: add seperate command for config installation --- Makefile | 10 ++++++---- locale/tr/LC_MESSAGES/matt.po | 6 +++--- src/main.c | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 501708f..46c9d03 100644 --- a/Makefile +++ b/Makefile @@ -42,10 +42,8 @@ locale/matt.pot: $(SRCS) xgettext -k_ -c $^ -o $@ install: - install -d -m700 $(DESTDIR)/etc/matt - install -d -m700 $(DESTDIR)/var/lib/matt + install -d -m755 $(DESTDIR)/var/lib/matt install -m755 dist/matt $(DESTDIR)/$(PREFIX)/bin/matt - install -m600 install/config.ini $(DESTDIR)/etc/matt/config.ini @for po in $(PO_DIRS) ; do \ echo "installing locale: $$po/matt.mo" ; \ mkdir -pv $(DESTDIR)/$(PREFIX)/share/$$po ; \ @@ -61,4 +59,8 @@ uninstall: format: clang-format -i -style=file src/*.c src/*.h -.PHONY: install uninstall format +config: + install -d -m755 $(DESTDIR)/etc/matt + install -m644 install/config.ini $(DESTDIR)/etc/matt/config.ini + +.PHONY: install uninstall format config diff --git a/locale/tr/LC_MESSAGES/matt.po b/locale/tr/LC_MESSAGES/matt.po index 529294c..6944a4f 100644 --- a/locale/tr/LC_MESSAGES/matt.po +++ b/locale/tr/LC_MESSAGES/matt.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-09 03:00+0300\n" +"POT-Creation-Date: 2024-08-11 01:49+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -114,8 +114,8 @@ msgid "Command not found: " msgstr "Command not found: " #: src/main.c:161 -#, c-format -msgid "MatterLinux package manager (version %s)" +#, fuzzy, c-format +msgid "MatterLinux package manager %s (libmp %s)" msgstr "MatterLinux package manager (version %s)" #: src/main.c:162 diff --git a/src/main.c b/src/main.c index 3ad62f0..fc31c71 100644 --- a/src/main.c +++ b/src/main.c @@ -158,7 +158,7 @@ int main(int argc, char *argv[], char *envp[]) { error(_("Command not found: " FG_BOLD "%s"), args->list[0].value); help: - info(_("MatterLinux package manager (version %s)"), VERSION); + info(_("MatterLinux package manager %s (libmp %s)"), VERSION, LM_VERSION); info(_("Usage: " FG_BOLD "%s [command] "), argv[0]); printf("\n"); info(_("Here is a list of available commands:"));