This script creates or updates the ffmpeg patch files from
the various feature branches and record patch info (repo,
branch, gitrevs) where the changes came from in the commit
message.
The feature branch to process can be specified via command a
line argument, "all" will create/update all known branches.
By default the patches are updated to HEAD of the branches.
If only a single branch is processed the full githash to use
instead of HEAD can be specified as an optional second argument.
This can be used to drop some of the top-most commits in the
branch, eg if later changes cause issues.
The script has to be run in a local ffmpeg git tree. eg:
$ cd ~/ffmpeg-git
$ ~/libreelec-git/tools/ffmpeg/gen-patches.sh all
Additional git commit options (eg -s) can be set via the
GIT_COMMIT_ARGS environment variable
Signed-off-by: Matthias Reichl <hias@horus.com>
vfs.nfs has recently been removed from kodi's binary addon repo
and vfs.sacd is now included in LibreELEC
Signed-off-by: Matthias Reichl <hias@horus.com>
kodi-platform version is no longer managed in kodi's git tree and
needs to be updated manually, like p8-platform
Signed-off-by: Matthias Reichl <hias@horus.com>
The kodi-game binary addon repo now contains Leia and Matrix,
like the kodi binary addon repo, so make the branch name a
mandatory option.
Signed-off-by: Matthias Reichl <hias@horus.com>
Since Kodi Matrix hasn't branched yet and is still developed in
master the kodi branch name (master) and the branch name used in
addons (Matrix) doesn't match.
Allow to optionally specify the addon branch name on the command line,
eg "./update_binary-addons master Matrix".
This fixes visualization.pictureit bumps for master which picked
up the master branch of the addon instead of the Matrix branch.
Signed-off-by: Matthias Reichl <hias@horus.com>
Kodi binary and game addons always reference branches in the addon
repo. The only exception is the kodi-platform package which references
a githash.
This allows us to simplify remote repo fetch and tag / branch HEAD
resolving: we don't need named branches in the working copy but can
simply query remote branches or use a detached branch if we need the
actual contents.
With this change the same (out-of-tree) directory containing cloned
repos can be used to update both kodi Leia and master addon versions,
without needing another clone.
Also refactor the package update code, drop update_to_latest_tag from
common functions (it was only used by update_binary-addons,
update_retroplayer-addons needs slightly different logic) and use
update_pkg function. update_retroplayer-addons now also uses update_pkg
instead of duplicating nearly identical code.
Several variable names have been cleaned up to follow a common naming
pattern.
Signed-off-by: Matthias Reichl <hias@horus.com>
When updating versioned / tagged addons reset PKG_REV to 1.
When updating unversioned / untagged addons always bump PKG_REV
as we don't know if the version has been changed or not.
If the "-b/--bump-pkg-rev" option is used PKG_REV will be bumped
on all addons that weren't updated. Use this to ensure all addons
will have a newer version than before.
Signed-off-by: Matthias Reichl <hias@horus.com>
Use command line options to select PKG_REV bump and deleting
cloned git dis after update. git dirs are now kept by default,
deleting them has to be explicitly enabled via "-d".
Signed-off-by: Matthias Reichl <hias@horus.com>