Update of /cvsroot/fink/scripts/bindist In directory sc8-pr-cvs1:/tmp/cvs-serv9039
Modified Files: Tag: remis-bindist bdnewrel Log Message: Doesn't relay on a previous bindist version, cleans ballpark for new release Index: bdnewrel =================================================================== RCS file: /cvsroot/fink/scripts/bindist/bdnewrel,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -d -r1.2 -r1.2.2.1 --- bdnewrel 15 Apr 2002 16:21:01 -0000 1.2 +++ bdnewrel 21 Dec 2003 23:50:47 -0000 1.2.2.1 @@ -1,26 +1,24 @@ #!/bin/sh set -e -set -x + +if [ "x$BDDEBUG"!="x" ]; then + set -x +fi if [ -z "$BDBASE" ]; then - echo "BDBASE not set" + echo "Binary distribution environment not set up. Please see bdenv.csh" exit 1 fi cd "$BDBASE" release=$1 if [ -z "$release" ]; then - echo "No new release given." - exit 1 -fi -prevrel=$2 -if [ -z "$prevrel" ]; then - echo "No previous release given." + echo "No release number given." exit 1 fi # create directories and Release files -for dist in fink-$release fink-$release-updates ; do +for dist in fink-$release ; do mkdir -p dists/$dist for tree in main crypto ; do mkdir -p "dists/$dist/$tree/finkinfo" @@ -35,24 +33,24 @@ done done -# symlink old packages in the main tree (not updates, not crypto) -from="fink-$prevrel/main" -to="fink-$release/main" -cd "$BDBASE/dists/$from/binary-darwin-powerpc" - -for file in * ; do - if [ -d "$file" ]; then - mkdir -p "$BDBASE/dists/$to/binary-darwin-powerpc/$file" - fi -done -for file in */*.deb ; do - ln -s "../../../../$from/binary-darwin-powerpc/$file" "../../../$to/binary-darwin-powerpc/$file" -done - # Update "current" with the new version echo "$release" > "$BDDATA/current" -# TODO: copy source symlinks -# TODO: where do we get the content for finkinfo? +# Create new log dir +if [ -d $BDLOGDIR.old ]; then + rm -rf $BDLOGDIR.old +fi +if [ -d $BDLOGDIR ]; then + mv -f $BDLOGDIR $BDLOGDIR.old +fi +mkdir -p $BDLOGDIR + +# Remove exclude files for this release +rm -f $BDDATA/excludes-$release +rm -f $BDDATA/excludes-$release.log + +# Remove existing deb files to ensure a proper build later on +/usr/bin/sudo /usr/bin/find $FINK_PREFIX/fink/$BDTREE -name "*\.deb" -exec rm {} \; +fink cleanup exit 0 ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Fink-commits mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-commits