Tamarin/hooks/prebuild/debian/complete-project-db

17 lines
474 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
cd src
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}"
fi