3 #******************************************************************************
5 # ACPICA release generation script for Cygwin/Windows execution
7 # front end for build.sh
9 # Copies any existing packages to the archive directory.
11 # Generates 3 types of package:
12 # 1) Standard ACPICA source, everything except test suites
13 # 2) ACPICA test suites (very large)
14 # 3) Windows binary tools (Windows does not include generation tools)
16 # Note: "unix" generation builds the source with the standard Intel license
17 # in each file header. "unix2" builds the source with the dual license instead.
18 # this has been requested by some OS vendors, notably FreeBSD.
20 #******************************************************************************
33 #******************************************************************************
35 # Miscellaneous utility functions
37 #******************************************************************************
43 echo "Master script to create ACPICA release packages"
48 move_all_files_to_archive
()
55 rm -r -f ..
/$ARCHIVE_DIR/$file
56 mv -f $file ..
/$ARCHIVE_DIR
57 echo "Moved directory $file to $ARCHIVE_DIR directory"
59 cp $file ..
/$ARCHIVE_DIR
60 echo "Moved $file ($(ls -al $file | awk '{print $5}') bytes) to $ARCHIVE_DIR directory"
69 #******************************************************************************
74 # $1 (optional) notest - do not generate the ACPICA test suite packages
76 #******************************************************************************
78 set -e # Abort on any error
81 # Parameter evaluation
83 if [ $NPARAM -gt 1 ]; then
84 usage
"Wrong argument count ($NPARAM)"
87 elif [ $NPARAM -eq 1 ]; then
88 if [ $1 == notest
]; then
91 usage
"Invalid argument ($1)"
97 # Move and preserve any previous versions of the various release packages
99 if [ -e $RELEASE_DIR ]; then
101 # Create archive directory if necessary
103 mkdir
-p $ARCHIVE_DIR
106 # Save any older versions of the release packages
108 if [ "$(ls -A $RELEASE_DIR)" ]; then
109 echo "Moving previous packages to $ARCHIVE_DIR directory"
111 move_all_files_to_archive
112 echo "Completed move of previous packages to $ARCHIVE_DIR directory"
116 # Just create the release directory
117 mkdir
-p $RELEASE_DIR
120 # ACPICA source code (core subsystem and all tools/utilities)
122 bash build.sh
source win
123 bash build.sh
source unix
124 bash build.sh
source unix2
126 # Optionally build the test suite packages (built by default)
128 if [ $BUILD_TESTS -eq 1 ]; then
130 # ACPICA test suites (A unix2 build has not been requested by users)
132 bash build.sh
test win
133 bash build.sh
test unix
136 echo "**** Test suites not built because the notest option was used"
139 # ACPICA binary tools (Windows only)
141 bash build.sh binary win
144 echo "ACPICA - Summary of generated packages:"
146 ls $RELEASE_DIR -g -G -t