braice / MuMuDVB

A DVB IPTV streaming software
http://mumudvb.braice.net/
GNU General Public License v2.0
219 stars 133 forks source link

[BUG] reported version is wrong #299

Closed Saentist closed 2 years ago

Saentist commented 2 years ago

Is it normal to see 2.1.0_20181020_mumudvb2? When latest commit is 15 day ago?

/mumudvb -h
MuMuDVB is a program who can redistribute stream from DVB on a network, in multicast or in http unicast.
It's main feature is to take a whole transponder and put each channel on a different multicast IP.

Usage: mumudvb [options]
-c, --config : Config file
-s, --signal : Display signal power
-t, --traffic : Display channels traffic
-l, --list-cards : List the DVB cards and exit
--card       : The DVB card to use (overrided by the configuration file)
--server_id  : The server id (for autoconfiguration, overrided by the configuration file)
-d, --debug  : Don't deamonize
-v           : More verbose
-q           : Less verbose
--dumpfile   : Debug option : Dump the stream into the specified file
-h, --help   : Help

MuMuDVB Version 2.1.0_20181020_mumudvb2
 --- Build information ---
Built with CAM support.
Built with SCAM support.
Built with ATSC support.
Built with ATSC long channel names support.
Built with support for DVB API Version 5.10.
Built with support for DVB-T2.
---------
Originally based on dvbstream 0.6 by (C) Dave Chapman 2001-2004
Released under the GPL.
Latest version available from http://mumudvb.net/
Project from the cr@ns (http://www.crans.org)
by Brice DUBOST (mumudvb@braice.net)
braice commented 2 years ago

No At the time I did it I was not very good with git coupled with makefiles. I think it should be updated at commit time with a hook....

On Mon, Jun 20, 2022, 18:42 Saentist @.***> wrote:

Is it norml to see 2.1.0_20181020_mumudvb2 When latest commit is 15 day ago?

/mumudvb -h MuMuDVB is a program who can redistribute stream from DVB on a network, in multicast or in http unicast. It's main feature is to take a whole transponder and put each channel on a different multicast IP.

Usage: mumudvb [options] -c, --config : Config file -s, --signal : Display signal power -t, --traffic : Display channels traffic -l, --list-cards : List the DVB cards and exit --card : The DVB card to use (overrided by the configuration file) --server_id : The server id (for autoconfiguration, overrided by the configuration file) -d, --debug : Don't deamonize -v : More verbose -q : Less verbose --dumpfile : Debug option : Dump the stream into the specified file -h, --help : Help

MuMuDVB Version 2.1.0_20181020_mumudvb2 --- Build information --- Built with CAM support. Built with SCAM support. Built with ATSC support. Built with ATSC long channel names support. Built with support for DVB API Version 5.10. Built with support for DVB-T2.

Originally based on dvbstream 0.6 by (C) Dave Chapman 2001-2004 Released under the GPL. Latest version available from http://mumudvb.net/ Project from the @. (http://www.crans.org) by Brice DUBOST @.)

— Reply to this email directly, view it on GitHub https://github.com/braice/MuMuDVB/issues/299, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRIDZNEJ2GKCVQHRGOYIDVQCNQPANCNFSM5ZJQCIXQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Saentist commented 2 years ago

https://github.com/marketplace/actions/git-semantic-version maybe this will help solving case

https://gist.github.com/sg-s/2ddd0fe91f6037ffb1bce28be0e74d4e

Put this in a file called pre-commit in .git/hooks/

#!/bin/sh
# To enable this hook, rename this file to "pre-commit".

git log master --pretty=oneline | wc -l > build_number
git add build_number

Now there is a file called build_number in the root of your directory that counts the number of commits on your master branch (which is your build number).

Make sure the permissions on the file you created are the same as the samples in that directory.