WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: pkutils (*.(g)awk) pkgmgr for Slackware written as an alternative to slackpkg.  (Read 825 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 633
  • ~.~


 https://github.com/tuorqai/pkutils ~ Simple and rude package manager...

Quote
Why AWK?

Initially pkutils were a set of the POSIX shell scripts with some helper scripts in AWK for processing the PACKAGES files. But eventually the AWK code became greater than the Shell one.

Also I quite liked the AWK since its syntax resembles C and it is very simple and primitive (as opposed to monsters like Python or Ruby). If pkutils will survive, I think it will be rewritten in something like Go or Rust.

I understand that AWK is not supposed to be used in the way I use it, but who cares.

https://github.com/tuorqai/pkutils/blob/master/src/pkupd
Code: [Select]
/usr/bin/gawk -f "pkutils.pkupd.awk" -- $*
exit $?
...
 https://github.com/tuorqai/pkutils/blob/master/src/awk/pkutils.pkupd.awk
..
 https://github.com/tuorqai/pkutils/blob/master/src/awk/pkutils.argparser.awk
>Overengineered argument parser.

interesting