Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, April 20, 2024

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

version 1.1, 2003/04/16 01:00:22 version 1.2, 2003/07/29 16:06:48
Line 19 
Line 19 
 # All rights reserved.  # All rights reserved.
 #  #
   
 # $Platon$  # $Platon: vimconfig/contrib/update-vim-sources,v 1.1 2003/04/16 01:00:22 rajo Exp $
   
 # Define vim version:  # Define vim version:
 VIM_VER="vim61"  VIM_VER="vim62"
 VIM_VER_LONG="vim-6.1"  VIM_VER_LONG="vim-6.2"
 VIM_VER_EGREP="^6\.1\."  VIM_VER_EGREP="^6\.2\."
   
 # Web site where patches are located  # Web site where patches are located
 #URL="ftp://ftp.vim.org/pub/vim/unstable/patches/"  #URL="ftp://ftp.vim.org/pub/vim/unstable/patches/"
Line 119  modify_changelog()
Line 119  modify_changelog()
                 && here="`pwd`" \                  && here="`pwd`" \
                 && for i in $*; do \                  && for i in $*; do \
                         test -f patches/$i \                          test -f patches/$i \
                         && cp $VIM_VER/debian/changelog $VIM_VRE/debian/changelog.before-$i \                          && cp $VIM_VER/debian/changelog $VIM_VER/debian/changelog.before-$i \
                         && ( echo "vim ($i) unstable; urgency=low" \                          && ( echo "vim ($i) unstable; urgency=low" \
                                 && echo && echo "  * Apply upstream patch:" \                                  && echo && echo "  * Apply upstream patch:" \
                                 && filter_patch < patches/$i \                                  && filter_patch < patches/$i \
                                 && echo " -- Lubomir Host <rajo@platon.sk>  `date -R`" \                                  && echo " -- Lubomir Host <rajo@platon.sk>  `date -R`" \
                                 && echo ) > $VIM_VRE/debian/changelog \                                  && echo ) > $VIM_VER/debian/changelog \
                         && cat $VIM_VRE/debian/changelog.before-$i >> $VIM_VRE/debian/changelog                          && cat $VIM_VER/debian/changelog.before-$i >> $VIM_VER/debian/changelog
                 done                  done
         cd "$DIR"          cd "$DIR"
 }  }
Line 145  patch_sources()
Line 145  patch_sources()
                         && patch -p0 < $i \                          && patch -p0 < $i \
                                 && modify_changelog $i \                                  && modify_changelog $i \
                                 && cd "$here" \                                  && cd "$here" \
                                 && ln -s $VIM_VER $VIM_VER`new_version $i` || return 1                                  && ln -s $VIM_VER $VIM_VER_LONG`new_version $i` || return 1
                 done                  done
         cd "$DIR"          cd "$DIR"
 }  }
Line 170  update-vim()
Line 170  update-vim()
 {  {
         local DIR TMP_FILE          local DIR TMP_FILE
         DIR=`pwd`;          DIR=`pwd`;
         TMP_FILE=`tempfile -p update_vim-zsh || mktemp /tmp/update_vim-zshXXXXXX || echo /tmp/update_vim-zsh$$`          TMP_FILE=`tempfile -p update_vim || mktemp /tmp/update_vim-XXXXXX || echo /tmp/update_vim-$$`
         echo "Looking for new patches...";          echo "Looking for new patches...";
         wget -O - $URL 2> /dev/null | awk 'BEGIN { FS=">" } {print $2}' | \          wget -O - $URL 2> /dev/null | awk 'BEGIN { FS=">" } {print $2}' | \
                 egrep "$VIM_VER_EGREP" | sed 's/<.*//g;' > $TMP_FILE                  egrep "$VIM_VER_EGREP" | sed 's/<.*//g;' > $TMP_FILE

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

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