Skip to content

Commit 5dd3865

Browse files
committedJan 6, 2012
Restore original build script
1 parent 317e75e commit 5dd3865

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed
 

‎build.sh

+22-17
Original file line numberDiff line numberDiff line change
@@ -43,40 +43,41 @@ do
4343
case "$opt" in
4444

4545
--clean)
46-
WRE_CLEAN=1
46+
export WRE_CLEAN=1
4747
;;
4848

4949
--all)
50-
WRE_BUILD_UTILS=1
51-
WRE_BUILD_PERL=1
52-
WRE_BUILD_NGINX=1
53-
WRE_BUILD_IMAGEMAGICK=1
54-
WRE_BUILD_WRE=1
55-
WRE_BUILD_PM=1
50+
export WRE_BUILD_UTILS=1
51+
export WRE_BUILD_PERL=1
52+
export WRE_BUILD_NGINX=1
53+
export WRE_BUILD_IMAGEMAGICK=1
54+
export WRE_BUILD_AWSTATS=1
55+
export WRE_BUILD_WRE=1
56+
export WRE_BUILD_PM=1
5657
;;
5758

5859
--utils | --utilities)
59-
WRE_BUILD_UTILS=1
60+
export WRE_BUILD_UTILS=1
6061
;;
6162

6263
--perl)
63-
WRE_BUILD_PERL=1
64+
export WRE_BUILD_PERL=1
6465
;;
6566

6667
--nginx)
67-
WRE_BUILD_NGINX=1
68+
export WRE_BUILD_NGINX=1
6869
;;
6970

7071
--imageMagick | --imagemagick)
71-
WRE_BUILD_IMAGEMAGICK=1
72+
export WRE_BUILD_IMAGEMAGICK=1
7273
;;
7374

7475
--wre)
75-
WRE_BUILD_WRE=1
76+
export WRE_BUILD_WRE=1
7677
;;
7778

7879
--perlModules | --perlmodules | --pm)
79-
WRE_BUILD_PM=1
80+
export WRE_BUILD_PM=1
8081
;;
8182

8283
--help | -help | -h | -? | ?)
@@ -359,28 +360,28 @@ buildImageMagick(){
359360
# param1: module directory
360361
# param2: parameters to pass to Makefile.PL
361362
installPerlModule() {
363+
cd $1
362364
printHeader "PM $1 with $2"
363365
if [ "$WRE_CLEAN" == 1 ]; then
364366
$WRE_MAKE distclean
365367
$WRE_MAKE clean
366368
fi
367369
perl Makefile.PL $2 CCFLAGS="$CFLAGS"; checkError $? "$1 Makefile.PL"
368370
$WRE_MAKE; checkError $? "$1 make"
371+
#$WRE_MAKE test; checkError $? "$1 make test"
369372
$WRE_MAKE install; checkError $? "$1 make install"
370-
cd /data/wrebuild
373+
cd ..
371374
}
372375

373376
installPerlModules () {
374377
printHeader "Perl Modules"
378+
cd source/perlmodules
375379
export PERL_MM_USE_DEFAULT=1 # makes it so perl modules don't ask questions
376380
cpan App::cpanminus
377381
cpanm Task::WebGUI
378382
if [ "$WRE_OSTYPE" != "Leopard" ] && [ "$WRE_OSTYPE" != "Snow Leopard" ]; then
379383
cpanm http://backpan.perl.org/authors/id/D/DU/DURIST/Proc-ProcessTable-0.44.tar.gz
380384
fi
381-
mkdir -p source/perlmodules
382-
chdir source/perlmodules
383-
cpanm --look Text::Aspell
384385
installPerlModule "Text-Aspell-0.09" "LIBS='-laspell'"
385386
# detecting shared memory properly on 2.6 kernels
386387
if [ "$WRE_OSNAME" == "Linux" ]; then
@@ -390,6 +391,9 @@ installPerlModules () {
390391
cd $WRE_BUILDDIR
391392
}
392393

394+
395+
396+
393397
#wre utils
394398
installWreUtils(){
395399
printHeader "WebGUI Runtime Environment Core and Utilities"
@@ -414,6 +418,7 @@ makeItSmall(){
414418
rm -Rf $WRE_ROOT/etc/extra
415419
}
416420

421+
#
417422
# build stuff
418423
if [ "$WRE_BUILD_UTILS" == 1 ]; then
419424
buildUtils

0 commit comments

Comments
 (0)