You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.9 KiB
58 lines
1.9 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../matrox-mtx/extract.diff |
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This patch file is dual-licensed. It is available under the license the |
|
# patched project is licensed under, as long as it is an OpenSource license |
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
|
# of the GNU General Public License as published by the Free Software |
|
# Foundation; either version 2 of the License, or (at your option) any later |
|
# version. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
Yuck. Ok, let's patch the self extracting file slightly ;-). |
|
|
|
- Rene Rebe <rene@exactcode.de> |
|
|
|
--- mtxdrivers-rh9.0-0.3.0.run 2005-01-27 18:24:57.560943152 +0100 |
|
+++ mtxdrivers-rh9.0-0.3.0.run 2005-01-27 18:41:02.832199616 +0100 |
|
@@ -5,7 +5,7 @@ |
|
TMPROOT=${TMPDIR:=/tmp} |
|
|
|
label="Matrox Parhelia Driver" |
|
-script="./install.sh" |
|
+script="true" |
|
scriptargs="" |
|
echo -n "Please, enter the directory to extract the files [$HOME/] " |
|
read str_installdir |
|
@@ -89,7 +89,7 @@ |
|
MD5_PATH=${MD5_PATH:-`which md5 2>/dev/null || type md5 2>/dev/null`} |
|
PATH=$OLD_PATH |
|
MS_Printf "Verifying archive integrity..." |
|
- offset=`head -345 "$1" | wc -c | tr -d " "` |
|
+ offset=`head -n 345 "$1" | wc -c | tr -d " "` |
|
verbose=$2 |
|
i=1 |
|
for s in $filesizes |
|
@@ -185,7 +185,7 @@ |
|
;; |
|
--list) |
|
echo Target directory: $targetdir |
|
- offset=`head -345 "$0" | wc -c | tr -d " "` |
|
+ offset=`head -n 345 "$0" | wc -c | tr -d " "` |
|
for s in $filesizes |
|
do |
|
MS_dd "$0" $offset $s | eval "gzip -cd" | UnTAR t |
|
@@ -299,7 +299,7 @@ |
|
if test x$SETUP_NOCHECK != x1; then |
|
MS_Check "$0" |
|
fi |
|
-offset=`head -345 "$0" | wc -c | tr -d " "` |
|
+offset=`head -n 345 "$0" | wc -c | tr -d " "` |
|
|
|
MS_Printf "Uncompressing $label" |
|
res=3
|
|
|