Test initialisation of MUIA_List_AdjustWidth and MUIA_List_AdjustHeight, and
[AROS.git] / arch / all-pc / acpica / generate / release / release.sh
blob7bb9c3d4919a5976fcc362116dc7c3a6cbf985e9
1 #!/bin/bash
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 #******************************************************************************
22 # Configuration
24 NPARAM=$#
25 BUILD_TESTS=1
27 # Filenames and paths
29 ARCHIVE_DIR=archive
30 RELEASE_DIR=current
33 #******************************************************************************
35 # Miscellaneous utility functions
37 #******************************************************************************
39 usage()
41 echo "$1"
42 echo
43 echo "Master script to create ACPICA release packages"
44 echo "Usage:"
45 echo " $0 [notest]"
48 move_all_files_to_archive()
50 cd $RELEASE_DIR
52 for file in *
54 if [ -d $file ]; then
55 rm -r -f ../$ARCHIVE_DIR/$file
56 mv -f $file ../$ARCHIVE_DIR
57 echo "Moved directory $file to $ARCHIVE_DIR directory"
58 else
59 cp $file ../$ARCHIVE_DIR
60 echo "Moved $file ($(ls -al $file | awk '{print $5}') bytes) to $ARCHIVE_DIR directory"
61 rm $file
63 done
65 cd ..
69 #******************************************************************************
71 # main
73 # Arguments:
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)"
85 exit 1
87 elif [ $NPARAM -eq 1 ]; then
88 if [ $1 == notest ]; then
89 BUILD_TESTS=0
90 else
91 usage "Invalid argument ($1)"
92 exit 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"
115 else
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
135 else
136 echo "**** Test suites not built because the notest option was used"
139 # ACPICA binary tools (Windows only)
141 bash build.sh binary win
143 echo
144 echo "ACPICA - Summary of generated packages:"
145 echo
146 ls $RELEASE_DIR -g -G -t