$ELIXIR_THREADS fallback to nproc is straight forward code, much more
than the incantation to find the path to the Elixir install path.
Remove the incantation and replace by simple code:
if test -z "$ELIXIR_THREADS"; then
ELIXIR_THREADS="$(nproc)"
fi
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Make utils/index-repository idempotent, meaning we can call it multiple
times on the same repo and same remotes without issues.
Also allow adding new remotes to an existing repo.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Simplify the script. We never `cd` into the directory, we instead use
`git -C`. Avoid repeating it by creating a $git variable.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This is pretty useful as update-elixir-data gets called often to check
for new updates. Most often, there are none, so checking all remotes at
the same time is useful. This only applies to the kernel, that is the
only project using multiple (three) remotes.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Linux is the only currently supported project for which we want three
remote URLs; see index-all-repositories for the list.
We could optimise the fetching by doing a single fetch call to all
remotes at the same time using --jobs (or fetch.parallel config).
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
* Remove repository indexing from Dockerfile
* Copy Elixir code from the context instead of cloning it from Github
* Move Dockerfile from docker/debian/Dockerfile to docker/Dockerfile
* Add docs for the new Dockerfile
* Add an utility script that allows easier repository configuration
* Add .dockerignore
* Use relative paths in Docker section in README
Instead of all projects in parallel.
Each indexing task runs parallel jobs anyway.
This makes errors easier to spot and the whole process easier to stop.
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
This add support for linux 0.01 to 2.6.12-rc1
Some versions are missing like 0.02 to 0.10 (not included) but it looks like
they have been deleted over time.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
And fix a problem in a test where an ident where wrongly identified by
ctags. It is fixed in the new ctags version.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
This solves issue https://github.com/bootlin/elixir/issues/109
This script can be used with every project and with any number of
versions, files or identifiers.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
- 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.
- "-d" wasn't working with symbolic links
which we are using on our server to switch
databases after updates
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
- Useful for big repositories that take a lot of time to
index and are updated frequently
- Good to run this on the indexing machine (faster)
than through an update on the server (slower in our case)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
- Now supports a custom data directory
(passed as a command line parameter)
- Now supports a custom elixir install
director (passed through the ELIXIR_INSTALL
environment variable
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>