diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2002-06-12 14:55:19 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2002-06-12 14:55:19 +0000 |
commit | bbbd62ac9ea9f6ac6b22dbea7eabe7a13a350123 (patch) | |
tree | bf9ca56f533d5fbaabff15fb38146fb88d65e1aa /sys/contrib | |
parent | a13cc2f243507c5ed2ac48dab854d86dae900d82 (diff) | |
download | FreeBSD-src-bbbd62ac9ea9f6ac6b22dbea7eabe7a13a350123.zip FreeBSD-src-bbbd62ac9ea9f6ac6b22dbea7eabe7a13a350123.tar.gz |
- Add sanity check for argument.
- Add new entry to stripdirs. The `generate' directory appeared in
acpica-unix-20020517.
Diffstat (limited to 'sys/contrib')
-rwxr-xr-x | sys/contrib/dev/acpica/acpica_prep.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/contrib/dev/acpica/acpica_prep.sh b/sys/contrib/dev/acpica/acpica_prep.sh index 2328f0e..7f93a5a 100755 --- a/sys/contrib/dev/acpica/acpica_prep.sh +++ b/sys/contrib/dev/acpica/acpica_prep.sh @@ -4,12 +4,17 @@ # Unpack an ACPI CA drop and restructure it to fit the FreeBSD layout # +if [ ! $# -eq 1 ]; then + echo "usage: $0 acpica_archive" + exit +fi + src=$1 wrk=./_acpi_ca_unpack dst=./acpi_ca_destination # files to remove -stripdirs="compiler" +stripdirs="compiler generate" stripfiles="osunixxf.c 16bit.h Makefile a16find.c a16utils.asm a16utils.obj\ acintel.h aclinux.h acmsvc.h acwin.h acwin64.h getopt.c" @@ -39,4 +44,4 @@ find ${wrk} -type f | xargs -J % mv % ${dst} # post-clean echo post-clean -rm -rf ${wrk}
\ No newline at end of file +rm -rf ${wrk} |