On Tue, 1 Mar 2005 10:39:18 -0500 Michael Jennings <[EMAIL PROTECTED]> babbled:

> On Tuesday, 01 March 2005, at 15:56:33 (+0900),
> Carsten Haitzler wrote:
> 
> > no one said it was a magical cure. it was a fixup of doing hack of
> > _preX after the version to turn it into a raw numeric.
> 
> Okay, then explain to me why you added the .001 to 18 packages in CVS
> when ONLY THREE of them had _pre in the version.

because of this:

asapagus.sh:
#!/bin/sh
ASP="$HOME/s/asparagus"

# delete old releases
rm -f ~/C/rel/*

NEW="new"
#NEW=""
if [ $# -eq 0 ]; then
  set -e
  ## e17 wm
  $ASP $NEW ~/C/eet
  $ASP $NEW ~/C/imlib2
  $ASP $NEW ~/C/evas
  $ASP $NEW ~/C/ecore
  $ASP $NEW ~/C/embryo
  $ASP $NEW ~/C/edje
  $ASP $NEW ~/C/e17
  ## entrance extras
  $ASP $NEW ~/C/edb
  $ASP $NEW ~/C/epeg
  $ASP $NEW ~/C/epsilon
  $ASP $NEW ~/C/esmart
  $ASP $NEW ~/C/entrance
  ## other extras
  $ASP $NEW ~/C/imlib2_loaders
  $ASP $NEW ~/C/etox
  $ASP $NEW ~/C/ewl
  $ASP $NEW ~/C/emotion
  $ASP $NEW ~/C/entice
else
  set -e
  for I in $@; do
    if   [ $I = "wm" ]; then
      $ASP $NEW ~/C/eet
      $ASP $NEW ~/C/imlib2
      $ASP $NEW ~/C/evas
      $ASP $NEW ~/C/ecore
      $ASP $NEW ~/C/embryo
      $ASP $NEW ~/C/edje
      $ASP $NEW ~/C/e17
    elif [ $I = "login" ]; then
      $ASP $NEW ~/C/edb
      $ASP $NEW ~/C/epeg
      $ASP $NEW ~/C/epsilon
      $ASP $NEW ~/C/esmart
      $ASP $NEW ~/C/entrance
    elif [ $I = "extras" ]; then
      $ASP $NEW ~/C/imlib2_loaders
      $ASP $NEW ~/C/etox
      $ASP $NEW ~/C/ewl
      $ASP $NEW ~/C/emotion
      $ASP $NEW ~/C/entice
    else
      $ASP $NEW ~/C/$I
    fi
  done
fi

# upload them...
cd ~/C/rel/
scp * gabe.freedesktop.org:/srv/enlightenment.freedesktop.org/www/files/

s/asparagus:
#!/bin/sh

if [ $# -lt 1 ]; then
  echo "Usage:"
  echo "  asparagus /dir/to/project/to/release"
  exit -1
fi

if [ $# -eq 2 ]; then
  MODE=$1
  PROJ=$2
else
  PROJ=$1
fi

cd $PROJ
LINE=`grep "AM_INIT_AUTOMAKE" configure.in | head -1 | sed s/AM_INIT_AUTOMAKE//
| tr "()," " "`
PROJ=`echo "$LINE" | awk '{printf("%s", $1);}'`
VERS=`echo "$LINE" | awk '{printf("%s", $2);}'`
VER1=`echo "$VERS" | awk -F. '{printf("%s.%s.%s", $1, $2, $3);}'`
VER2=`echo "$VERS" | awk -F. '{printf("%s", $4);}'`
if [ "$MODE" = "new" ]; then
  VER3=`printf "%03i" $[ $VER2 + 1 ];`
  awk -F"(" \
  'BEGIN {   } \
  { if ($1 == "AM_INIT_AUTOMAKE") \
    printf("AM_INIT_AUTOMAKE('"$PROJ"', '"$VER1"'.'"$VER3"')\n"); \
    else printf("%s\n", $0); }' \
  configure.in > .tmp
  cp .tmp configure.in
  rm -f .tmp
else
  VER3="$VER2"
fi
./autogen.sh || exit -1
gendoc
make dist || exit -1
FILE="$PROJ"-"$VER1"."$VER3".tar.gz
mv $FILE "$HOME/C/rel" || exit -1
echo "------------------------------------------------------------------"


> > no u didn't :) this is irrelevant. i repeat - the .001 REPLACED _preXX
> 
> Again...see above.  You still have not responded to this even though
> I've asked twice.

i did - i said it helps making snapshots without having to fiddle the main
version and play with libtool versioning info etc. etc. etc. etc.

it makes automated releases that have a CONSISTENT VERSIONING SCHEME simple.

> > now purely numeric which makes it easier/possible to compare trivially
> 
> You still haven't solved the fundamental problem of comparing
> non-integers.  .001 is no more of an integer than .pre_XX

yes it is. see above. it IS an integer.

> > allows for automated snapshots. people accuse us of never releasing
> > anything - but a big reason is that making a release is a PAIN IN
> > THE ARSE because its 20 different packages that all need
> > bumping. this is a step in trying to fix that.
> 
> I don't understand how changing 18 different snapshot numbers on a
> weekly (or more) basis is easier than changing 18 different version
> numbers on a bi-monthly or tri-monthly basis.

see above - again. it means the SAME rule can be applied to ALL packages - no
exceptions. for those close to a 1.0.0 we can keep them at 0.9.9 or 0.16.999 for
example - we can up the real version as we please with automated releases
incrementing the release. for somone who does rpm packaging you seem to have
instantly forgotten the release number in packages (-1, -2, -3 etc.) the moment
u look at src. the .001 is the exact equivalent to it - but on the source side.

> Michael
> 
> -- 
> Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[EMAIL PROTECTED]>
> n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
> -----------------------------------------------------------------------
>  "You like apples?  Yeah?  Well, I got her number!  How about them
>   apples??!"                        -- Matt Damon, "Good Will Hunting"
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多                              [EMAIL PROTECTED]
Tokyo, Japan (東京 日本)


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to