[Python-checkins] python/dist/src/Mac/OSX/Dist build,1.2,1.2.2.1

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Mon, 28 Apr 2003 07:48:30 -0700


Update of /cvsroot/python/python/dist/src/Mac/OSX/Dist
In directory sc8-pr-cvs1:/tmp/cvs-serv23566

Modified Files:
      Tag: r23b1-branch
	build 
Log Message:
- Don't generate README, but ask the user to provide it.
- Create destination dir, if needed.
- Updated for 2.3b1.


Index: build
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/OSX/Dist/build,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** build	22 Mar 2003 00:02:23 -0000	1.2
--- build	28 Apr 2003 14:47:57 -0000	1.2.2.1
***************
*** 6,12 ****
  
  # Script configs
! PYVERSION=2.3a2
  PYVER=2.3
! BUILDNUM=3
  DOCLEANUP=no
  
--- 6,12 ----
  
  # Script configs
! PYVERSION=2.3b1
  PYVER=2.3
! BUILDNUM=1
  DOCLEANUP=no
  
***************
*** 41,44 ****
--- 41,52 ----
  pushd $BUILDROOT
  
+ # Ask the user whether s/he has edited Welcome.txt
+ read -p "Have you updated $RESOURCEDIR/Welcome.txt (Y/n)? " welcome
+ 
+ if [ "$welcome" = "n" -o "$welcome" = "N" ]; then
+ 	echo "Please do so and retry"
+ 	exit
+ fi
+ 
  # Check if we should build and install the docs, but only if it
  # doesn't appear to be done already.  TODO: fix this path to be version independent
***************
*** 86,99 ****
  python $PYTHONSRC/Mac/scripts/zappycfiles.py $INSTALLROOT/Library/Frameworks/Python.framework/Versions/$PYVER/Mac/Tools
  
- # Make the welcome message
- cat > $RESOURCEDIR/Welcome.txt <<EOF
- Welcome!
- 
- This program will install Python $PYVERSION for Mac OS X as a Framework.
- 
- Build number: $BUILDNUM
- Build date:   `date`
- EOF
- 
  # Finally, build the package...
  rm -rf MacPython-OSX.pkg
--- 94,97 ----
***************
*** 112,118 ****
--- 110,120 ----
  # ...and then make a disk image containing the package.
  mv MacPython-OSX.pkg $DMGDIR/root
+ cp $RESOURCEDIR/Welcome.txt $DMGDIR/root/README.txt
  $PROGDIR/makedmg $DMGDIR/root $DMGDIR MacPython-OSX-$PYVERSION-$BUILDNUM
  
  echo Moving $DMGDIR/MacPython-OSX-$PYVERSION-$BUILDNUM to $DESTDIR
+ if [ ! -e $DESTDIR ]; then
+     mkdir $DESTDIR
+ fi
  mv $DMGDIR/MacPython-OSX-$PYVERSION-$BUILDNUM.dmg $DESTDIR