vipack became vipak; vipackTree became vipatsar

This commit is contained in:
Norayr Chilingarian 2025-05-29 18:52:58 +04:00
parent 41fe4a7132
commit 8bedfc1689
4 changed files with 24 additions and 24 deletions

View file

@ -49,7 +49,7 @@ build_deps:
@echo "________________________________________" @echo "________________________________________"
buildThis: buildThis:
@echo "building vipack" @echo "building vipak"
cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/vpkTools.Mod cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/vpkTools.Mod
cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/vpkSettings.Mod cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/vpkSettings.Mod
cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/unix/vpkTime.Mod cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/unix/vpkTime.Mod
@ -67,8 +67,8 @@ buildThis:
cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/vpkResolver.Mod cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/vpkResolver.Mod
cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/vpkJsonDepRetriever.Mod cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/vpkJsonDepRetriever.Mod
cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/vpkInstaller.Mod cd $(BUILD) && $(VOC) -s $(mkfile_dir_path)/src/vpkInstaller.Mod
cd $(BUILD) && $(VOC) $(mkfile_dir_path)/src/vipack.Mod -cm cd $(BUILD) && $(VOC) $(mkfile_dir_path)/src/vipak.Mod -cm
cd $(BUILD) && gcc -o vipack *.o -static -L/opt/voc/lib -lvoc-O2 /opt/voc/lib/libvoc-O2.a -L. -lmbedtls -lmbedcrypto -lmbedx509 libmbedcrypto.a libmbedtls.a libmbedx509.a cd $(BUILD) && gcc -o vipak *.o -static -L/opt/voc/lib -lvoc-O2 /opt/voc/lib/libvoc-O2.a -L. -lmbedtls -lmbedcrypto -lmbedx509 libmbedcrypto.a libmbedtls.a libmbedx509.a
@echo "________________________________________" @echo "________________________________________"
tests: tests:

View file

@ -1,11 +1,11 @@
![](https://xn--y9azesw6bu.xn--y9a3aq/media/uploads/2022/01/19/4b650ab4-2e97-45f8-8fd3-af1c726399c0.png) ![](https://xn--y9azesw6bu.xn--y9a3aq/media/uploads/2022/01/19/4b650ab4-2e97-45f8-8fd3-af1c726399c0.png)
vipack vipak
====== ======
vipack is a language or dependency agnostic package manager. vipak is a language or dependency agnostic package manager.
currently it has a backend to retrieve dependencies from the [vipack tree](https://github.com/vishaps/vipackTree). currently it has a backend to retrieve dependencies from the [vipak tree](https://codeberg.org/vishapoberon/vipatsar).
that is a list of json files, each containing information about the package dependencies, where to download the packages, and how to build those. that is a list of json files, each containing information about the package dependencies, where to download the packages, and how to build those.
@ -14,8 +14,8 @@ build
requirements: git, gmake, cc, voc requirements: git, gmake, cc, voc
`git clone https://github.com/vishaps/vipack` `git clone https://codeberg.org/vishapoberon/vipak`
`cd vipack` `cd vipak`
`gmake` `gmake`
or on freebsd: or on freebsd:
@ -25,23 +25,23 @@ or on freebsd:
usage usage
===== =====
try `vipack --help`. try `vipak --help`.
some examples: some examples:
`vipack -s` — syncs the default package tree to `~/.vipack/vipackTree`. `vipak -s` — syncs the default package tree to `~/.vipak/vipatsar`.
`vipack -d -p irc_bot` — only resolves/shows dependencies of the package `irc_bot`, does not download or build packages. `vipak -d -p irc_bot` — only resolves/shows dependencies of the package `irc_bot`, does not download or build packages.
`vipack -f -p irc_bot` — resolves and fetches required packages. `vipak -f -p irc_bot` — resolves and fetches required packages.
`vipack -p irc_bot` — will build the package and dependencies in the default prefix: `~/vpkLocal` `vipak -p irc_bot` — will build the package and dependencies in the default prefix: `~/vpkLocal`
`vipack -a -p irc_bot` — ask for confirmation before building the package and dependencies in the default prefix: `~/vpkLocal` `vipak -a -p irc_bot` — ask for confirmation before building the package and dependencies in the default prefix: `~/vpkLocal`
`vipack -p irc_bot -P /tmp/coolprefix` — will do the same in the custom prefix. `vipak -p irc_bot -P /tmp/coolprefix` — will do the same in the custom prefix.
`vipack -p irc_bot -P /tmp/coolprefix -t /tmp/myothertree` — the same, but the dependency resolution will be conducted by using custom package description tree. `vipak -p irc_bot -P /tmp/coolprefix -t /tmp/myothertree` — the same, but the dependency resolution will be conducted by using custom package description tree.
todo todo
==== ====

View file

@ -1,4 +1,4 @@
MODULE vipack; MODULE vipak;
IMPORT Texts, Strings, Oberon, Out, IMPORT Texts, Strings, Oberon, Out,
vpkConf, vpkLogger, vpkSyncer, vpkInstaller, vpkdepTree, opts, StringList; vpkConf, vpkLogger, vpkSyncer, vpkInstaller, vpkdepTree, opts, StringList;
(* (*
@ -230,7 +230,7 @@ BEGIN
vpkLogger.Log("HelpText"); vpkLogger.Log("HelpText");
Out.String("Vipack sync - syncing git tree and local tree"); Out.Ln; Out.String("Vipack sync - syncing git tree and local tree"); Out.Ln;
Out.String("vipackConf.json path -> $HOME/.vipack/vipackConf.json"); Out.Ln; Out.String("vipackConf.json path -> $HOME/.vipack/vipackConf.json"); Out.Ln;
Out.String("vipackTree path -> $HOME/.vipack/vipackTree") Out.String("vipak tree path -> $HOME/.vipak/vipatsar")
END help; END help;
PROCEDURE main(); PROCEDURE main();
@ -268,4 +268,4 @@ END main;
BEGIN BEGIN
main main
END vipack. END vipak.

View file

@ -28,9 +28,9 @@ TYPE
END; END;
BEGIN BEGIN
vpkConfDir := ".vipack"; vpkConfDir := ".vipak";
vpkConfFile := "vipackConf.json"; vpkConfFile := "vipak.json";
vpkTreeDir := "vipackTree"; vpkTreeDir := "vipatsar";
vpkPkgDir := "vpkLocal"; vpkPkgDir := "vpkLocal";
vpkDepDir := "deps"; vpkDepDir := "deps";
vpkBldDir := "build"; vpkBldDir := "build";
@ -58,8 +58,8 @@ BEGIN
bldType := "Build"; bldType := "Build";
bldCommand := "Command"; bldCommand := "Command";
bldFile := "File"; bldFile := "File";
defTreeVal := "https://github.com/vishaps/vipackTree"; defTreeVal := "https://codeberg.org/vishapoberon/vipatsar";
(*defTreeVal := "git@github.com:vishaps/vipackTree";*) (*defTreeVal := "git@codeberg.org:vishapoberon/vipatsar";*)
confTreeVal := defTreeVal; confTreeVal := defTreeVal;
defTypVal := rmtTypGitVal; defTypVal := rmtTypGitVal;