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
|
|
|
|
|
|
|
|
package_name=$(grep -E '^Source:' debian/control | awk '{ print $2 }')
|
|
|
|
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
|