Deleted Added
full compact
acpica_prep.sh (151946) acpica_prep.sh (167813)
1#!/bin/sh
1#!/bin/sh
2# $FreeBSD: head/sys/contrib/dev/acpica/acpica_prep.sh 151946 2005-11-01 22:38:50Z jkim $
2# $FreeBSD: head/sys/contrib/dev/acpica/acpica_prep.sh 167813 2007-03-22 18:08:11Z jkim $
3#
4# Unpack an ACPI CA drop and restructure it to fit the FreeBSD layout
5#
6
7if [ ! $# -eq 1 ]; then
8 echo "usage: $0 acpica_archive"
9 exit
10fi
11
12src=$1
13wrk=./_acpi_ca_unpack
14dst=./acpi_ca_destination
15
16# files that should keep their full directory path
17fulldirs="common compiler"
18# files to remove
19stripdirs="generate acpisrc"
3#
4# Unpack an ACPI CA drop and restructure it to fit the FreeBSD layout
5#
6
7if [ ! $# -eq 1 ]; then
8 echo "usage: $0 acpica_archive"
9 exit
10fi
11
12src=$1
13wrk=./_acpi_ca_unpack
14dst=./acpi_ca_destination
15
16# files that should keep their full directory path
17fulldirs="common compiler"
18# files to remove
19stripdirs="generate acpisrc"
20stripfiles="16bit.h Makefile README a16find.c a16utils.asm \
21 a16utils.lst a16utils.obj abcompare.c abmain.c acdos16.h \
22 acintel.h aclinux.h acmsvc.h acnetbsd.h acpibin.h acwin.h \
23 acwin64.h adisasm.h aemain.c osunixdir.c readme.txt"
20stripfiles="16bit.h Makefile README a16find.c a16utils.asm a16utils.obj \
21 acdos16.h acintel.h aclinux.h acmsvc.h acnetbsd.h acpixtract.c \
22 acwin.h acwin64.h aeexec.c aemain.c osdosxf.c osunixdir.c \
23 oswindir.c oswinxf.c readme.txt"
24# include files to canonify
25src_headers="acapps.h acconfig.h acdebug.h acdisasm.h acdispat.h \
26 acenv.h acevents.h acexcep.h acfreebsd.h acgcc.h acglobal.h \
27 achware.h acinterp.h aclocal.h acmacros.h acnames.h acnamesp.h \
28 acobject.h acopcode.h acoutput.h acparser.h acpi.h acpiosxf.h \
29 acpixf.h acresrc.h acstruct.h actables.h actbl.h actbl1.h \
24# include files to canonify
25src_headers="acapps.h acconfig.h acdebug.h acdisasm.h acdispat.h \
26 acenv.h acevents.h acexcep.h acfreebsd.h acgcc.h acglobal.h \
27 achware.h acinterp.h aclocal.h acmacros.h acnames.h acnamesp.h \
28 acobject.h acopcode.h acoutput.h acparser.h acpi.h acpiosxf.h \
29 acpixf.h acresrc.h acstruct.h actables.h actbl.h actbl1.h \
30 actbl2.h actypes.h acutils.h aecommon.h amlcode.h amlresrc.h \
31 mlresrc.h"
30 actbl2.h actypes.h acutils.h aecommon.h amlcode.h amlresrc.h"
32comp_headers="aslcompiler.h asldefine.h aslglobal.h asltypes.h"
33
34# files to update paths in
35src_update_files="acpi.h acpiosxf.h"
36
37# pre-clean
38echo pre-clean
39rm -rf ${wrk}

--- 11 unchanged lines hidden (view full) ---

51 find ${wrk} -name ${i} -type d | xargs rm -r
52done
53for i in ${stripfiles}; do
54 find ${wrk} -name ${i} -type f -delete
55done
56
57echo copying full dirs
58for i in ${fulldirs}; do
31comp_headers="aslcompiler.h asldefine.h aslglobal.h asltypes.h"
32
33# files to update paths in
34src_update_files="acpi.h acpiosxf.h"
35
36# pre-clean
37echo pre-clean
38rm -rf ${wrk}

--- 11 unchanged lines hidden (view full) ---

50 find ${wrk} -name ${i} -type d | xargs rm -r
51done
52for i in ${stripfiles}; do
53 find ${wrk} -name ${i} -type f -delete
54done
55
56echo copying full dirs
57for i in ${fulldirs}; do
59 find ${wrk} -name ${i} -type d | xargs -J % mv % ${dst}
58 find ${wrk} -name ${i} -type d | xargs -J % mv % ${dst}
60done
61
62# move files to destination
63echo copying flat dirs
64find ${wrk} -type f | xargs -J % mv % ${dst}
65mv ${dst}/changes.txt ${dst}/CHANGES.txt
66
67# update src/headers for appropriate paths

--- 26 unchanged lines hidden ---
59done
60
61# move files to destination
62echo copying flat dirs
63find ${wrk} -type f | xargs -J % mv % ${dst}
64mv ${dst}/changes.txt ${dst}/CHANGES.txt
65
66# update src/headers for appropriate paths

--- 26 unchanged lines hidden ---