6 echo "Usage is: configure [--prefix=PREFIX] [--profile=PROFILE]"
8 echo "Profiles available: "
9 (cd build/profiles; ls *.make | sed -e 's/.make//' -e 's/^/ /')
22 prefix=`echo $a | sed 's/--prefix=//'`;
25 profile=`echo $a | sed 's/--profile=//'`;
26 if test ! -f build/profiles/$profile.make; then
28 echo Error, profile $profile does not exist
34 echo Unknown option: $a
40 echo "prefix=$prefix" > build/config.make
41 echo "MCS_FLAGS = \$(PLATFORM_DEBUG_FLAGS)" >> build/config.make
42 echo "PROFILE=$profile" > build/pre-config.make
45 echo "MCS module configured"
47 echo " Profile selected: $profile"
48 echo " Prefix: $prefix"