From f93448dfbfebf33ace1846439337f6f77beee3e8 Mon Sep 17 00:00:00 2001 From: mazen Date: Sun, 19 Dec 2010 19:46:52 +0000 Subject: [PATCH] MAKE DEB: *.lpk files should be pacjaged with binaries not with sources (last commit was buggy). git-svn-id: trunk@28771 - --- debian/rules | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index b80d56cfdb..5bc19ace77 100755 --- a/debian/rules +++ b/debian/rules @@ -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@' '{}' > '$(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@' "$${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