summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2005-07-28 00:37:43 +0000
committergrant <grant@pkgsrc.org>2005-07-28 00:37:43 +0000
commit91a2d8e88eb11e11c870c9ef8fc1d2966ba26f71 (patch)
treeb198f949e6d259cb678f6c6b3bdc46f07dbcf4a1 /mk/bulk
parent8489107798ed066fb7daa467e4bcfca8feb7c31b (diff)
downloadpkgsrc-91a2d8e88eb11e11c870c9ef8fc1d2966ba26f71.tar.gz
fix some non-portable statements, allowing this to work properly
on Solaris.
Diffstat (limited to 'mk/bulk')
-rw-r--r--mk/bulk/upload10
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/bulk/upload b/mk/bulk/upload
index 0f9eeebd824..c5fbd901a53 100644
--- a/mk/bulk/upload
+++ b/mk/bulk/upload
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: upload,v 1.26 2005/05/08 13:29:09 wiz Exp $
+# $NetBSD: upload,v 1.27 2005/07/28 00:37:43 grant Exp $
#
# Upload non-restricted binary pkgs to ftp server
@@ -128,7 +128,9 @@ if [ "${MKSUMS}" = "yes" -o "${MKSUMS}" = "YES" ]; then
[ -z "${SYSVSUM}" ] && SYSVSUM="echo"
for i in All/*; do
- if ! grep -q $i $exf; then
+ if grep $i $exf >/dev/null; then
+ :
+ else
${BSDSUM} $i >> BSDSUM
${CKSUM} $i >> CKSUM
${MD5} $i >> MD5
@@ -157,7 +159,9 @@ fi
echo "#!/bin/sh" > "$upload"
echo "packages=$packages" >> "$upload"
-echo "if ! cd $packages ; then" >> "$upload"
+echo "if cd $packages; then" >> "$upload"
+echo " :" >> "$upload"
+echo "else" >> "$upload"
echo " echo \"could not cd to $packages\"" >> "$upload"
echo " exit 1" >> "$upload"
echo "fi" >> "$upload"