summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-04-03 19:23:51 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-04-04 22:06:48 -0500
commit697d1a8abe3b3d5da7dc18949772bf7515bccb43 (patch)
tree6312f941397089b4cced0e74f4bbd683007b36c2
parent726c45857f22ef8a29d238ed582b06077464dfb7 (diff)
downloadslackbuilds-697d1a8abe3b3d5da7dc18949772bf7515bccb43.tar.gz
development/stgit: Fixed building of the tutorial.
Note: The tutorial dose not get installed but it was causing the build to fail. Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r--development/stgit/stgit.SlackBuild29
1 files changed, 6 insertions, 23 deletions
diff --git a/development/stgit/stgit.SlackBuild b/development/stgit/stgit.SlackBuild
index 39400c7739..c4469d40f5 100644
--- a/development/stgit/stgit.SlackBuild
+++ b/development/stgit/stgit.SlackBuild
@@ -24,7 +24,7 @@
PKGNAM=stgit
VERSION=${VERSION:-0.15}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -57,6 +57,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# This fixes the tutorial not building.
+sed -i s/##############/==============/ Documentation/tutorial.txt
+
make prefix=/usr mandir=/usr/man all doc
make prefix=/usr mandir=/usr/man DESTDIR=$PKG install install-doc
@@ -66,28 +69,8 @@ cp -a \
$PKG/usr/doc/$PKGNAM-$VERSION
chmod 0644 $PKG/usr/doc/$PKGNAM-$VERSION/*
-# Compress and link manpages, if any:
-if [ -d $PKG/usr/man ]; then
- ( cd $PKG/usr/man
- for manpagedir in $(find . -type d -name "man*") ; do
- ( cd $manpagedir
- for eachpage in $( find . -type l -maxdepth 1) ; do
- ln -s $( readlink $eachpage ).gz $eachpage.gz
- rm $eachpage
- done
- gzip -9 *.?
- )
- done
- )
-fi
-
-# Compress info files, if any:
-if [ -d $PKG/usr/info ]; then
- ( cd $PKG/usr/info
- rm -f dir
- gzip -9 *
- )
-fi
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc