From 090d4ed2d1ddf0001a01b52a256c0bf540a380a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 4 Jan 2013 23:14:36 +0100 Subject: build_efl_stable.sh->efl-release-build.sh --- build_efl_stable.sh | 70 ---------------------------------------------------- efl-release-build.sh | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 70 deletions(-) delete mode 100755 build_efl_stable.sh create mode 100755 efl-release-build.sh diff --git a/build_efl_stable.sh b/build_efl_stable.sh deleted file mode 100755 index d614603..0000000 --- a/build_efl_stable.sh +++ /dev/null @@ -1,70 +0,0 @@ -#! /bin/bash - -EFL_VER=1.7.5 -E_VER=0.17.0 -PREFIX=/opt/efl-stable -OPTIONS="--disable-doc --disable-static" -SUDO_PASSWD="" -BASE_URL="http://download.enlightenment.fr/releases" -export LD_LIBRARY_PATH="" -export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" - -EFL_PKGS="eina eet evas ecore eio embryo edje efreet e_dbus eeze emotion ethumb elementary" - -function e_get() { - echo "fetch archives" - for pkg in $EFL_PKGS; do - arch=${pkg}-${EFL_VER}.tar.bz2 - echo " - $arch" - [ -f $arch ] || curl "$BASE_URL/$arch" -o $arch || exit 1 - done - e_arch=enlightenment-${E_VER}.tar.bz2 - echo " - $e_arch" - [ -f $e_arch ] || curl "$BASE_URL/$e_arch" -o $e_arch || exit 1 -} - -function e_extract() { - echo "extract archives" - for pkg in $EFL_PKGS; do - echo " - $arch" - [ -d $pkg-${EFL_VER} ] && rm -rf $pkg-${EFL_VER} - arch=${pkg}-${EFL_VER}.tar.bz2 - tar -xjf $arch || exit 1 - done - echo " - $e_arch" - [ -d enlightenment-${E_VER} ] && rm -rf enlightenment-${E_VER} - e_arch=enlightenment-${E_VER}.tar.bz2 - tar -xjf $e_arch || exit 1 -} - -function e_build() { - echo "build and install" - for pkg in $EFL_PKGS; do - echo " - $pkg" - cd $pkg-${EFL_VER} || exit 1 - ./autogen.sh --prefix=$PREFIX $OPTIONS - if [ $? -ne 0 ]; then - echo " - FIX configure.ac" && sed -i 's/AM_PROG_CC_STDC/AC_PROG_CC/g' configure.ac && sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || exit 1 - ./autogen.sh --prefix=$PREFIX $OPTIONS || exit 1 - fi - make && echo "$PASSWD" | sudo -S make install && cd .. || exit 1 - done - echo " - $e_arch" - cd enlightenment-${E_VER} && ./configure --prefix=$PREFIX $OPTIONS && make && echo "$PASSWD" | sudo -S make install && cd .. || exit 1 -} - -function get_sudopwd() { - sudo_test=/tmp/_sudo.test - echo -n "enter sudo-password: " && stty -echo && read SUDO_PASSWD && stty echo || exit 1 - [ -e $sudo_test ] && rm -f $sudo_test - echo "$SUDO_PASSWD" | sudo -S touch $sudo_test - if [ ! -e $sudo_test ]; then - echo "cmdline provided sudo password failed!" - exit 1 - fi -} - -get_sudopwd -e_get -e_extract -e_build diff --git a/efl-release-build.sh b/efl-release-build.sh new file mode 100755 index 0000000..d614603 --- /dev/null +++ b/efl-release-build.sh @@ -0,0 +1,70 @@ +#! /bin/bash + +EFL_VER=1.7.5 +E_VER=0.17.0 +PREFIX=/opt/efl-stable +OPTIONS="--disable-doc --disable-static" +SUDO_PASSWD="" +BASE_URL="http://download.enlightenment.fr/releases" +export LD_LIBRARY_PATH="" +export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" + +EFL_PKGS="eina eet evas ecore eio embryo edje efreet e_dbus eeze emotion ethumb elementary" + +function e_get() { + echo "fetch archives" + for pkg in $EFL_PKGS; do + arch=${pkg}-${EFL_VER}.tar.bz2 + echo " - $arch" + [ -f $arch ] || curl "$BASE_URL/$arch" -o $arch || exit 1 + done + e_arch=enlightenment-${E_VER}.tar.bz2 + echo " - $e_arch" + [ -f $e_arch ] || curl "$BASE_URL/$e_arch" -o $e_arch || exit 1 +} + +function e_extract() { + echo "extract archives" + for pkg in $EFL_PKGS; do + echo " - $arch" + [ -d $pkg-${EFL_VER} ] && rm -rf $pkg-${EFL_VER} + arch=${pkg}-${EFL_VER}.tar.bz2 + tar -xjf $arch || exit 1 + done + echo " - $e_arch" + [ -d enlightenment-${E_VER} ] && rm -rf enlightenment-${E_VER} + e_arch=enlightenment-${E_VER}.tar.bz2 + tar -xjf $e_arch || exit 1 +} + +function e_build() { + echo "build and install" + for pkg in $EFL_PKGS; do + echo " - $pkg" + cd $pkg-${EFL_VER} || exit 1 + ./autogen.sh --prefix=$PREFIX $OPTIONS + if [ $? -ne 0 ]; then + echo " - FIX configure.ac" && sed -i 's/AM_PROG_CC_STDC/AC_PROG_CC/g' configure.ac && sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || exit 1 + ./autogen.sh --prefix=$PREFIX $OPTIONS || exit 1 + fi + make && echo "$PASSWD" | sudo -S make install && cd .. || exit 1 + done + echo " - $e_arch" + cd enlightenment-${E_VER} && ./configure --prefix=$PREFIX $OPTIONS && make && echo "$PASSWD" | sudo -S make install && cd .. || exit 1 +} + +function get_sudopwd() { + sudo_test=/tmp/_sudo.test + echo -n "enter sudo-password: " && stty -echo && read SUDO_PASSWD && stty echo || exit 1 + [ -e $sudo_test ] && rm -f $sudo_test + echo "$SUDO_PASSWD" | sudo -S touch $sudo_test + if [ ! -e $sudo_test ]; then + echo "cmdline provided sudo password failed!" + exit 1 + fi +} + +get_sudopwd +e_get +e_extract +e_build -- cgit v1.1-2-g2b99