Rev 643 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 643 | Rev 645 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #!/bin/sh |
1 | #!/bin/sh |
2 | 2 | ||
3 | # Duke Nukem 3D High Resolution Pack Extractor v0.5.3 2014-05-16 |
3 | # Duke Nukem 3D High Resolution Pack Extractor v0.5.4 2014-09-07 |
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 584... | Line 584... | ||
584 | DIRLIST=./EXTRACT_DIRECTORIES.lst |
584 | DIRLIST=./EXTRACT_DIRECTORIES.lst |
585 | du "${EXTRACTDIR}" > ${DIRLIST} |
585 | du "${EXTRACTDIR}" > ${DIRLIST} |
586 | cat ${DIRLIST} | while read DIR ; do |
586 | cat ${DIRLIST} | while read DIR ; do |
587 | if [ "0" = "`echo \"${DIR}\" | grep -owE \"0\"`" ] ; then |
587 | if [ "0" = "`echo \"${DIR}\" | grep -owE \"0\"`" ] ; then |
588 | EMPTYDIR="`echo \"${DIR}\" | sed -r --posix s/0//`" |
588 | EMPTYDIR="`echo \"${DIR}\" | sed -r --posix s/0//`" |
589 | if [ -d "${EMPTYDIR}" ] ; then |
589 | if [ -d ${EMPTYDIR} ] ; then |
590 | rmdir --parents --ignore-fail-on-non-empty "${EMPTYDIR}" |
590 | rmdir --parents --ignore-fail-on-non-empty ${EMPTYDIR} |
591 | fi |
591 | fi |
592 | fi |
592 | fi |
593 | done |
593 | done |
594 | rm ${DIRLIST} |
594 | rm ${DIRLIST} |
595 | else |
595 | else |
Line 637... | Line 637... | ||
637 | if [ "$EXTRACT_COMMENTED_FILES" = "YES" ] ; then |
637 | if [ "$EXTRACT_COMMENTED_FILES" = "YES" ] ; then |
638 | echo " # Extract commented textures and models: $EXTRACT_COMMENTED_FILES" |
638 | echo " # Extract commented textures and models: $EXTRACT_COMMENTED_FILES" |
639 | else |
639 | else |
640 | echo " # Extract commented textures and models: NO" |
640 | echo " # Extract commented textures and models: NO" |
641 | fi |
641 | fi |
642 | if [ "${HRPTYPE}" = "polymost" ] || [ "${HRPTYPE}" = "full" ] ; then |
- | |
643 | parse_defs duke3d_hrp_polymost.def |
- | |
644 | fi |
- | |
645 | if [ "${HRPTYPE}" = "megaton" ] || [ "${HRPTYPE}" = "full" ] ; then |
642 | if [ "${HRPTYPE}" = "megaton" ] || [ "${HRPTYPE}" = "full" ] ; then |
646 | parse_defs duke3d_hrp_megaton.def |
643 | parse_defs duke3d_hrp_megaton.def |
647 | fi |
644 | fi |
- | 645 | if [ "${HRPTYPE}" = "polymost" ] || [ "${HRPTYPE}" = "full" ] ; then |
|
- | 646 | parse_defs duke3d_hrp_polymost.def |
|
- | 647 | fi |
|
648 | if [ "${HRPTYPE}" = "polymer" ] || [ "${HRPTYPE}" = "full" ] ; then |
648 | if [ "${HRPTYPE}" = "polymer" ] || [ "${HRPTYPE}" = "full" ] ; then |
649 | parse_defs duke3d_hrp.def |
649 | parse_defs duke3d_hrp.def |
650 | fi |
650 | fi |
651 | if [ "${HRPTYPE}" = "voxel" ] ; then |
651 | if [ "${HRPTYPE}" = "voxel" ] ; then |
652 | parse_defs duke3d_voxel.def |
652 | parse_defs duke3d_voxel.def |