Magellan Linux

Diff of /trunk/core/include/haskell.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5537 by niro, Thu Jul 1 15:22:06 2010 UTC revision 5542 by niro, Thu Jul 1 15:34:06 2010 UTC
# Line 61  haskell_feature_is_supported() Line 61  haskell_feature_is_supported()
61  haskell_disable_feature()  haskell_disable_feature()
62  {  {
63   local feature="$1"   local feature="$1"
64   haskell_feature_is_supported || die "haskell feature '${feature}' not supported!"   haskell_feature_is_supported "${feature}" || die "haskell feature '${feature}' not supported!"
65     echo -e "${COLBLUE}--- ${COLGRED}  disabled haskell feature '${feature}'${COLDEFAULT}"
66   export HASKELL_FEATURES="${HASKELL_FEATURES/${feature}/}"   export HASKELL_FEATURES="${HASKELL_FEATURES/${feature}/}"
67  }  }
68    
69  haskell_enable_feature()  haskell_enable_feature()
70  {  {
71   local feature="$1"   local feature="$1"
72   haskell_feature_is_supported || die "haskell feature '${feature}' not supported!"   haskell_feature_is_supported "${feature}" || die "haskell feature '${feature}' not supported!"
73     echo -e "${COLBLUE}--- ${COLGREEN}  enabled haskell feature '${feature}'${COLDEFAULT}"
74   export HASKELL_FEATURES+=" ${feature}"   export HASKELL_FEATURES+=" ${feature}"
75  }  }
76    
# Line 128  haskell_src_configure() Line 130  haskell_src_configure()
130   || die   || die
131  }  }
132    
133    haskell_src_build()
134    {
135     runhaskell $(haskell_ghc_setup_script) build || die
136    }
137    
138  haskell_src_compile()  haskell_src_compile()
139  {  {
140   cd ${SRCDIR}   cd ${SRCDIR}
141   haskell_src_configure || die   haskell_src_configure || die
142   runhaskell $(haskell_ghc_setup_script) build || die   haskell_src_build || die
143  }  }
144    
145  haskell_src_install()  haskell_src_install()

Legend:
Removed from v.5537  
changed lines
  Added in v.5542