MAKE DEB: *.lpk files should be pacjaged with binaries not with sources (last commit was buggy).

git-svn-id: trunk@28771 -
This commit is contained in:
mazen 2010-12-19 19:46:52 +00:00
parent cdb10f937d
commit f93448dfbf

6
debian/rules vendored
View File

@ -151,7 +151,11 @@ install-arch-stamp:
# Remove READM.txt files from output directories
find $(INSTALL_DIR)/usr/lib/lazarus/${DEB_UPSTREAM_MAIN_VERSION} '(' -name '*.or' -or -wholename '*/lib/README.txt' ')' -delete
# Mark package as manually compilable and install them
find -name '*.lpk' -exec sed -e 's@\(\W*\)<\bAddToProjectUsesSection\b.*@&\n\1<AutoUpdate Value="Manually"/>@' '{}' > '$(INSTALL_DIR)/usr/lib/lazarus/${DEB_UPSTREAM_MAIN_VERSION}/{}' ';'
for package in `find -name '*.lpk'` ; \
do \
${MKDIR} `dirname "$(INSTALL_DIR)/usr/lib/lazarus/${DEB_UPSTREAM_MAIN_VERSION}/$${package}"` ; \
sed -e 's@\(\W*\)<\bAddToProjectUsesSection\b.*@&\n\1<AutoUpdate Value="Manually"/>@' "$${package}" > "$(INSTALL_DIR)/usr/lib/lazarus/${DEB_UPSTREAM_MAIN_VERSION}/$${package}" ; \
done
# copy icons and menu entries for the GNOME menu
install -d $(INSTALL_DIR)/usr/share/pixmaps
install -d $(INSTALL_DIR)/usr/share/applications