head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.54 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.52 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.50 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.48 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.46 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.44 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.42 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.40 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.38 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.36 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.34 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.32 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.30 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.28 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.26 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.24 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.22 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.20 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.18 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.16 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.14 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.12 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.10 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.8 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1; locks; strict; comment @# @; 1.2 date 2002.12.23.21.20.49; author wiz; state dead; branches; next 1.1; 1.1 date 2001.07.21.19.53.49; author wiz; state Exp; branches; next ; desc @@ 1.2 log @Update to 3.5.0. Changes since 3.1: 3.2 released on Sat 13 Jan 2001 Added '-i' switch to display whether a file contains seek information Cleaned up endian-conversion code Fixed a file naming bug - now, when only an input file name is given, output files are named according to the following rules: If shortening a file: If the input file name ends in .wav, then change extension to .shn; otherwise, append .shn to the input file name. Examples: file.wav -> file.shn file.ext -> file.ext.shn If extracting a file: If the input file name ends in .shn, then change extension to .wav; otherwise, append .wav to the input file name. file.shn -> file.wav file.ext -> file.ext.wav When the caller specifies -v2 on the command line, seek tables are not generated (neither appended nor created in separate files). The default behavior is to generate/append seek tables. 3.3 released on Sun 12 Aug 2001 Converted to autoconf/automake build system Made seek table code 64-bit clean Changed seek table data structures to compensate for compilers that don't properly implement #pragma pack(1) Various minor cleanups/updates that don't impact the shorten algorithm 3.4 released on Sun 10 Feb 2002 Fix for reading/writing binary data on stdin/stdout for operating systems that do not have a single '\x0A' as a line separator (Frank Klemm) Shorten now refuses to input data from or output data to a tty Fixed crash when trying to create seek tables from a non-shorten file -s and -S options can now create seek table files from data read on stdin (with -s, output filename is 'stdin.skt') Seek tables are now appended to non-stdout output file when reading uncompressed data from stdin (e.g. shorten - outfile.shn < data.wav) 3.5.0 released on Mon 18 Nov 2002 Support for compression of AIFF files contributed by Brian Willoughby of Sound Consulting Changed file naming convention during extraction - when only an input file name is given, output files are named according to the following rules: If the input file name contains more than one '.' and ends in .shn, then drop the .shn; otherwise, if the input file name ends in .shn, then change the extension to .wav; otherwise, append .wav to the input file name. file.aiff.shn -> file.aiff file.aiff.ext -> file.aiff.ext.wav file.shn -> file.wav file.ext -> file.ext.wav This change was made so that non-wav files would be properly named after shortening and unshortening. For example, 'shorten file.aiff' creates file.aiff.shn, and with the change above, 'shorten -x file.aiff.shn' will now create file.aiff (instead of file.aiff.wav). @ text @$NetBSD: patch-ad,v 1.1 2001/07/21 19:53:49 wiz Exp $ --- shorten.c.orig Tue Oct 10 13:14:47 2000 +++ shorten.c Sat Jul 21 14:24:39 2001 @@@@ -669,7 +669,6 @@@@ if(strcasecmp(filenamei + newfilelen, WAVESUFFIX)) #endif { - tmpfilename[newfilelen] = '\0'; strcat(tmpfilename,".wav"); } } @ 1.1 log @Improve file name conversion on extraction. Patch by maximum entropy in pkg/13526. @ text @d1 1 a1 1 $NetBSD$ @