[Slackbuilds-users] What if we `source`d the version number

Andrzej Telszewski andrzej at telszewski.com
Tue Jan 4 21:48:46 UTC 2022

Jan 4, 2022 10:11:00 PM Klaatu <klaatu at mixedsignals.ml>:

> Why do we define the VERSION for a package in two separate files?
> What if we replaced this line in foo.SlackBuild:
> with this instead:
> . ./$PRGNAM.info
> The VERSION variable would get imported from a consolidated location (the .info file).
> It seems to make more sense to me, and it makes trivial upgrades (the ones where I go in and just bump a version number to something I want to build) a one-file task.
> Thoughts?

You can source .info before executing .SlackBuild to get the same effect. No changes needed. :-)

> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/

More information about the SlackBuilds-users mailing list