Author: darcy
Date: Thu Feb 18 13:20:45 2016
New Revision: 855
Log:
Fix tests so that script runs under NetBSD.
Modified:
branches/4.x/mktar
tags/4.2.1/mktar
trunk/mktar
Modified: branches/4.x/mktar
==============================================================================
--- branches/4.x/mktar Thu Feb 18 13:17:44 2016 (r854)
+++ branches/4.x/mktar Thu Feb 18 13:20:45 2016 (r855)
@@ -16,7 +16,7 @@
fi
FILES="*.c *.h *.py *.cfg *.rst *.txt"
NUMFILES=`ls $FILES | wc -l`
-if [ "$NUMFILES" != "9" ]
+if [ $NUMFILES != 9 ]
then
echo "Hmmm. The number of top-level files seems to be wrong:"
ls $FILES
@@ -26,7 +26,7 @@
fi
FILES="mktar mkdocs docs tests pg.py pgdb.py pgmodule.c setup.cfg"
PERMS=`stat --printf="%a" $FILES`
-if [ $? -ne 0 -o "$PERMS" != '755755755755644644644644' ]
+if [ $? -eq 0 -a "$PERMS" != '755755755755644644644644' ]
then
echo "Hmmm. File permissions are not set properly."
echo "Use a filesystem with permissions and do a clean checkout first."
Modified: tags/4.2.1/mktar
==============================================================================
--- tags/4.2.1/mktar Thu Feb 18 13:17:44 2016 (r854)
+++ tags/4.2.1/mktar Thu Feb 18 13:20:45 2016 (r855)
@@ -16,7 +16,7 @@
fi
FILES="*.c *.h *.py *.cfg *.rst *.txt"
NUMFILES=`ls $FILES | wc -l`
-if [ "$NUMFILES" != "9" ]
+if [ $NUMFILES != 9 ]
then
echo "Hmmm. The number of top-level files seems to be wrong:"
ls $FILES
@@ -26,7 +26,7 @@
fi
FILES="mktar mkdocs docs tests pg.py pgdb.py pgmodule.c setup.cfg"
PERMS=`stat --printf="%a" $FILES`
-if [ $? -ne 0 -o "$PERMS" != '755755755755644644644644' ]
+if [ $? -eq 0 -a "$PERMS" != '755755755755644644644644' ]
then
echo "Hmmm. File permissions are not set properly."
echo "Use a filesystem with permissions and do a clean checkout first."
Modified: trunk/mktar
==============================================================================
--- trunk/mktar Thu Feb 18 13:17:44 2016 (r854)
+++ trunk/mktar Thu Feb 18 13:20:45 2016 (r855)
@@ -16,7 +16,7 @@
fi
FILES="*.c *.h *.py *.cfg *.rst *.txt"
NUMFILES=`ls $FILES | wc -l`
-if [ "$NUMFILES" != "9" ]
+if [ $NUMFILES != 9 ]
then
echo "Hmmm. The number of top-level files seems to be wrong:"
ls $FILES
@@ -26,7 +26,7 @@
fi
FILES="mktar mkdocs docs tests pg.py pgdb.py pgmodule.c setup.cfg"
PERMS=`stat --printf="%a" $FILES`
-if [ $? -ne 0 -o "$PERMS" != '755755755755644644644644' ]
+if [ $? -eq 0 -a "$PERMS" != '755755755755644644644644' ]
then
echo "Hmmm. File permissions are not set properly."
echo "Use a filesystem with permissions and do a clean checkout first."
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql