diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-08-15 21:41:48 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-08-15 21:41:48 +0000 |
commit | ae5bce1c127136a650ee25c4c78d3d334cc07859 (patch) | |
tree | 992edb0baaa4a6a4156fbfb77d4f6382cd3f5999 /runtime/spell/pl/main.aap | |
parent | 90cfdbe040320952e6b542d0633987f082b0f158 (diff) |
updated for version 7.0130v7.0130
Diffstat (limited to 'runtime/spell/pl/main.aap')
-rw-r--r-- | runtime/spell/pl/main.aap | 66 |
1 files changed, 39 insertions, 27 deletions
diff --git a/runtime/spell/pl/main.aap b/runtime/spell/pl/main.aap index 6916df340c..e33acf8028 100644 --- a/runtime/spell/pl/main.aap +++ b/runtime/spell/pl/main.aap @@ -9,17 +9,17 @@ SPELLDIR = .. FILES = pl_PL.aff pl_PL.dic -all: $(SPELLDIR)/pl.iso-8859-2.spl $(SPELLDIR)/pl.utf-8.spl \ - $(SPELLDIR)/pl.cp1250.spl ../README_pl.txt +all: $SPELLDIR/pl.iso-8859-2.spl $SPELLDIR/pl.utf-8.spl \ + $SPELLDIR/pl.cp1250.spl ../README_pl.txt -$(SPELLDIR)/pl.iso-8859-2.spl : $(VIM) $(FILES) - :sys env LANG=pl_PL.ISO8859-2 $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/pl pl_PL" -c q +$SPELLDIR/pl.iso-8859-2.spl : $VIM $FILES + :sys env LANG=pl_PL.ISO8859-2 $VIM -u NONE -e -c "mkspell! $SPELLDIR/pl pl_PL" -c q -$(SPELLDIR)/pl.utf-8.spl : $(VIM) $(FILES) - :sys env LANG=pl_PL.UTF-8 $(VIM) -u NONE -e -c "mkspell! $(SPELLDIR)/pl pl_PL" -c q +$SPELLDIR/pl.utf-8.spl : $VIM $FILES + :sys env LANG=pl_PL.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/pl pl_PL" -c q -$(SPELLDIR)/pl.cp1250.spl : $(VIM) $(FILES) - :sys $(VIM) -u NONE -e -c "set enc=cp1250" -c "mkspell! $(SPELLDIR)/pl pl_PL" -c q +$SPELLDIR/pl.cp1250.spl : $VIM $FILES + :sys $VIM -u NONE -e -c "set enc=cp1250" -c "mkspell! $SPELLDIR/pl pl_PL" -c q ../README_pl.txt: README_pl_PL.txt :copy $source $target @@ -28,7 +28,7 @@ $(SPELLDIR)/pl.cp1250.spl : $(VIM) $(FILES) # Fetching the files from OpenOffice.org. # #OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries -#:attr {fetch = $(OODIR)/%file%} pl_PL.zip +#:attr {fetch = $OODIR/%file%} pl_PL.zip # # Fetching the files from @@ -43,24 +43,24 @@ pl_PL.aff pl_PL.dic: {buildcheck=} @from time import strftime, gmtime, time @for day in range(20): date = `strftime('%Y%m%d', gmtime(time() - day * 24 * 60 * 60))` - base = alt-myspell-pl-$(date) - fname = $(base).tar.bz2 - :attr {fetch = $(HTTPDIR)/%file%} $(fname) + base = alt-myspell-pl-$date + fname = $base.tar.bz2 + :attr {fetch = $HTTPDIR/%file%} $fname @try: - :fetch $(fname) + :fetch $fname ok = 1 @except: ok = 0 @if ok: @break - :sys bunzip2 -c $(fname) | tar xf - - :move $(base)/* . - :deldir $(base) - :delete $(fname) + :sys bunzip2 -c $fname | tar xf - + :move $base/* . + :deldir $base + :delete $fname @if not os.path.exists('pl_PL.orig.aff'): - :copy pl_PL.aff pl_PL.orig.aff + :copy pl_PL.aff pl_PL.orig.aff @if not os.path.exists('pl_PL.orig.dic'): - :copy pl_PL.dic pl_PL.orig.dic + :copy pl_PL.dic pl_PL.orig.dic @if os.path.exists('pl_PL.diff'): :sys patch <pl_PL.diff @@ -74,17 +74,29 @@ diff: :sys {force} diff -a -C 1 pl_PL.orig.dic pl_PL.dic >>pl_PL.diff -# Check for updated OpenOffice spell files. When there are changes the +# Check for updated spell files. When there are changes the # ".new.aff" and ".new.dic" files are left behind for manual inspection. check: - :assertpkg unzip diff - :fetch pl_PL.zip - :mkdir tmp - :cd tmp + :assertpkg tar bunzip2 diff + @from time import strftime, gmtime, time + @for day in range(20): + date = `strftime('%Y%m%d', gmtime(time() - day * 24 * 60 * 60))` + base = alt-myspell-pl-$date + fname = $base.tar.bz2 + :attr {fetch = $HTTPDIR/%file%} $fname + @try: + :fetch $fname + ok = 1 + @except: + ok = 0 + @if ok: + @break + :sys bunzip2 -c $fname | tar xf - + :cd $base @try: @import stat - :sys $(UNZIP) ../pl_PL.zip + :sys $UNZIP ../pl_PL.zip :sys {force} diff ../pl_PL.orig.aff pl_PL.aff >d @if os.stat('d')[stat.ST_SIZE] > 0: :copy pl_PL.aff ../pl_PL.new.aff @@ -93,8 +105,8 @@ check: :copy pl_PL.dic ../pl_PL.new.dic @finally: :cd .. - :delete {r}{f}{q} tmp - :delete pl_PL.zip + :delete {r}{f}{q} $base + :delete $fname # vim: set sts=4 sw=4 : |