Changeset fa281a9 in freewrt
- Timestamp:
- Jul 22, 2006, 5:02:04 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- e13d736
- Parents:
- fedf8f4
- Location:
- scripts
- Files:
-
- 2 edited
-
scan-pkgs.sh (modified) (4 diffs)
-
scan-tools.sh (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scripts/scan-pkgs.sh
rfedf8f4 rfa281a9 18 18 # linked into a bigger work whose licence does not allow such clause 19 19 # and the author of this work is given due credit in the bigger work 20 # or its documentation. Specifically, re-using this code in any work 21 # covered by the GNU General Public License version 1 or Library Ge- 22 # neral Public License (any version) is permitted. 20 # or its documentation. 23 21 # 24 22 # Licensor offers the work "AS IS" and WITHOUT WARRANTY of any kind, … … 41 39 topdir=$(readlink -nf $(dirname $0)/..) 42 40 export PATH=$topdir/lbin:$PATH 41 out=0 43 42 44 43 . $topdir/.config … … 55 54 if ! which jikes >/dev/null 2>&1; then 56 55 echo >&2 You need jikes to build $NEED_JIKES 57 exit156 out=1 58 57 fi 59 58 fi … … 61 60 #-- end of dependency checks 62 61 63 exit 062 exit $out -
scripts/scan-tools.sh
rfedf8f4 rfa281a9 18 18 # linked into a bigger work whose licence does not allow such clause 19 19 # and the author of this work is given due credit in the bigger work 20 # or its documentation. Specifically, re-using this code in any work 21 # covered by the GNU General Public License version 1 or Library Ge- 22 # neral Public License (any version) is permitted. 20 # or its documentation. 23 21 # 24 22 # Licensor offers the work "AS IS" and WITHOUT WARRANTY of any kind, … … 41 39 topdir=$(pwd) 42 40 export PATH=$topdir/lbin:$PATH 41 out=0 43 42 44 43 if [[ $NO_ERROR != @(0|1) ]]; then … … 76 75 echo You must install GNU make and a host C compiler, 77 76 echo usually GCC, to proceed. 78 exit177 out=1 79 78 fi 80 79 rm test* … … 93 92 else 94 93 echo Cannot determine GNU make version number. 95 exit194 out=1 96 95 fi 97 96 if (( (major < 3) || ((major == 3) && (minor < 81)) )); then … … 102 101 else 103 102 echo You can override this check, see http://www.freewrt.org/faq for details. 104 exit1103 out=1 105 104 fi 106 105 fi … … 108 107 if ! which flex >/dev/null 2>&1; then 109 108 echo You must install flex to continue. 110 exit1109 out=1 111 110 fi 112 111 … … 120 119 echo You can continue the build by issuing \'make prereq-noerror\' 121 120 echo However, several packages may faild to build correctly. 122 exit1121 out=1 123 122 fi 124 123 fi … … 128 127 echo While you can install any version, it is '*STRONGLY*' suggested 129 128 echo to install GNU Bison version 2.3 because of its bug fixes. 130 exit1129 out=1 131 130 fi 132 131 X=$(bison --version 2>&1 | fgrep 'GNU Bison' | sed 's/^[^0-9]*//') … … 146 145 if ! which gzip >/dev/null 2>&1; then 147 146 echo You must install gzip to continue. 148 exit1147 out=1 149 148 fi 150 149 151 150 if ! which bzip2 >/dev/null 2>&1; then 152 151 echo You must install bzip2 to continue. 153 exit1152 out=1 154 153 fi 155 154 156 155 if ! which unzip >/dev/null 2>&1; then 157 156 echo You must install unzip to continue, sorry. 158 exit1157 out=1 159 158 fi 160 159 161 160 if ! which patch >/dev/null 2>&1; then 162 161 echo You must install patch \(from Larry Wall\) to continue. 163 exit1162 out=1 164 163 fi 165 164 … … 194 193 echo You must install the zlib development package, 195 194 echo usually called libz-dev, and the run-time library. 196 exit1195 out=1 197 196 fi 198 197 199 198 if ! which g++ >/dev/null 2>&1; then 200 199 echo You must install the host GNU C++ compiler to continue. 201 exit1200 out=1 202 201 fi 203 202 … … 205 204 if [[ "$(which perl 2>/dev/null)" != /usr/bin/perl ]]; then 206 205 echo You must install Perl in /usr/bin to continue. 207 exit1206 out=1 208 207 fi 209 208 210 209 if ! which python >/dev/null 2>&1; then 211 210 echo You must install Python to continue, sorry. 212 exit1211 out=1 213 212 fi 214 213 215 214 if ! which wget >/dev/null 2>&1; then 216 215 echo You must install GNU wget to continue. 217 exit1216 out=1 218 217 fi 219 218 … … 221 220 cd $topdir 222 221 rm -rf lbin/tmp 223 exit 0222 exit $out
Note:
See TracChangeset
for help on using the changeset viewer.
