#! /bin/sh # # This is a shell script that converts tiff-v3.4beta035 to tiff-v3.4beta036 # TOP=. findBinary() { IFS=: for i in $PATH; do test -x $i/$1 && return done echo "Fatal error: this shell script requires $2." exit 1 } findBinary patch "Larry Wall's patch program" Patch() { echo "Patch $1:" patch -s $TOP/$1 } NewFile() { echo "New file $1" cat >$TOP/$1 } NewDir() { echo "New directory $1" mkdir "$TOP/$1" } RmDir() { echo "Remove directory $1" rm -rf $TOP/$1.orig mv $TOP/$1 $TOP/$1.orig } RmFile() { echo "Remove $1" rm -f $TOP/$1.orig mv $TOP/$1 $TOP/$1.orig } Patch Makefile.in<<'EOF-EOF-EOF' *** tiff-v3.4beta035/Makefile.in Mon Jun 10 15:24:57 1996 --- tiff-v3.4beta036/Makefile.in Thu Feb 20 18:11:19 1997 *************** *** 1,5 **** #! smake ! # $Header: /usr/people/sam/tiff/RCS/Makefile.in,v 1.57 1996/06/10 22:24:41 sam Exp $ # # @WARNING@ # --- 1,5 ---- #! smake ! # $Header: /usr/people/sam/tiff/RCS/Makefile.in,v 1.58 1997/02/21 01:20:19 sam Exp $ # # @WARNING@ # *************** *** 272,277 **** --- 272,279 ---- html/misc.html \ html/support.html \ html/tools.html \ + html/v3.4beta036.html \ + html/v3.4beta035.html \ html/v3.4beta034.html \ html/v3.4beta033.html \ html/v3.4beta032.html \ EOF-EOF-EOF Patch configure<<'EOF-EOF-EOF' *** tiff-v3.4beta035/configure Mon Jun 10 15:24:56 1996 --- tiff-v3.4beta036/configure Thu Feb 20 18:11:18 1997 *************** *** 1,5 **** #!/bin/sh ! # $Header: /usr/people/sam/tiff/RCS/configure,v 1.52 1996/06/10 20:48:14 sam Exp $ # # Tag Image File Format (TIFF) Software # --- 1,5 ---- #!/bin/sh ! # $Header: /usr/people/sam/tiff/RCS/configure,v 1.56 1997/01/28 00:39:52 sam Exp $ # # Tag Image File Format (TIFF) Software # *************** *** 147,153 **** -target|--target) ac_prev=TARGET;; -target=*|--target=*) TARGET="$ac_optarg" ;; -version|--version) ! echo "This is TIFF configure $Revision: 1.52 $" exit 0 ;; -help|--help) usage; exit 0;; --- 147,153 ---- -target|--target) ac_prev=TARGET;; -target=*|--target=*) TARGET="$ac_optarg" ;; -version|--version) ! echo "This is TIFF configure $Revision: 1.56 $" exit 0 ;; -help|--help) usage; exit 0;; *************** *** 1093,1098 **** --- 1093,1099 ---- DSOSUF=so DSOOPTS='-elf -shared -no_unresolved -all' DSO=IRIX52 + TIFFLIBREF='-L${DEPTH}/libtiff -rpath '${DIR_LIB}' -ltiff' fi ;; *-irix*) *************** *** 1101,1106 **** --- 1102,1108 ---- DSOLD="${CCOMPILER} ${ENVOPTS}" DSOOPTS='-shared -rdata_shared -check_registry ${SRCDIR}/port/irix/so_locations -quickstart_info' DSO=IRIX + TIFFLIBREF='-L${DEPTH}/libtiff -rpath '${DIR_LIB}' -ltiff' fi ;; *-aix*) *************** *** 1109,1114 **** --- 1111,1123 ---- LIBCOPTS="-bM\:SRE" DSO=AIX ;; + *-hpux*yes) + DSOSUF=sl + DSOLD=gcc + DSOOPTS='-fpic -shared' + LIBCOPTS=-fpic + DSO=HPUX + ;; *-hpux*) DSOSUF=sl DSOOPTS='-b' *************** *** 1115,1132 **** LIBCOPTS="+Z" # LIBPORT="-Wl,+b${DIR_LIB}" DSO=HPUX ;; - *-solaris*-yes) - DSOSUF=so - DSOOPTS='-G' - LIBCOPTS="-fpic" - DSO=SOLARIS - ;; *-solaris*) DSOSUF=so DSOOPTS='-G' ! LIBCOPTS="-K PIC" DSO=SOLARIS ;; *-netbsd*) DSOSUF=so.${DIST_MAJOR}.0 --- 1124,1141 ---- LIBCOPTS="+Z" # LIBPORT="-Wl,+b${DIR_LIB}" DSO=HPUX + TIFFLIBREF="-Wl,+s,+b${DIR_LIB}"' -L${DEPTH}/libtiff -ltiff' ;; *-solaris*) DSOSUF=so DSOOPTS='-G' ! if [ $ISGCC = yes ]; then ! LIBCOPTS="-fpic" ! else ! LIBCOPTS="-K PIC" ! fi DSO=SOLARIS + TIFFLIBREF='-L${DEPTH}/libtiff -R'${DIR_LIB}' -ltiff' ;; *-netbsd*) DSOSUF=so.${DIST_MAJOR}.0 *************** *** 1141,1147 **** TIFFLIBREF='-L${DEPTH}/libtiff -ltiff' ;; *-linux*) ! if [ -x /lib/libc.so.5 ]; then DSOSUF=so.${DIST_MAJOR} DSOSUF_VERSION=${DSOSUF}.${DIST_MINOR}.${DIST_ALPHA} LIBCOPTS='-fPIC' --- 1150,1156 ---- TIFFLIBREF='-L${DEPTH}/libtiff -ltiff' ;; *-linux*) ! if [ -r /lib/libc.so.5 ]; then DSOSUF=so.${DIST_MAJOR} DSOSUF_VERSION=${DSOSUF}.${DIST_MINOR}.${DIST_ALPHA} LIBCOPTS='-fPIC' EOF-EOF-EOF Patch dist/tiff.alpha<<'EOF-EOF-EOF' *** tiff-v3.4beta035/dist/tiff.alpha Wed Jun 5 14:24:18 1996 --- tiff-v3.4beta036/dist/tiff.alpha Mon Aug 26 16:24:59 1996 *************** *** 1 **** ! define ALPHA 035 --- 1 ---- ! define ALPHA 036 EOF-EOF-EOF Patch html/Makefile.in<<'EOF-EOF-EOF' *** tiff-v3.4beta035/html/Makefile.in Mon Jun 10 15:25:50 1996 --- tiff-v3.4beta036/html/Makefile.in Thu Feb 20 18:11:58 1997 *************** *** 1,4 **** ! # $Header: /usr/people/sam/tiff/html/RCS/Makefile.in,v 1.13 1996/06/05 21:43:27 sam Exp $ # # @WARNING@ # --- 1,4 ---- ! # $Header: /usr/people/sam/tiff/html/RCS/Makefile.in,v 1.14 1997/02/21 01:20:12 sam Exp $ # # @WARNING@ # *************** *** 71,76 **** --- 71,78 ---- v3.4beta032.html \ v3.4beta033.html \ v3.4beta034.html \ + v3.4beta035.html \ + v3.4beta036.html \ ${NULL} IMAGES=\ images/back.gif \ EOF-EOF-EOF Patch html/document.html<<'EOF-EOF-EOF' *** tiff-v3.4beta035/html/document.html Mon Jun 10 15:25:52 1996 --- tiff-v3.4beta036/html/document.html Thu Feb 20 18:11:59 1997 *************** *** 39,45 **** Acrobat format (PDF); this can be found at