Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, September 22, 2019

Diff for vimconfig/contrib/update-vim-sources between version 1.2 and 1.3

version 1.2, 2003/07/29 16:06:48 version 1.3, 2003/10/08 15:16:11
Line 19 
Line 19 
 # All rights reserved.  # All rights reserved.
 #  #
   
 # $Platon: vimconfig/contrib/update-vim-sources,v 1.1 2003/04/16 01:00:22 rajo Exp $  # $Platon: vimconfig/contrib/update-vim-sources,v 1.2 2003/07/29 16:06:48 rajo Exp $
   
 # Define vim version:  # Define vim version:
 VIM_VER="vim62"  VIM_VER="vim62"
Line 31  VIM_VER_EGREP="^6\.2\."
Line 31  VIM_VER_EGREP="^6\.2\."
 URL="ftp://ftp.vim.org/pub/vim/patches/"  URL="ftp://ftp.vim.org/pub/vim/patches/"
   
 # Directory where Vim sources are located  # Directory where Vim sources are located
 #SRC_DIR="/opt/scratch/rajo/src/own"  
 #SRC_DIR="/usr/src/vim"  #SRC_DIR="/usr/src/vim"
 SRC_DIR="$HOME/tmp/vim"  SRC_DIR="$HOME/tmp/vim"
   
Line 52  old_version()
Line 51  old_version()
 #       fi  #       fi
 #       echo $1 | awk 'BEGIN {FS="."} { print "." $3 - 1 }'  #       echo $1 | awk 'BEGIN {FS="."} { print "." $3 - 1 }'
 #       echo $1 | awk 'BEGIN {FS="."} { print ".0" $3 - 1 }'  #       echo $1 | awk 'BEGIN {FS="."} { print ".0" $3 - 1 }'
         echo $1 | awk 'BEGIN {FS="."} { print ".0" $3 - 1 }'  #       echo $1 | awk ' BEGIN {FS="."} { if ($3 < 11) { print ".00" $3 - 1 ; next; } if ($3 < 101) { print ".0" $3 - 1 ; next; } print "." $3 - 1 ; }'
   # For instipration thanks to 'Nebojsa'
           echo $1 | awk 'BEGIN {FS="."} { printf ".%03d\n", $3 - 1 }'
 }  }
   
 # '6.0.099' --> '99'  # '6.0.099' --> '99'
Line 157  make_distribution()
Line 158  make_distribution()
         DIST_FILE="$DIST_DIR/$VIM_VER_LONG`new_version $1`-all.tar.bz2"          DIST_FILE="$DIST_DIR/$VIM_VER_LONG`new_version $1`-all.tar.bz2"
         OLD_DIST_FILE="$DIST_DIR/$VIM_VER_LONG`old_version $1`-all.tar.bz2"          OLD_DIST_FILE="$DIST_DIR/$VIM_VER_LONG`old_version $1`-all.tar.bz2"
         cd /opt/scratch/rajo/src/vim/ && \          cd /opt/scratch/rajo/src/vim/ && \
                 tar cIf $DIST_FILE $VIM_VER`new_version $1` && \                  tar cjf $DIST_FILE $VIM_VER`new_version $1` && \
                         chmod a+r $DIST_FILE && \                          chmod a+r $DIST_FILE && \
                                 rm -f $OLD_DIST_FILE || return 1                                  rm -f $OLD_DIST_FILE || return 1
         cd $DIR          cd $DIR

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top