- Change the few files that use leading tabs into leading spaces.
This way they match the other files in the repo.
- Add an EditorConfig file so that supported editors will automatically
use spaces instead of tabs.
- (Extra) Add some common editor backup-file extensions to .gitignore.
./scripts.sh list-tags -h cannot handle correctly when
the major version number is bigger than v9, so need to
add '*' in the regular expression of major number.
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
- This way, it's not always necessary to create
custom definitions for new projects.
- Update the definitions for projects that can
use such a default.
Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com>
- Allows to add a project by just adding custom
definitions to projects/<project>.sh
- Except for cases that haven't been anticipated yet,
modifying common code should no longer be needed
Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com>
git ls-tree returnes `commit` entries for submodules. We remove them
from the output. Without this the script crashes with this trace:
Traceback (most recent call last):
File "./update.py", line 138, in <module>
newBlobs = updateBlobIDs (tag)
File "./update.py", line 46, in updateBlobIDs
hash, filename = blob.split (b' ')
ValueError: too many values to unpack (expected 2)
Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
Instead of using a trailing slash in the path to tell trees from blobs,
we actually ask git the type of the object. Also, if the object is a
tree but lacks a trailing slash, we redirect to the correct URL.
Fixes#6