summaryrefslogtreecommitdiffstats
path: root/scripts/makepkg
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-02-06 22:36:13 +0000
committerDan McGee <dan@archlinux.org>2007-02-06 22:36:13 +0000
commit4de804d15758d50716b3b9457209fc598819e0b0 (patch)
tree4695cb45475c247d8e1d49f81a3046c7ed9e3679 /scripts/makepkg
parentdd7f1d95b14d1fda7057fa9f421500c4766fc4f0 (diff)
downloadpacman-4de804d15758d50716b3b9457209fc598819e0b0.tar.xz
* Makepkg updates, and small bugfix on man page compression.
* Change libtool default to makepkg2 behavior. * Other small changes.
Diffstat (limited to 'scripts/makepkg')
-rwxr-xr-xscripts/makepkg10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/makepkg b/scripts/makepkg
index dc186d2a..d61335df 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -862,7 +862,8 @@ if [ "$(check_option docs)" = "n" ]; then
fi
# move /usr/share/man files to /usr/man
-if [ -d pkg/usr/share/man ]; then
+if [ -d $startdir/pkg/usr/share/man ]; then
+ cd $startdir
mkdir -p pkg/usr/man
cp -a pkg/usr/share/man/* pkg/usr/man/
rm -rf pkg/usr/share/man
@@ -964,6 +965,13 @@ for it in "${backup[@]}"; do
echo "backup = $it" >>.PKGINFO
done
+# TODO maybe remove this at some point
+# warn if license array is not present or empty
+if [ "$license" = "" ]; then
+ warning "Please add a license line to your $BUILDSCRIPT!"
+ plain "example for GPL'ed software: license=('GPL')."
+fi
+
# check for an install script
if [ "$install" != "" ]; then
msg "Copying install script..."