~ubuntu-core-dev/command-not-found/ubuntu

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

cd CommandNotFound/db

# the commands-not-found data is currently extracted here
scp -r nusakan.canonical.com:~mvo/cnf-extractor/command-not-found-extractor/dists/ .
find dists/ -name "*.xz" -o -name "*.gz" | xargs rm -f

# strip off version information - this will be outdated anyway
# (this entire thing goes away once Commands-* is stored on the
#  archive server)
find dists/ -name "Commands-*" -exec sed -i '/^version:/d' {} \;