summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2005-12-04 20:03:51 +0000
committerJason Woodward2005-12-04 20:03:51 +0000
commit33cf9bd12470c015c0358777558c688a23f13497 (patch)
tree83c3a466b9eb42df4dad11f2a1e6be98c65aab09
parent7fc1827297710418f18bd5374558864ac075e950 (diff)
downloadcpan2tgz-33cf9bd12470c015c0358777558c688a23f13497.tar.gz
updated buildslackpkg.sh script to double check the presence of perllocal.pod
-rw-r--r--Changelog3
-rwxr-xr-xbuildslackpkg.sh14
2 files changed, 10 insertions, 7 deletions
diff --git a/Changelog b/Changelog
index 7f9791e..8332587 100644
--- a/Changelog
+++ b/Changelog
@@ -1,5 +1,6 @@
-0.5 Dec 03, 2005
+0.5 Dec 04, 2005
+ * updated buildslackpkg.sh script to double check the presence of perllocal.pod
* correctly handle modules that do not create perllocal.pod files
* added support for Build.PL based modules
* updated the README
diff --git a/buildslackpkg.sh b/buildslackpkg.sh
index 2fbb6e5..4421201 100755
--- a/buildslackpkg.sh
+++ b/buildslackpkg.sh
@@ -21,7 +21,7 @@ if [ ! -d "$DESTINATION" ]; then
fi
(cd $DESTINATION && mkdir -p ./usr/doc/${PKGNAME}-${VERSION} )
-find . -iregex '.*readme.*' -o -iregex '.*change.*' -o -iregex '.*todo.*' -o -iregex '.*license.*' -o -iregex '.*copying.*' -o -iregex '.*install.*' -o -iregex '.*\.txt' -o -iregex '.*\.html' |xargs -r -iZ cp Z $DESTINATION/usr/doc/${PKGNAME}-${VERSION}
+find . -type f -iregex '.*readme.*' -o -iregex '.*change.*' -o -iregex '.*todo.*' -o -iregex '.*license.*' -o -iregex '.*copying.*' -o -iregex '.*install.*' -o -iregex '.*\.txt' -o -iregex '.*\.html' |xargs -r -iZ cp Z $DESTINATION/usr/doc/${PKGNAME}-${VERSION}
(
cd $DESTINATION;
@@ -41,15 +41,17 @@ find . -iregex '.*readme.*' -o -iregex '.*change.*' -o -iregex '.*todo.*' -o -ir
mkdir install
PERLLOCALPOD=`find . -name perllocal.pod`
- cat >./install/doinst.sh <<EOF
+ if [ -n "$PERLLOCALPOD" ]; then
+ cat >./install/doinst.sh <<EOF
#!/bin/sh
cat >> ${PERLLOCALPOD/.\\//} <<PLP
EOF
- cat $PERLLOCALPOD >>install/doinst.sh
- echo "PLP" >>install/doinst.sh
- rm $PERLLOCALPOD
+ cat $PERLLOCALPOD >>install/doinst.sh
+ echo "PLP" >>install/doinst.sh
+ rm $PERLLOCALPOD
+ fi
- echo "perl >= 5.8.4-i486-3" > ./install/slack-required
+ echo "perl" > ./install/slack-required
cat >./install/slack-desc <<EOF
# HOW TO EDIT THIS FILE: