From owner-octave-sources at bevo dot che dot wisc dot edu Sun Apr 27 20:18:33 1997 Subject: Stripping patch for mkoctfile and Debian releases From: Dirk Eddelbuettel To: octave-sources at bevo dot che dot wisc dot edu Date: Sun, 27 Apr 1997 21:16:43 -0400 (EDT) A few weeks, I mentioned that an option for stripping the .oct file generated by 'mkoctfile' would be nice to have. I wrote a tentative version of such a patch, see below. It would be good if configure.in could also check for the existence of a strip binary. As it happens, this patch is part of the new version of Octave 2.0.5 that I just uploaded for the Debian GNU/Linux distribution. In case you are running Debian, you might want to use it. I enclose the package announcement below. If you don't know what I am talking about, see http://www.debian.org for more. --------------------- patch for mkoctfile.in -------------------------------- --- mkoctfile.in~ Thu Feb 13 17:26:21 1997 +++ mkoctfile.in Sun Apr 27 19:02:17 1997 at @ -5,13 +5,22 @@ set -e +STRIP=0 +if [ $# -gt 0 ]; then + if [ "$1" = "-s" ] + then + STRIP=1 + shift + fi +fi + if [ $# -eq 1 ]; then srcfile="$1" basnm=`echo $srcfile | sed 's,\.cc$,,'` objfile=$basnm.o octfile=$basnm.oct else - echo "usage: mkoctfile file.cc" 1>&2 + echo "usage: mkoctfile [-s] file.cc" 1>&2 exit 1 fi at @ -54,3 +63,8 @@ echo "making $octfile from $objfile" $CXX -shared -o $octfile $objfile $LIBFLAGS $RLD_FLAG $OCTAVE_LIBS $FLIBS $LEXLIB $TERMLIBS $LIBS + +if [ $STRIP -eq 1 ]; then + echo "stripping $octfile" + strip $octfile +fi ----------------------------------------------------------------------------- ----------------- Announcement of the octave-2.0.5-3 package ---------------- -----BEGIN PGP SIGNED MESSAGE----- Format: 1.5 Date: Sun, 27 Apr 1997 19:06:03 -0400 Source: octave Binary: octave-doc octave-staticlibs octave Architecture: source all i386 Version: 2.0.5-3 Distribution: unstable Urgency: low Maintainer: Dirk Eddelbuettel Description: octave - The GNU Octave language for numerical computations octave-doc - Postscript documentation on the GNU Octave language octave-staticlibs - Static libraries for the GNU Octave language Changes: octave (2.0.5-3) unstable; urgency=low . * added creation of /usr/local/share/octave/site-m in the postinst if /usr/local filesystem is writable and removal of the directories /usr/local/share/octave/site-m and /usr/local/share/octave/site-m in the prerm if they are empty to reflect Debian policy on /usr/local/ * moved configuration file /usr/share/octave/site/m/startup/octaverc into /etc/octave.conf and provided a softlink from the default location * added LOADPATH setting to octave.conf aka octaverc for the local tree * made /etc/octave.conf a conffile * moved static libs into a seperate package (which is not needed for normal use of octave) --- this saves 4.4 MB of diskspace * patched mkoctfile.in to add a flag for stripping to /usr/bin/mkoctfile * changed configure to explicit setting of host architecture Files: 3faeefe226c392efa1b54cfc3fd97040 708 math optional octave_2.0.5-3.dsc b43469bf8e9336d6338689e96bc4536e 5761 math optional octave_2.0.5-3.diff.gz b7e881b613b90b9609f1b4cd3968c95a 519752 math optional octave-doc_2.0.5-3_all.deb b32788ab06f963af71f3c50735ecddc7 1669242 math optional octave_2.0.5-3_i386.deb c0755e11ec81e9dc531d13a5e9644cdf 1226338 math optional octave-staticlibs_2.0.5-3_i386.deb -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: latin1 Comment: Please `finger edd at debian dot org' for my public key. iQCVAwUBM2P3J3d1UC9tfwjdAQEPpQP9GHbLD+8D/LsUwunJ7U1knCYuPisW3LPE GIPQ5h3jpjz6Beazo94w7Y9KWBaJAPxQHpbXzq5m64e6uQ5bku3f+bI5C5PgMWJa jFnZeFpKU16KYW0e6GHkYPxh9LUzOG8ZUJwnG9TGb7/QiBKUMg6VhYnJFzm+eah8 kDZITEtlKlc= =dW92 -----END PGP SIGNATURE----- -- Dirk Eddelbuettel edd at rosebud dot sps dot queensu dot ca edd@debian.org