update: add seperate command for config installation

This commit is contained in:
ngn 2024-08-11 01:50:19 +03:00
parent 713cf4e6bf
commit ba9d1d4fc2
3 changed files with 10 additions and 8 deletions

View File

@ -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

View File

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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

View File

@ -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] <options> <arguments>"), argv[0]);
printf("\n");
info(_("Here is a list of available commands:"));