2017-03-10 22:01:05 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
cd src
|
|
|
|
|
2017-03-22 09:19:58 +01:00
|
|
|
if [ ! -f debian/control ]; then
|
|
|
|
tamarin_error "No debian/control file found !"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-07-08 11:42:38 +02:00
|
|
|
package_name=$(sed -n 's/^Source:[ \t]*\(.*\)$/\1/p' debian/control | tr -d '[:space:]')
|
2017-03-22 09:19:58 +01:00
|
|
|
project_name=$(tamarin_db get project_name)
|
|
|
|
|
|
|
|
if [ "${package_name}" != "${project_name}" ]; then
|
|
|
|
tamarin_warn "The project's name \"${project_name}\" differs from the package one (\"${package_name}\"). Using package's one..."
|
|
|
|
tamarin_db set project_name "${package_name}"
|
2017-03-10 22:01:05 +01:00
|
|
|
fi
|