Hi, thanks for the patch. I changed a bit of it and applied it. Please test it: https://omicron.homeip.net/files/easy_e17_preview.sh Maybe you also know what "DA COMPLETARE, E' SOLO UN PLACEHOLDER" in the patch mean... ;)
Greets, Brian 'morlenxus' Miculcy On Fri, Apr 27, 2007 at 02:07:12PM +0200, Massimiliano Calamelli wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, here's the result of my work! > This patch contains: > 0) a new feature that allow to check if a new release exists > 1) some changes to allow the script to be usable under FreeBSD > > It works fine for me (here a screenshot, done today > http://picasaweb.google.co.uk/mcalamelli/Screenshots/photo#5058068214911243874 > ), > but i've got some problems with these parts: exhibit,extrackt,language. > Exhibit and extrackt doesn't build 'cause don't use pkgconfig to find > out required libraries, a known problem. > Language module doesn't buld also: i think the problem is related > to ./configure script, it can't find some X extension (XKBrules and > XKBlib). > At this time i've skipped im my .easy_e17.conf . > It will be great if there were someone able to test it... > > Byez > > Massimiliano > - -- > Massimiliano Calamelli > http://mcalamelli.netsons.org > [EMAIL PROTECTED] > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.4 (MingW32) > > iD8DBQFGMedwleGEL56NNP4RArdiAJ4uUaF/g08+CjAvqG4yoPSHn1G0owCghgpZ > +3q5jDlPfKC8LeDYowkg9jg= > =xpWC > -----END PGP SIGNATURE----- > --- easy_e17_orig.sh Tue Apr 03 09:45:26 2007 > +++ my_easy_e17_bsd.sh Fri Apr 27 10:03:25 2007 > @@ -29,9 +29,10 @@ > os=$(uname) > autogen_args="" # > evas:--disable-gl-x11,ecore:--disable-ecore-evas-gl > max_backoff=360 # Actual maximum backoff time is roughly this > number in seconds. > -threads=2 # make -j <threads> > +threads=2 # make -j <threads> > nice_level=0 # nice level (19 == low, -20 == high) > > +online_source="http://omicron.homeip.net/projects/easy_e17/easy_e17.sh" # > URL of latest stable release > > ############################################################################# > function logo () > @@ -116,7 +117,7 @@ > echo -e > "\033[1m--------------------------------------------------------------------------------\033[0m" > echo > > - if [ ! $1 = 0 ]; then > + if [ ! $1 = 0 ] && [ ! $1 = 4 ]; then > echo -e "\033[1m--------------------------------\033[7m Build > phase $1/3 \033[0m\033[1m-------------------------------\033[0m" > fi > > @@ -145,6 +146,7 @@ > echo " --only=<name1>,<name2>,... = > action: checkout and compile ONLY the" > echo " > named libs/apps" > echo " --cvsupdate = > update only the cvs tree" > + echo " --check-new-ver = > check for a newest release of easy_e17" > echo " --help = > this help" > echo > echo -e " \033[1mOPTIONS:\033[0m" > @@ -205,6 +207,11 @@ > echo "- cleaning" > echo "- install notes" > ;; > + 4) > + echo -e "\033[1m--------------------------------\033[7m > Extra feature \033[0m\033[1m-------------------------------\033[0m" > + echo "- checking for version" > + check_new > + ;; > esac > echo -e > "\033[1m--------------------------------------------------------------------------------\033[0m" > echo > @@ -216,10 +223,20 @@ > case $os in > SunOS) > ldconfig="$(which crle) -u" # there is no command > like ldconfig on solaris! "crle" does nearly the same. > - ;; > + make="make" > + ;; > Linux) > ldconfig="/sbin/ldconfig" > - ;; > + make="make" > + ;; > + FreeBSD) > + ldconfig="/sbin/ldconfig" > + export PATH=/usr/local/gnu-autotools/bin:$PATH > + export ACLOCAL_FLAGS=" -I /usr/local/share/aclocal" > + export CFLAGS="$CFLAGS -lintl -liconv -g > -L/usr/local/lib -L/usr/X11R6/lib -I/usr/local/include -I/usr/X11R6/include" > + export CPPFLAGS="$CPPFLAGS -I/usr/local/include" > + make="gmake" > + ;; > *) > os="not supported" > logo 0 > @@ -249,7 +266,7 @@ > attempt=1; > > while [ 1 ]; do > - $cvscommand | tee --append "$tmp_path/cvs_update.log" > + $cvscommand | tee -a "$tmp_path/cvs_update.log" > if [ "${PIPESTATUS[0]}" -gt 0 ]; then > if [ "$fix_cvs_conflicts" ]; then > for cfile in `egrep "^[C] " > "$tmp_path/cvs_update.log" | cut -d' ' -f2`; do > @@ -367,20 +384,20 @@ > return > fi > if [[ clean -eq 1 ]] ; then > - make clean >> "$logs_path/$name.log" 2>&1 && touch > $tmp_path/$name.noerrors & > + $make clean >> "$logs_path/$name.log" 2>&1 && touch > $tmp_path/$name.noerrors & > fi > if [[ clean -eq 2 ]] ; then > echo -n "distclean: " > - make clean distclean >> "$logs_path/$name.log" 2>&1 && > touch $tmp_path/$name.noerrors & > + $make clean distclean >> "$logs_path/$name.log" 2>&1 && > touch $tmp_path/$name.noerrors & > fi > if [[ clean -ge 3 ]] ; then > echo -n "uninstall: " > case "$mode" in > "root") > - nice -n $nice_level make uninstall clean distclean > >> "$logs_path/$name.log" 2>&1 && touch $tmp_path/$name.noerrors & > + nice -n $nice_level $make uninstall clean distclean > >> "$logs_path/$name.log" 2>&1 && touch $tmp_path/$name.noerrors & > ;; > "sudo") > - echo "$sudopwd" | sudo -S nice -n $nice_level make > uninstall clean distclean >> "$logs_path/$name.log" 2>&1 && touch > $tmp_path/$name.noerrors & > + echo "$sudopwd" | sudo -S nice -n $nice_level $make > uninstall clean distclean >> "$logs_path/$name.log" 2>&1 && touch > $tmp_path/$name.noerrors & > ;; > esac > fi > @@ -408,11 +425,12 @@ > done > > if [ ! -e "autogen.sh" ]; then > - echo "CAN'T AUTOGEN" > - return > + echo "CAN'T AUTOGEN" > + return > fi > - set_title "$name: autogen ($pkg_pos/$pkg_total)" > - echo -n "autogen: " > + > + set_title "$name: autogen ($pkg_pos/$pkg_total)" > + echo -n "autogen: " > if [ $nice_level -ge 0 ]; then > nice -n $nice_level ./autogen.sh --prefix=$install_path > $accache $args >> "$logs_path/$name.log" 2>&1 && touch > $tmp_path/$name.noerrors & > else > @@ -423,8 +441,9 @@ > "sudo") > echo "$sudopwd" | sudo -S nice -n $nice_level > ./autogen.sh --prefix=$install_path $accache $args >> "$logs_path/$name.log" > 2>&1 && touch $tmp_path/$name.noerrors & > ;; > - esac > - fi > + esac > + fi > + > pid="$!" > rotate "$pid" "$name" > for package in $failed_packages > @@ -439,14 +458,14 @@ > set_title "$name: make ($pkg_pos/$pkg_total)" > echo -n "make : " > if [ $nice_level -ge 0 ]; then > - nice -n $nice_level make -j $threads >> "$logs_path/$name.log" > 2>&1 && touch $tmp_path/$name.noerrors & > + nice -n $nice_level $make -j $threads >> "$logs_path/$name.log" > 2>&1 && touch $tmp_path/$name.noerrors & > else > case "$mode" in > "root") > - nice -n $nice_level make -j $threads >> > "$logs_path/$name.log" 2>&1 && touch $tmp_path/$name.noerrors & > + nice -n $nice_level $make -j $threads >> > "$logs_path/$name.log" 2>&1 && touch $tmp_path/$name.noerrors & > ;; > "sudo") > - echo "$sudopwd" | sudo -S nice -n $nice_level > make -j $threads >> "$logs_path/$name.log" 2>&1 && touch > $tmp_path/$name.noerrors & > + echo "$sudopwd" | sudo -S nice -n $nice_level > $make -j $threads >> "$logs_path/$name.log" 2>&1 && touch > $tmp_path/$name.noerrors & > ;; > esac > fi > @@ -494,7 +513,7 @@ > echo -n "install: " > case "$mode" in > "root") > - nice -n $nice_level make install >> > "$logs_path/$name.log" 2>&1 && touch $tmp_path/$name.noerrors & > + nice -n $nice_level $make install >> > "$logs_path/$name.log" 2>&1 && touch $tmp_path/$name.noerrors & > pid="$!" > rotate "$pid" "$name" > for package in $failed_packages > @@ -508,7 +527,7 @@ > echo "ok" > ;; > "sudo") > - echo "$sudopwd" | sudo -S nice -n $nice_level make > install >> "$logs_path/$name.log" 2>&1 && touch $tmp_path/$name.noerrors & > + echo "$sudopwd" | sudo -S nice -n $nice_level $make > install >> "$logs_path/$name.log" 2>&1 && touch $tmp_path/$name.noerrors & > pid="$!" > rotate "$pid" "$name" > for package in $failed_packages > @@ -692,6 +711,22 @@ > fi > } > > +function check_new () > +{ > + echo "Checking for new release" > + remote_ver=`wget $online_source -q -O - | grep -m 2 -o > [0-9]\.[0-9]\.[0-9] | sort -n | head -n 1` > + echo "Remote version: $remote_ver" > + echo "Local version: $version" > + remote_ver=`echo $remote_ver | tr -d .` > + local_ver=`echo $version | tr -d .` > + if [ $remote_ver -gt $local_ver ]; then > + echo "There's a new release available!" > + else > + echo "You're using the latest release." > + fi > +} > + > + > # SCRIPT: > set_title > define_os_vars > @@ -734,7 +769,7 @@ > > case "$option" in > "-i") action="install" ;; > - "--install") action="install" ;; > + "--install") action="install" ;; > "-u") action="update" ;; > "--update") action="update" ;; > "-c") clean=$(( $clean + 1 )) ;; > @@ -747,7 +782,11 @@ > action="only" > only="`echo "$value" | tr -s '\,' '\ '` $only" > ;; > - > + "--check-new-ver") > + action="check-new-ver" > + logo 4 > + exit > + ;; > "--cvsupdate") > action="cvsupdate" > skip="$efl $apps $apps_misc $e17_modules" > @@ -917,6 +956,7 @@ > > echo -n "- checking lib-path in ldc ... " > case $os in > + FreeBSD) e17ldcfg=" ";; # DA COMPLETARE, E' SOLO UN PLACEHOLDER > SunOS) e17ldcfg="";; # need more testing of adding libaries on > different solaris versions. atm this is not working > Linux) > e17ldcfg="`grep -r -l -i -m 1 $install_path/lib > /etc/ld.so.conf*`" ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
