https://github.com/iht/debian-measurer
Tool to gather the sources of Debian and measure them
https://github.com/iht/debian-measurer
Last synced: 12 days ago
JSON representation
Tool to gather the sources of Debian and measure them
- Host: GitHub
- URL: https://github.com/iht/debian-measurer
- Owner: iht
- License: mit
- Created: 2013-10-27T20:08:57.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-06-22T10:08:11.000Z (almost 8 years ago)
- Last Synced: 2025-03-02T14:49:28.535Z (over 1 year ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
debian-measurer
===============
Grab all Debian packages and measure them. You will need a `Sources.gz`
file with the directory of packages to be measured. See below for a
script to gather that file from a Debian mirror.
After that, install the tool with
```
python setup.py install
```
You will need the `lockfile` module and the SLOCCount tool.
After that, pass the following command line arguments to
`debian-measurer`:
* Location of the sources file
* Output dir for the results
* Base URL of the Debian mirror from where the packages will be
gathered (from Spain, I recommend ftp://ftp.rediris.es/mirror/debian/)
* Path to SLOCCount if it is not in the default path
## Grab all the Sources.gz for Debian
You need to get the Sources.gz files for the release of Debian you
want to measure. Use this script to grab all the sources for all the releases:
```shell
#!/bin/bash
base_url="ftp://ftp.rediris.es/mirror/debian/"
echo 'stable\ntesting\nsid\nexperimental\nstable-updates\nstable-proposed-updates\ntesting-proposed-updates'| while read d
do
echo 'main\ncontrib\nnon-free' | while read l
do
echo Grabbing $d/$l...
wget $base_url/dists/$d/$l/source/Sources.gz
mv Sources.gz Sources-$d-$l.gz
done
done
```