[Slackbuilds-users] What if we `source`d the version number
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.
You can source .info before executing .SlackBuild to get the same effect. No changes needed. :-)
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
More information about the SlackBuilds-users