Rev 491 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 491 | Rev 506 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #!/bin/sh |
1 | #!/bin/sh |
2 | 2 | ||
3 | # Duke Nukem 3D High Resolution Pack Extractor v0.5.1 2013-01-22 |
3 | # Duke Nukem 3D High Resolution Pack Extractor v0.5.2 2013-06-08 |
4 | # |
4 | # |
5 | # Author: LeoD |
5 | # Author: LeoD |
6 | # License: ISC license : http://opensource.org/licenses/isc-license.txt |
6 | # License: ISC license : http://opensource.org/licenses/isc-license.txt |
7 | # |
7 | # |
8 | # This script extracts a working copy of your local Duke Nukem 3D High |
8 | # This script extracts a working copy of your local Duke Nukem 3D High |
Line 466... | Line 466... | ||
466 | BLOCK_COMMENT="OFF" |
466 | BLOCK_COMMENT="OFF" |
467 | cat $1 | while read DEF_LINE; do |
467 | cat $1 | while read DEF_LINE; do |
468 | 468 | ||
469 | #DOS only: DEF_FILE=`echo "${DEF_LINE}" | grep -wE "^include" | sed s/include\ //` |
469 | #DOS only: DEF_FILE=`echo "${DEF_LINE}" | grep -wE "^include" | sed s/include\ //` |
470 | #DEF_FILE=`echo "${DEF_LINE}" | grep -wE "^include" | sed s/include\ // | sed s/\\\r//` |
470 | #DEF_FILE=`echo "${DEF_LINE}" | grep -wE "^include" | sed s/include\ // | sed s/\\\r//` |
471 | DEF_FILE=`echo "${DEF_LINE}" | grep -wE "^include" | sed s/include\ // | sed s/\\\/\\\/.*// | sed s/\\\r//` |
471 | # DEF_FILE=`echo "${DEF_LINE}" | grep -wE "^include" | sed s/include\ // | sed s/\\\/\\\/.*// | sed s/\\\r//` |
- | 472 | DEF_FILE=`echo "${DEF_LINE}" | grep -wE "^include" | awk '{ print $2 }' | sed 's/\r//'` |
|
472 | if [ "${DEF_FILE}" != "" ] ; then |
473 | if [ "${DEF_FILE}" != "" ] ; then |
473 | cp -p "${DEF_FILE}" "${EXTRACTDIR}/${DEF_FILE}" |
474 | cp -p "${DEF_FILE}" "${EXTRACTDIR}/${DEF_FILE}" |
474 | parse_defs "${DEF_FILE}" |
475 | parse_defs "${DEF_FILE}" |
475 | fi |
476 | fi |
476 | 477 |