[csw-maintainers] new class scripts

Mike Watters mwatters at opencsw.org
Thu May 28 18:05:42 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Peter,
Peter Bonivart wrote:
> On Wed, May 27, 2009 at 11:33 PM, Mike Watters <mwatters at opencsw.org> wrote:
>> I am just waiting on the classutils.  I have tested and retested python with
>> this recipe, and the utils.  I just want one clean test with the classutils
>> package rather then me just copying the class scripts in place.
> 
> I have dropped a new cswclassutils package into testing that includes
> cswpycompile:
> 
> http://mirror.opencsw.org/testing/cswclassutils-1.10,REV=2009.05.28-SunOS5.8-all-CSW.pkg.gz
> 

I forgot to actually copy/remove the original files in the class scripts for
cswpycompile.  new "working" copies are in my home dir on the build farm.
please update cswclassutils

- --- /usr/sadm/install/scripts/i.cswpycompile    2009-05-28 08:14:39.000000000
-0500
+++ i.cswpycompile      2009-05-28 10:55:23.320409700 -0500
@@ -20,6 +20,13 @@
 if [ "${DEBUG}" ]; then
     echo PACKAGE: $PKGINST
 fi
+while read src dest; do
+    if [ "$DEBUG" ]; then
+        echo SRC: $src DEST: $dest
+    fi
+
+    /usr/bin/cp -p $src $dest || exit 2
+done

 if [ ! -f ${PY_BINDIR}/python -a ! -x ${PY_BINDIR}/python ]; then
     echo "Could not find or execute ${PY_BINDIR}/python"

- --- /usr/sadm/install/scripts/r.cswpycompile    2009-05-28 08:14:39.000000000
-0500
+++ r.cswpycompile      2009-05-28 10:55:23.320922600 -0500
@@ -20,4 +20,12 @@
 echo "Removing pyo and pyc files for package <$PKGINST> ..."
 pkgchk -v $PKGINST 2>&1 |grep \.py$ | xargs -i rm -f {}c {}o

+while read dest; do
+    if [ "$DEBUG" ]; then
+        echo DEST: $dest
+    fi
+    /usr/bin/rm -f $dest || exit 2
+done
+
+
 exit 0

- --

Thanks,
Mike

"Any intelligent fool can make things bigger, more complex,
and more violent.  It takes a touch of genius -- and a lot of courage --
to move in the opposite direction."

* Albert Einstein 1879 - 1955
    US German-born Theoretical Physicist
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (SunOS)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoetlYACgkQLrhmsXMSLxeVjwCgv9ggwnVNG8rcpqPsJj4zxh7A
pHgAn1nSQkOoBjV3muSqQJORot67IJCa
=81R5
-----END PGP SIGNATURE-----



More information about the maintainers mailing list