commit 2bc617313e483f71aa3edad3b51fc0afb377e269cd258d5ae4ef9bda2aa4bdbb Author: OBS User unknown Date: Mon Jan 15 23:46:06 2007 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zsh?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_SuSEconfig b/_SuSEconfig new file mode 100644 index 0000000..d0e8192 --- /dev/null +++ b/_SuSEconfig @@ -0,0 +1,28 @@ +#compdef SuSEconfig + +local curcontext="$curcontext" state line +typeset -A opt_args + +if [[ -z "$_SuSEconfig_modules" ]]; then + for i in /sbin/conf.d/SuSEconfig.*; do + case $i in *.rpm*|*.swap|*.bak|*.orig|*~|\#*) continue;; esac + _SuSEconfig_modules=($_SuSEconfig_modules ${i##*/SuSEconfig.}) + done +fi + + +_arguments \ + '--help' \ + '--quick' \ + '--force' \ + '--verbose' \ + '--nonewpackage' \ + '--module:module:->module' && return 0 + +case $state in + module) compadd $_SuSEconfig_modules ;; +esac + +# Usage: SuSEconfig [--quick|--nonewpackage|--force|--verbose] [--module name] + + diff --git a/_hwinfo b/_hwinfo new file mode 100644 index 0000000..4c0e9bb --- /dev/null +++ b/_hwinfo @@ -0,0 +1,79 @@ +#compdef hwinfo + +_arguments \ + '--help[show usage info]' \ + '--version[show libhd version]' \ + '--short[just a short listing]' \ + '--log[write info to logfile]:logfile:_files' \ + '--debug[set debuglevel]:debuglevels:(1 2 3 4 5 6 7 8 9)' \ + '--dump-db[dump hardware data base, 0: external, 1: internal]:dumpdb:(0 1)' \ + '--bios' \ + '--block' \ + '--bluetooth' \ + '--braille' \ + '--bridge' \ + '--camera' \ + '--cdrom' \ + '--chipcard' \ + '--cpu' \ + '--disk' \ + '--dsl' \ + '--dvb' \ + '--floppy' \ + '--framebuffer' \ + '--gfxcard' \ + '--hub' \ + '--ide' \ + '--isapnp' \ + '--isdn' \ + '--joystick' \ + '--keyboard' \ + '--memory' \ + '--modem' \ + '--monitor' \ + '--mouse' \ + '--netcard' \ + '--network' \ + '--partition' \ + '--pci' \ + '--pcmcia' \ + '--pcmcia-ctrl' \ + '--pppoe' \ + '--printer' \ + '--scanner' \ + '--scsi' \ + '--smp' \ + '--sound' \ + '--storage-ctrl' \ + '--sys' \ + '--tape' \ + '--tv' \ + '--usb' \ + '--usb-ctrl' \ + '--vbe' \ + '--wlan' \ + '--zip' \ + '--all' \ + '--reallyall' && return 0 + + +# hwinfo-9.31-1.1 +# +# Usage: hwinfo [options] +# Probe for hardware. +# --short just a short listing +# --log logfile write info to logfile +# --debug level set debuglevel +# --version show libhd version +# --dump-db n dump hardware data base, 0: external, 1: internal +# --hw_item probe for hw_item +# hw_item is one of: +# all, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard, cpu, +# disk, dsl, dvb, floppy, framebuffer, gfxcard, hub, ide, isapnp, isdn, +# joystick, keyboard, memory, modem, monitor, mouse, netcard, network, +# partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer, scanner, scsi, smp, +# sound, storage-ctrl, sys, tape, tv, usb, usb-ctrl, vbe, wlan, zip +# +# Note: debug info is shown only in the log file. (If you specify a +# log file the debug level is implicitly set to a reasonable value.) + diff --git a/_make b/_make new file mode 100644 index 0000000..6df3d0f --- /dev/null +++ b/_make @@ -0,0 +1,58 @@ +#compdef make gmake pmake dmake + +local prev="$words[CURRENT-1]" file expl tmp is_gnu cmdargs useperl + +zstyle -t ":completion:${curcontext}:" use-perl && useperl=1 +_pick_variant -r is_gnu gnu=GNU unix -v -f + +if [[ "$prev" = -[CI] ]]; then + _files -/ +elif [[ "$prev" = -[foW] ]]; then + _files +else + file="$words[(I)-f]" + if (( file )); then + file="$words[file+1]" + elif [[ -e Makefile ]]; then + file=Makefile + elif [[ -e makefile ]]; then + file=makefile + elif [[ $is_gnu = gnu && -e GNUmakefile ]]; then + file=GNUmakefile + else + file='' + fi + + if [[ -n "$file" ]] && _tags targets; then + if [[ $is_gnu = gnu ]] && + zstyle -t ":completion:${curcontext}:targets" call-command; then + if [[ -n $useperl ]]; then + cmdargs=(perl -F: -ane '/^[a-zA-Z0-9][^\/\t=]+:/ && print "$F[0]\n"') + else + cmdargs=(awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}' FS=:) + fi + tmp=( $(_call_program targets "$words[1]" -nsp --no-print-directory -f "$file" .PHONY 2> /dev/null | $cmdargs) ) + elif [[ -n $useperl ]]; then + tmp=( + $(perl -ne '@matches = /^(?:([a-zA-Z0-9]+[^\/\t=\s]+)\s*)+:/ and + print join(" ", @matches); +if (/^\.include\s+\/ || + /^\.include\s+\".*mk\/bsd\.pkg\.(subdir\.)?mk\"/) { + print "fetch fetch-list extract patch configure build install reinstall deinstall package describe checkpatch checksum makesum\n"; + } +' $file) + ) + else + tmp=( + $(awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1} + /^\.include */ || /^\.include *".*mk\/bsd\.pkg\.(subdir\.)?mk"/ { + print "fetch fetch-list extract patch configure build install reinstall deinstall package describe checkpatch checksum makesum" }' \ + FS=: $file) + ) + fi + _wanted targets expl 'make target' compadd -a tmp && return 0 + fi + compstate[parameter]="${PREFIX%%\=*}" + compset -P 1 '*=' + _value "$@" +fi diff --git a/_yast2 b/_yast2 new file mode 100644 index 0000000..903ab40 --- /dev/null +++ b/_yast2 @@ -0,0 +1,30 @@ +#compdef yast2 yast + +local curcontext="$curcontext" state line +typeset -A opt_args + +if [[ -z "$_yast2_modules" ]]; then + for i in $(/sbin/yast2 --list | grep -v "Available.*modules"); do + _yast2_modules=($_yast2_modules $i) + done +fi + +_arguments -s \ + '(--list)-l[list all available modules]' '(-l)--list' \ + '(--help)-h[help]' '(-h)--help'\ + \ + {'(--geometry)-g[default window size (qt only)]','(-g)--geometry'}':geometry:(800x600+0+0)' \ + '(--style)-s[widget style (qt only)]' '(-s)--style' \ + \ + {'(--install)-i[install rpm package]','(-i)--install'}':filename:_files' \ + \ + '--noborder[no window manager border for main window]' '--noborder' \ + '--fullscreen[use full screen]' '--fullscreen' \ + \ + ':module:->module' && return 0 + +case $state in + module) compadd $_yast2_modules; _files -g "*.ycp";; +esac + + diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/zsh-4.2.5-tailsyntax.diff b/zsh-4.2.5-tailsyntax.diff new file mode 100644 index 0000000..cdac3f2 --- /dev/null +++ b/zsh-4.2.5-tailsyntax.diff @@ -0,0 +1,13 @@ +Index: Test/E01options.ztst +=================================================================== +--- Test/E01options.ztst.orig ++++ Test/E01options.ztst +@@ -116,7 +116,7 @@ + >scalar + + # Count the number of directories on the stack. Don't care what they are. +- dircount() { dirs -v | tail -1 | awk '{ print $1 + 1}'; } ++ dircount() { dirs -v | tail -n 1 | awk '{ print $1 + 1}'; } + unsetopt autopushd + cd tmpcd + dircount diff --git a/zsh-4.3.1-91.diff b/zsh-4.3.1-91.diff new file mode 100644 index 0000000..4e27c12 --- /dev/null +++ b/zsh-4.3.1-91.diff @@ -0,0 +1,13 @@ +Index: Doc/Makefile.in +=================================================================== +--- Doc/Makefile.in.orig ++++ Doc/Makefile.in +@@ -40,7 +40,7 @@ INSTALL = @INSTALL@ + MAKEINFO = makeinfo + TEXI2DVI = texi2dvi + DVIPS = dvips +-TEXI2HTML = texi2html --output . --ifinfo --split=chapter ++TEXI2HTML = texi2html --output . --split=chapter + + .SUFFIXES: .yo .1 + diff --git a/zsh-4.3.1.diff b/zsh-4.3.1.diff new file mode 100644 index 0000000..100728f --- /dev/null +++ b/zsh-4.3.1.diff @@ -0,0 +1,700 @@ +Index: Doc/Makefile.in.orig +=================================================================== +--- /dev/null ++++ Doc/Makefile.in.orig +@@ -0,0 +1,351 @@ ++# ++# Makefile for Doc subdirectory ++# ++# Copyright (c) 1995-1997 Richard Coleman ++# All rights reserved. ++# ++# Permission is hereby granted, without written agreement and without ++# license or royalty fees, to use, copy, modify, and distribute this ++# software and to distribute modified versions of this software for any ++# purpose, provided that the above copyright notice and the following ++# two paragraphs appear in all copies of this software. ++# ++# In no event shall Richard Coleman or the Zsh Development Group be liable ++# to any party for direct, indirect, special, incidental, or consequential ++# damages arising out of the use of this software and its documentation, ++# even if Richard Coleman and the Zsh Development Group have been advised of ++# the possibility of such damage. ++# ++# Richard Coleman and the Zsh Development Group specifically disclaim any ++# warranties, including, but not limited to, the implied warranties of ++# merchantability and fitness for a particular purpose. The software ++# provided hereunder is on an "as is" basis, and Richard Coleman and the ++# Zsh Development Group have no obligation to provide maintenance, ++# support, updates, enhancements, or modifications. ++# ++ ++subdir = Doc ++dir_top = .. ++ ++@VERSION_MK@ ++ ++# source/build directories ++VPATH = @srcdir@ ++sdir = @srcdir@ ++sdir_top = @top_srcdir@ ++INSTALL = @INSTALL@ ++ ++@DEFS_MK@ ++ ++MAKEINFO = makeinfo ++TEXI2DVI = texi2dvi ++DVIPS = dvips ++TEXI2HTML = texi2html --output . --ifinfo --split=chapter ++ ++.SUFFIXES: .yo .1 ++ ++# man pages to install ++MAN = zsh.1 zshbuiltins.1 zshcompctl.1 zshcompwid.1 zshcompsys.1 \ ++zshcontrib.1 zshexpn.1 zshmisc.1 zshmodules.1 \ ++zshoptions.1 zshparam.1 zshroadmap.1 zshtcpsys.1 zshzftpsys.1 zshzle.1 \ ++zshall.1 ++ ++# yodl documentation ++ ++YODLDOC = $(MAN) texi ++ ++MODDOCSRC = \ ++Zsh/mod_cap.yo Zsh/mod_clone.yo \ ++Zsh/mod_compctl.yo Zsh/mod_complete.yo Zsh/mod_complist.yo \ ++Zsh/mod_computil.yo \ ++Zsh/mod_datetime.yo Zsh/mod_deltochar.yo \ ++Zsh/mod_example.yo Zsh/mod_files.yo \ ++Zsh/mod_mapfile.yo Zsh/mod_mathfunc.yo Zsh/mod_newuser.yo \ ++Zsh/mod_parameter.yo Zsh/mod_pcre.yo \ ++Zsh/mod_sched.yo Zsh/mod_socket.yo \ ++Zsh/mod_stat.yo Zsh/mod_system.yo Zsh/mod_tcp.yo \ ++Zsh/mod_termcap.yo Zsh/mod_terminfo.yo \ ++Zsh/mod_zftp.yo Zsh/mod_zle.yo Zsh/mod_zleparameter.yo \ ++Zsh/mod_zprof.yo Zsh/mod_zpty.yo Zsh/mod_zselect.yo \ ++Zsh/mod_zutil.yo ++ ++YODLSRC = zmacros.yo zman.yo ztexi.yo Zsh/arith.yo Zsh/builtins.yo \ ++Zsh/compat.yo Zsh/compctl.yo Zsh/compsys.yo Zsh/compwid.yo Zsh/cond.yo \ ++Zsh/contrib.yo Zsh/exec.yo Zsh/expn.yo \ ++Zsh/filelist.yo Zsh/files.yo Zsh/func.yo Zsh/grammar.yo Zsh/manual.yo \ ++Zsh/index.yo Zsh/intro.yo Zsh/invoke.yo Zsh/jobs.yo Zsh/metafaq.yo \ ++Zsh/modules.yo Zsh/modlist.yo Zsh/modmenu.yo Zsh/manmodmenu.yo $(MODDOCSRC) \ ++Zsh/options.yo Zsh/params.yo Zsh/prompt.yo Zsh/redirect.yo Zsh/restricted.yo \ ++Zsh/seealso.yo Zsh/tcpsys.yo Zsh/zftpsys.yo Zsh/zle.yo ++ ++# ========== DEPENDENCIES FOR BUILDING ========== ++ ++all: man texi ../META-FAQ ++.PHONY: all ++ ++everything: all dvi html pdf ++.PHONY: everything ++ ++dvi: zsh.dvi ++.PHONY: dvi ++ ++zsh.dvi: $(sdir)/zsh.texi ++ $(TEXI2DVI) $(sdir)/zsh.texi ++ ++pdf: zsh.pdf ++.PHONY: pdf ++ ++zsh.pdf: $(sdir)/zsh.texi ++ PDFTEX=$(PDFETEX) $(TEXI2DVI) --pdf $(sdir)/zsh.texi ++ ++texi: $(sdir)/zsh.texi ++.PHONY: texi ++ ++$(sdir)/zsh.texi: ++ $(YODL) -o $@ -I$(sdir) -w ztexi.yo version.yo zsh.yo; \ ++ test -f $@ ++ ++info: zsh.info ++.PHONY: info ++ ++zsh.info: $(sdir)/zsh.texi ++ $(MAKEINFO) $(sdir)/zsh.texi ++ ++.yo.1: ++ @case $@ in \ ++ */*) target=$@ ;; \ ++ *) target=$(sdir)/$@ ;; \ ++ esac; \ ++ case '$(YODL)' in :*) touch $$target ;; *) \ ++ echo $(YODL) -o $$target -I$(sdir) -w zman.yo version.yo $< ; \ ++ $(YODL) -I$(sdir) -w zman.yo version.yo $< | \ ++ sed -e '1s/\\-/-/g' -e '/^\.'\''/d' -e 's/\(\\fB\)*'\''/\1\\\&'\''/' > $$target \ ++ ;; esac; \ ++ ++# These targets are no longer made by default, nor ++# distributed with the -doc.tar.gz, since the PDF ++# output is generally better. However, they still work. ++ps: us_ps a4_ps ++.PHONY: ps ++ ++us_ps: zsh_us.ps ++.PHONY: us_ps ++ ++zsh_us.ps: zsh.dvi ++ $(DVIPS) -t letter -o $@ zsh.dvi ++ ++a4_ps: zsh_a4.ps ++.PHONY: a4_ps ++ ++zsh_a4.ps: zsh.dvi ++ $(DVIPS) -t a4 -o $@ zsh.dvi ++ ++html: zsh_toc.html ++.PHONY: html ++ ++zsh_toc.html: $(sdir)/zsh.texi ++ $(TEXI2HTML) $(sdir)/zsh.texi ++ ++zshall.1: zsh.yo ++ @case $@ in \ ++ */*) target=$@ ;; \ ++ *) target=$(sdir)/$@ ;; \ ++ esac; \ ++ case '$(YODL)' in :*) touch $$target ;; *) \ ++ echo $(YODL) -o $$target -I$(sdir) -DZSHALL -w zman.yo version.yo zsh.yo; \ ++ $(YODL) -I$(sdir) -DZSHALL -w zman.yo version.yo zsh.yo | sed -e '1s/\\-/-/g' -e '/^\.'\''/d' > $$target \ ++ ;; esac; \ ++ ++../META-FAQ: META-FAQ.yo Zsh/metafaq.yo ++ case '$(YODL)' in :*) touch $(sdir_top)/META-FAQ ;; *) \ ++ $(YODL) -I$(sdir) META-FAQ.yo | sed -e '/NEXTLINE/N' -e '/DELLINE/d' -e '/^SECTHEAD$$/{N;s/^SECTHEAD.//;h;s/./-/g;H;g;}' -e 's/ *$$//' > $(sdir_top)/META-FAQ \ ++ ;; esac ++ ++$(YODLDOC): version.yo ++ ++$(sdir)/zsh.texi: $(YODLSRC) ++ ++man: $(MAN) ++.PHONY: man ++ ++$(MAN): zmacros.yo zman.yo ++ ++zsh.1 zshall.1: Zsh/intro.yo Zsh/metafaq.yo Zsh/invoke.yo Zsh/files.yo \ ++ Zsh/filelist.yo Zsh/filelist.yo Zsh/seealso.yo ++ ++zshbuiltins.1: Zsh/builtins.yo ++ ++zshcompctl.1: Zsh/compctl.yo ++ ++zshcompwid.1: Zsh/compwid.yo ++ ++zshcompsys.1: Zsh/compsys.yo ++ ++zshcontrib.1: Zsh/contrib.yo ++ ++zshexpn.1: Zsh/expn.yo ++ ++zshmisc.1: Zsh/grammar.yo Zsh/redirect.yo Zsh/exec.yo Zsh/func.yo \ ++ Zsh/jobs.yo Zsh/arith.yo Zsh/cond.yo Zsh/compat.yo \ ++ Zsh/prompt.yo Zsh/restricted.yo ++ ++zshmodules.1: Zsh/modules.yo Zsh/modlist.yo Zsh/modmenu.yo $(MODDOCSRC) ++ ++zshoptions.1: Zsh/options.yo ++ ++zshparam.1: Zsh/params.yo ++ ++zshroadmap.1: Zsh/roadmap.yo ++ ++zshtcpsys.1: Zsh/tcpsys.yo ++ ++zshzftpsys.1: Zsh/zftpsys.yo ++ ++zshzle.1: Zsh/zle.yo ++ ++version.yo: $(sdir_top)/Config/version.mk ++ ( \ ++ echo 'STARTDEF()'; \ ++ echo 'def(version)(0)('$(VERSION)')'; \ ++ echo 'def(date)(0)('$(VERSION_DATE)')'; \ ++ echo 'ENDDEF()#' | tr '#' '\\'; \ ++ ) > $(sdir)/version.yo ++ ++Zsh/modlist.yo: $(MODDOCSRC) ++ ( \ ++ echo "startitem()"; \ ++ for modfile in $(MODDOCSRC); do \ ++ sed -n -e '1{s|^COMMENT(!MOD!\(.*\)$$|item(tt(\1))(|;p;d;}' \ ++ -e '/^!MOD!)$$/q;p' \ ++ < $(sdir)/$$modfile; \ ++ echo ")"; \ ++ done; \ ++ echo "enditem()"; \ ++ echo "includefile(Zsh/modmenu.yo)"; \ ++ set '' $(MODDOCSRC); \ ++ mod1= mod2= mod3=; \ ++ test ".$$2" = . || \ ++ mod2=`sed -n '1{s|^COMMENT(!MOD!||;p;q;}' < $(sdir)/$$2`; \ ++ while test ".$$2" != .; do \ ++ mod3=; \ ++ test ".$$3" = . || \ ++ mod3=`sed -n '1{s|^COMMENT(!MOD!||;p;q;}' < $(sdir)/$$3`; \ ++ echo "texinode(The $$mod2 Module)($${mod3:+The $$mod3 Module})($${mod1:+The $$mod1 Module})(Zsh Modules)"; \ ++ echo "sect(The $$mod2 Module)"; \ ++ echo "includefile($${2})"; \ ++ shift; \ ++ mod1=$$mod2; \ ++ mod2=$$mod3; \ ++ done \ ++ ) > $(sdir)/Zsh/modlist.yo ++ ++Zsh/modmenu.yo: $(MODDOCSRC) ++ ( \ ++ echo "startmenu()"; \ ++ for modfile in $(MODDOCSRC); do \ ++ sed -n '1{s|^COMMENT(!MOD!\(.*\)$$|menu(The \1 Module)|;p;q;}' \ ++ < $(sdir)/$$modfile; \ ++ done; \ ++ echo "endmenu()" \ ++ ) > $(sdir)/Zsh/modmenu.yo ++ ++Zsh/manmodmenu.yo: $(MODDOCSRC) ++ ( \ ++ for modfile in $(MODDOCSRC); do \ ++ sed -n '1{s|^COMMENT(!MOD!\(.*\)$$|menu(The \1 Module)|;p;q;}' \ ++ < $(sdir)/$$modfile; \ ++ done \ ++ ) > $(sdir)/Zsh/manmodmenu.yo ++ ++# ========== DEPENDENCIES FOR INSTALLING ========== ++ ++# install just installs the manual pages ++install: install.man ++.PHONY: install ++ ++# uninstall just unistalls the manual pages ++uninstall: uninstall.man ++.PHONY: uninstall ++ ++# install man pages, creating install directory if necessary ++install.man: man ++ ${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(mandir)/man1 ++ for file in $(MAN); do \ ++ $(INSTALL_DATA) $(sdir)/$$file $(DESTDIR)$(mandir)/man1/`echo $$file | sed 's|zsh|$(tzsh)|'` || exit 1; \ ++ done ++.PHONY: install.man ++ ++# install info pages, creating install directory if necessary ++install.info: texi ++ ${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(infodir) ++ rm -rf infodir ++ mkdir infodir ++ if ( \ ++ sed '/^@setfilename/s|zsh|$(tzsh)|' \ ++ < $(sdir)/zsh.texi > infodir/tzsh.texi && \ ++ (cd infodir && $(MAKEINFO) tzsh.texi) && \ ++ for file in infodir/$(tzsh).info*; do \ ++ $(INSTALL_DATA) $$file $(DESTDIR)$(infodir) || exit 1; \ ++ done \ ++ ); then \ ++ if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \ ++ install-info --dir-file=$(DESTDIR)$(infodir)/dir \ ++ $(DESTDIR)$(infodir)/$(tzsh).info; \ ++ else true; fi; \ ++ rm -rf infodir; \ ++ exit 0; \ ++ else \ ++ rm -rf infodir; \ ++ exit 1; \ ++ fi ++.PHONY: install.info ++ ++# uninstall man pages ++uninstall.man: ++ for file in $(MAN); do \ ++ rm -f $(DESTDIR)$(mandir)/man1/`echo $$file | sed 's|zsh|$(tzsh)|'`; \ ++ done ++.PHONY: uninstall.man ++ ++# uninstall info pages ++uninstall.info: ++ rm -f $(DESTDIR)$(infodir)/$(tzsh).info ++ rm -f $(DESTDIR)$(infodir)/$(tzsh).info-[1-9]* ++.PHONY: uninstall.info ++ ++# install HTML manual ++install.html: html ++ ${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(htmldir) ++ for file in zsh*.html; do \ ++ $(INSTALL_DATA) $$file $(DESTDIR)$(htmldir) || exit 1; \ ++ done ++.PHONY: install.html ++ ++# uninstall HTML manual ++uninstall.html: ++ rm -f $(DESTDIR)$(htmldir)/zsh*.html ++.PHONY: uninstall.html ++ ++# ========== DEPENDENCIES FOR CLEANUP ========== ++ ++clean-here: ++ rm -f *.html *.info* *.dvi *.ps *.pdf ++ rm -f *.aux *.cp *.cps *.fn *.fns *.ky *.log ++ rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs ++ rm -rf infodir ++.PHONY: clean-here ++ ++distclean-here: clean-here ++ rm -f Makefile ++.PHONY: distclean-here ++ ++realclean-here: distclean-here ++ cd $(sdir) && rm -f Zsh/modlist.yo Zsh/modmenu.yo Zsh/manmodmenu.yo ++ cd $(sdir) && rm -f version.yo ../META-FAQ zsh.texi $(MAN) ++.PHONY: realclean-here ++ ++@CLEAN_MK@ ++ ++# ========== DEPENDENCIES FOR MAINTENANCE ========== ++ ++@CONFIG_MK@ +Index: Doc/Makefile.in +=================================================================== +--- Doc/Makefile.in.orig ++++ Doc/Makefile.in +@@ -276,28 +276,11 @@ install.man: man + .PHONY: install.man + + # install info pages, creating install directory if necessary +-install.info: texi ++install.info: info + ${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(infodir) +- rm -rf infodir +- mkdir infodir +- if ( \ +- sed '/^@setfilename/s|zsh|$(tzsh)|' \ +- < $(sdir)/zsh.texi > infodir/tzsh.texi && \ +- (cd infodir && $(MAKEINFO) tzsh.texi) && \ +- for file in infodir/$(tzsh).info*; do \ ++ for file in zsh.info*; do \ + $(INSTALL_DATA) $$file $(DESTDIR)$(infodir) || exit 1; \ +- done \ +- ); then \ +- if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \ +- install-info --dir-file=$(DESTDIR)$(infodir)/dir \ +- $(DESTDIR)$(infodir)/$(tzsh).info; \ +- else true; fi; \ +- rm -rf infodir; \ +- exit 0; \ +- else \ +- rm -rf infodir; \ +- exit 1; \ +- fi ++ done + .PHONY: install.info + + # uninstall man pages +@@ -316,7 +299,7 @@ uninstall.info: + # install HTML manual + install.html: html + ${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(htmldir) +- for file in zsh*.html; do \ ++ for file in zsh/zsh*.html; do \ + $(INSTALL_DATA) $$file $(DESTDIR)$(htmldir) || exit 1; \ + done + .PHONY: install.html +Index: Doc/intro.ms +=================================================================== +--- Doc/intro.ms.orig ++++ Doc/intro.ms +@@ -336,7 +336,7 @@ functions. For example: + >\0\0\0\0\0\0\0ypmatch\0$1\0passwd.byname + >\0} + %\0yp\0pfalstad +-pfalstad:*:3564:35:Paul\0John\0Falstad:/u/pfalstad:/usr/princeton/bin/zsh ++pfalstad:*:3564:35:Paul\0John\0Falstad:/u/pfalstad:/usr/bin/zsh + .De + This function looks up a user in the NIS password map. + The \fC$1\fP expands to the first argument to \fCyp\fP. +@@ -356,7 +356,7 @@ parsed, not when the function is execute + .Ds + %\0alias\0ypmatch=echo + %\0yp\0pfalstad +-pfalstad:*:3564:35:Paul\0John\0Falstad:/u/pfalstad:/usr/princeton/bin/zsh ++pfalstad:*:3564:35:Paul\0John\0Falstad:/u/pfalstad:/usr/bin/zsh + .De + Since the alias was defined after the function was parsed, it has + no effect on the function's execution. +@@ -379,9 +379,9 @@ We can make the function take multiple a + >\0\0\0\0\0\0\0done + >\0} + %\0yp\0pfalstad\0subbarao\0sukthnkr +-pfalstad:*:3564:35:Paul\0John\0Falstad:/u/pfalstad:/usr/princeton/bin/zsh +-subbarao:*:3338:35:Kartik\0Subbarao:/u/subbarao:/usr/princeton/bin/zsh +-sukthnkr:*:1267:35:Rahul\0Sukthankar:/u/sukthnkr:/usr/princeton/bin/tcsh ++pfalstad:*:3564:35:Paul\0John\0Falstad:/u/pfalstad:/usr/bin/zsh ++subbarao:*:3338:35:Kartik\0Subbarao:/u/subbarao:/usr/bin/zsh ++sukthnkr:*:1267:35:Rahul\0Sukthankar:/u/sukthnkr:/usr/bin/tcsh + .De + The \fCfor i\fP loops through each of the function's arguments, + setting \fCi\fP equal to each of them in turn. +@@ -396,8 +396,8 @@ if no arguments are given: + %\0yp + usage:\0yp\0name\0... + %\0yp\0pfalstad\0sukthnkr +-pfalstad:*:3564:35:Paul\0John\0Falstad:/u/pfalstad:/usr/princeton/bin/zsh +-sukthnkr:*:1267:35:Rahul\0Sukthankar:/u/sukthnkr:/usr/princeton/bin/tcsh ++pfalstad:*:3564:35:Paul\0John\0Falstad:/u/pfalstad:/usr/bin/zsh ++sukthnkr:*:1267:35:Rahul\0Sukthankar:/u/sukthnkr:/usr/bin/tcsh + .De + \fC$#\fP is the number of arguments supplied to the function. + If it is equal to zero, we print a usage message; otherwise, +@@ -516,16 +516,16 @@ separate process is not created.) + %\0ed\0/tmp/funs/yp + 25 + i +-#!\0/usr/local/bin/zsh ++#!\0/usr/bin/zsh + . + w + 42 + q + %\0>!$ ++%\0/usr/bin/!:0\0!-2*:s/foo/bar/\0>>!$ + .De + If you don't want to use this, you can turn it off + by typing \fCsetopt nobanghist\fP. If you are afraid of accidentally +@@ -1191,9 +1191,9 @@ bar + In this example, no event designator was used, which tells \fBzsh\fP + to use the previous command. A \fC$\fP specifies the last argument + .Ds +-%\0mkdir\0/usr/local/lib/emacs/site-lisp/calc ++%\0mkdir\0/usr/share/emacs/site-lisp/calc + %\0cd\0!:$ +-cd\0/usr/local/lib/emacs/site-lisp/calc ++cd\0/usr/share/emacs/site-lisp/calc + .De + If you use more words of the same command, only the first \fC!\fP + needs an event designator. +@@ -1474,7 +1474,7 @@ the \fCvared\fP command: + .Ds + %\0vared\0PATH + >\0/u/pfalstad/scr:/u/pfalstad/bin/sun4:/u/maruchck/scr:/u/subbarao/bin:/u/maruc +-hck/bin:/u/subbarao/scripts:/usr/princeton/bin:/usr/ucb:/usr/bin:/bin:/usr/host ++hck/bin:/u/subbarao/scripts:/usr/princeton/bin:/usr/bin/X11:/usr/bin:/bin:/usr/host + s:/usr/princeton/bin/X11:/./usr/lang:/./usr/etc:/./etc + .De + You can now edit the path. When you press return, the contents +@@ -2267,9 +2267,9 @@ changes \fBpath\fP as well, and vice ver + %\0PATH=/bin:/usr/bin:/tmp:. + %\0echo\0$path + /bin\0/usr/bin\0/tmp\0. +-%\0path=(\0/usr/bin\0.\0/usr/local/bin\0/usr/ucb\0) ++%\0path=(\0/usr/bin\0.\0/usr/local/bin\0/usr/bin/X11\0) + %\0echo\0$PATH +-/usr/bin:.:/usr/local/bin:/usr/ucb ++/usr/bin:.:/usr/local/bin:/usr/bin/X11 + .De + The same is true of \fBCDPATH\fP and \fBcdpath\fP: + .Ds +Index: Functions/Misc/checkmail +=================================================================== +--- Functions/Misc/checkmail.orig ++++ Functions/Misc/checkmail +@@ -1,4 +1,4 @@ +-#! /usr/local/bin/zsh ++#! /usr/bin/zsh + # + # This autoloadable function checks the folders specified as arguments + # for new mails. The arguments are interpreted in exactly the same way +Index: Functions/Misc/run-help +=================================================================== +--- Functions/Misc/run-help.orig ++++ Functions/Misc/run-help +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/zsh ++#!/usr/bin/zsh + # + # Figure out where to get the best help, and get it. + # +@@ -11,24 +11,26 @@ + emulate -R zsh + setopt localoptions + ++: ${ZHELPDIR:=/usr/share/zsh/help} ++ + [[ $1 == "." ]] && 1="dot" + [[ $1 == ":" ]] && 1="colon" + + # Check whether Util/helpfiles has been used to generate zsh help + if [[ $# == 0 || $1 == "-l" ]] + then +- if [[ -n "${HELPDIR:-}" && -d $HELPDIR ]] ++ if [[ -n "${ZHELPDIR:-}" && -d $ZHELPDIR ]] + then + echo "Here is a list of topics for which special help is available:" + echo "" +- print -rc $HELPDIR/*(:t) ++ print -rc $ZHELPDIR/*(:t) + else + echo "There is no list of special help topics available at this time." + fi + return 0 +-elif [[ -n "${HELPDIR:-}" && -r $HELPDIR/$1 && $1 != compctl ]] ++elif [[ -n "${ZHELPDIR:-}" && -r $ZHELPDIR/$1 && $1 != compctl ]] + then +- ${=PAGER:-more} $HELPDIR/$1 ++ ${=PAGER:-less -M} +/^$1 $ZHELPDIR/$1 + return $? + fi + +@@ -58,7 +60,7 @@ do + case ${what[(w)1]} in + (comp*) man zshcompsys;; + (zf*) man zshftpsys;; +- (*) builtin functions ${what[(w)1]} | ${=PAGER:-more};; ++ (*) builtin functions ${what[(w)1]} | ${=PAGER:-less -M};; + esac;; + (*( is a * builtin)) + case ${what[(w)1]} in +Index: Misc/globtests +=================================================================== +--- Misc/globtests.orig ++++ Misc/globtests +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/zsh -f ++#!/usr/bin/zsh -f + + setopt extendedglob badpattern + unsetopt kshglob +Index: Misc/globtests.ksh +=================================================================== +--- Misc/globtests.ksh.orig ++++ Misc/globtests.ksh +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/zsh -f ++#!/usr/bin/zsh -f + + setopt kshglob extendedglob + +Index: Misc/lete2ctl +=================================================================== +--- Misc/lete2ctl.orig ++++ Misc/lete2ctl +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl -w ++#!/usr/bin/perl -w + # + # ``Wee have also Shelles, thee Lyke of whych you knowe not, wherein + # thee User may with thee merest Presse of thee Tabbe-Keye expande +Index: Src/Makefile.in +=================================================================== +--- Src/Makefile.in.orig ++++ Src/Makefile.in +@@ -148,14 +148,7 @@ uninstall.bin: uninstall.bin-here + # install binary, creating install directory if necessary + install.bin-here: zsh$(EXEEXT) $(INSTLIB) + ${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(bindir) +- $(INSTALL_PROGRAM) $(STRIPFLAGS) zsh$(EXEEXT) $(DESTDIR)$(bindir)/$(tzsh)-$(VERSION)$(EXEEXT) +- if test -f $(DESTDIR)$(bindir)/$(tzsh)$(EXEEXT); then \ +- rm -f $(DESTDIR)$(bindir)/$(tzsh).old; \ +- $(LN) $(DESTDIR)$(bindir)/$(tzsh)$(EXEEXT) $(DESTDIR)$(bindir)/$(tzsh).old; \ +- else :; fi +- rm -f $(DESTDIR)$(bindir)/$(tzsh).new +- $(LN) $(DESTDIR)$(bindir)/$(tzsh)-$(VERSION)$(EXEEXT) $(DESTDIR)$(bindir)/$(tzsh).new +- mv $(DESTDIR)$(bindir)/$(tzsh).new $(DESTDIR)$(bindir)/$(tzsh)$(EXEEXT) ++ $(INSTALL_PROGRAM) $(STRIPFLAGS) zsh $(DESTDIR)$(bindir)/zsh + .PHONY: install.bin-here + + install.bin-N: +Index: Src/Modules/terminfo.c +=================================================================== +--- Src/Modules/terminfo.c.orig ++++ Src/Modules/terminfo.c +@@ -28,6 +28,7 @@ + */ + + #define USES_TERM_H 1 ++#include + #include "terminfo.mdh" + + #if defined(HAVE_TIGETFLAG) && defined(HAVE_CURSES_H) +Index: Src/init.c +=================================================================== +--- Src/init.c.orig ++++ Src/init.c +@@ -717,7 +717,7 @@ setupvals(void) + path = (char **) zalloc(sizeof(*path) * 5); + path[0] = ztrdup("/bin"); + path[1] = ztrdup("/usr/bin"); +- path[2] = ztrdup("/usr/ucb"); ++ path[2] = ztrdup("/usr/bin/X11"); + path[3] = ztrdup("/usr/local/bin"); + path[4] = NULL; + +Index: Test/ztst.zsh +=================================================================== +--- Test/ztst.zsh.orig ++++ Test/ztst.zsh +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/zsh -f ++#!/usr/bin/zsh -f + # The line above is just for convenience. Normally tests will be run using + # a specified version of zsh. With dynamic loading, any required libraries + # must already have been installed in that case. +Index: Util/check_exports +=================================================================== +--- Util/check_exports.orig ++++ Util/check_exports +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl -w ++#!/usr/bin/perl -w + + # Attempt to scan executable, libraries, and .export files after + # a zsh build to see if all necessary symbols appear in the .export file +Index: Util/helpfiles +=================================================================== +--- Util/helpfiles.orig ++++ Util/helpfiles +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl -- -*-perl-*- ++#!/usr/bin/perl -- -*-perl-*- + + # helpfiles: make help files for Z-shell builtins from the manual entries. + +Index: Util/reporter +=================================================================== +--- Util/reporter.orig ++++ Util/reporter +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/zsh ++#!/usr/bin/zsh + # + # NAME: + # reporter diff --git a/zsh-4.3.2-doc.tar.bz2 b/zsh-4.3.2-doc.tar.bz2 new file mode 100644 index 0000000..fd638c9 --- /dev/null +++ b/zsh-4.3.2-doc.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8d21d1afa4ad3e59d8ccf835eb378ca39b6c894400ad8cd67f4bce796d0c14f +size 2207375 diff --git a/zsh-4.3.2.tar.bz2 b/zsh-4.3.2.tar.bz2 new file mode 100644 index 0000000..82d435a --- /dev/null +++ b/zsh-4.3.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca0e27cc99115294be8323afa50027da56ad937fa2d99cabcd2a26039181dfd3 +size 2263544 diff --git a/zsh.changes b/zsh.changes new file mode 100644 index 0000000..3b5f1d8 --- /dev/null +++ b/zsh.changes @@ -0,0 +1,357 @@ +------------------------------------------------------------------- +Fri Jul 14 14:58:53 CEST 2006 - mskibbe@suse.de + +- merged in patches from poeml (mruecker@suse.de) +- rediffed patches for -p0 (mruecker@suse.de) +- update to version 4.3.2 which (mruecker@suse.de) + o fix two minor build problems + o contains initial support for multibyte characters in the shell's line editor +- only require libcap for build on 10.0 and older (mruecker@suse.de) + +------------------------------------------------------------------- +Wed Jan 25 21:43:48 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Sat Jan 14 21:04:55 CET 2006 - schwab@suse.de + +- Don't strip binaries. + +------------------------------------------------------------------- +Mon Dec 5 17:40:53 CET 2005 - hvogel@suse.de + +- clean up specfile +- document profiling builds + +------------------------------------------------------------------- +Mon Dec 5 16:27:20 CET 2005 - mmj@suse.de + +- Fix typo + +------------------------------------------------------------------- +Mon Dec 5 14:33:02 CET 2005 - mmj@suse.de + +- Update to 4.2.6 + +------------------------------------------------------------------- +Wed Apr 6 14:15:06 CEST 2005 - mmj@suse.de + +- Update to 4.2.5 + +------------------------------------------------------------------- +Tue Mar 15 18:22:19 CET 2005 - mmj@suse.de + +- Fix Makefile completion by using the _make from an older zsh + version [#72875] + +------------------------------------------------------------------- +Thu Feb 17 19:41:35 CET 2005 - poeml@suse.de + +- update yast2 completion to also complete *.ycp files + +------------------------------------------------------------------- +Thu Feb 3 13:28:24 CET 2005 - mmj@suse.de + +- Update to 4.2.4 + +------------------------------------------------------------------- +Mon Jan 31 15:40:16 CET 2005 - ro@suse.de + +- adapt to texi2html changes + +------------------------------------------------------------------- +Wed Jan 26 13:45:16 CET 2005 - uli@suse.de + +- run configure with --with-tcsetpgrp as suggested by the fail log + (fixes s390*) + +------------------------------------------------------------------- +Sat Jan 15 10:06:14 CET 2005 - mmj@suse.de + +- Update to zsh-4.2.3 which is a bugfix release not really affecting + us, but better keep up to date + +------------------------------------------------------------------- +Wed Jan 12 15:57:01 CET 2005 - mmj@suse.de + +- Update to zsh-4.2.2 + +------------------------------------------------------------------- +Mon Dec 20 13:48:49 CET 2004 - poeml@suse.de + +- fix yast2 completion to work without /sbin in PATH [#49374] +- fix yast2 and SuSEconfig completion to not show files from + working directory +- update hwinfo completion + +------------------------------------------------------------------- +Fri Aug 13 13:53:30 CEST 2004 - mmj@suse.de + +- Update to zsh-4.2.1 + +------------------------------------------------------------------- +Wed Jul 28 01:40:02 CEST 2004 - ro@suse.de + +- fix build of helpfiles after groff update + +------------------------------------------------------------------- +Fri Mar 19 13:22:58 CET 2004 - mmj@suse.de + +- Update to zsh-4.2.0 final release + +------------------------------------------------------------------- +Mon Mar 8 12:54:07 CET 2004 - mmj@suse.de + +- Update to zsh-4.2.0-pre-3 + +------------------------------------------------------------------- +Thu Feb 26 23:29:26 CET 2004 - mmj@suse.de + +- Update to zsh-4.2.0-pre-1 + +------------------------------------------------------------------- +Fri Jan 16 12:14:53 CET 2004 - mmj@suse.de + +- Use -fprofile-arcs when linking and -fno-strict-aliasing for + compiling. +- Fix tail syntax + +------------------------------------------------------------------- +Sat Oct 18 11:06:50 CEST 2003 - mmj@suse.de + +- Fix neededforbuild + +------------------------------------------------------------------- +Thu Oct 16 16:57:31 CEST 2003 - mmj@suse.de + +- Don't build as root +- Cleanup specfile + +------------------------------------------------------------------- +Tue Oct 14 22:31:53 CEST 2003 - jh@suse.de + +- Fix profiling lockup. (we can not profile dl_closed modules yet) + +------------------------------------------------------------------- +Thu Jun 19 14:40:56 CEST 2003 - mmj@suse.de + +- Update to 4.1.1 +- Enable profiling + +------------------------------------------------------------------- +Thu May 8 19:03:39 CEST 2003 - mmj@suse.de + +- And do it even better, thanks Andreas Schwab. + +------------------------------------------------------------------- +Thu May 8 16:13:31 CEST 2003 - mmj@suse.de + +- Use a better way of unaliasing 'which'. Thanks Ingo Lameter. + +------------------------------------------------------------------- +Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de + +- fix install_info --delete call and move from preun to postun + +------------------------------------------------------------------- +Mon Apr 7 15:44:40 CEST 2003 - mmj@suse.de + +- Only delete info entries when removing last version. + +------------------------------------------------------------------- +Fri Feb 7 13:26:51 CET 2003 - mmj@suse.de + +- Use %install_info macro +- Clean up build root + +------------------------------------------------------------------- +Thu Jan 9 12:56:34 CET 2003 - mmj@suse.de + +- Set the important option 'nopromptcr' to not screw output. + +------------------------------------------------------------------- +Mon Sep 16 10:06:31 CEST 2002 - mmj@suse.de + +- Use BuildRoot + +------------------------------------------------------------------- +Fri Aug 16 12:16:52 CEST 2002 - mmj@suse.de + +- Move zsh binary to /bin [#17758] +- Use proper libdir + +------------------------------------------------------------------- +Thu Aug 15 11:30:34 CEST 2002 - poeml@suse.de + +- update completion for _yast{,2} and add one for _hwinfo + +------------------------------------------------------------------- +Wed Aug 14 23:34:51 CEST 2002 - mmj@suse.de + +- Update to 4.0.6 which was released this fast b/c a termcap / + terminfo fix was forgotten together with a fix for _mount. + +------------------------------------------------------------------- +Mon Aug 12 03:01:12 CEST 2002 - mmj@suse.de + +- Update to 4.0.5 which includes a lot more completion, modules and + bugfixes. + +------------------------------------------------------------------- +Tue Jun 4 09:33:36 CEST 2002 - mmj@suse.de + +- Added the html documentation from the ZSH team. + +------------------------------------------------------------------- +Tue Apr 16 12:28:17 CEST 2002 - mmj@suse.de + +- Fix to own %{_defaultdocdir}/zsh + +------------------------------------------------------------------- +Mon Mar 11 12:11:31 MET 2002 - mmj@suse.de + +- Comment out a completion that a lot of people find broken + +------------------------------------------------------------------- +Fri Feb 22 12:29:08 MET 2002 - mmj@suse.de + +- Added yast2 and SuSEconfig completion from poeml@ + +------------------------------------------------------------------- +Wed Feb 13 14:16:46 CET 2002 - stepan@suse.de + +- remove .orig and .rej files from patch set. + +------------------------------------------------------------------- +Wed Jan 30 16:07:25 CET 2002 - mmj@suse.de + +- Moved /etc/zshrc and /etc/zshenv to this package. This is ok b/c + it is only specific zsh options. + +------------------------------------------------------------------- +Thu Dec 13 11:34:05 CET 2001 - mmj@suse.de + +- Fix broken symlink from help/man1 -> ../Doc + +------------------------------------------------------------------- +Sat Oct 27 16:43:54 CEST 2001 - mmj@suse.de + +- Update to 4.0.4 + +------------------------------------------------------------------- +Thu Oct 25 13:24:58 CEST 2001 - mmj@suse.de + +- Update to 4.0.3 + +------------------------------------------------------------------- +Tue Jun 26 19:58:05 CEST 2001 - mmj@suse.de + +- Update to the newly released 4.0.2 + +------------------------------------------------------------------- +Sat Jun 2 02:30:39 CEST 2001 - mmj@suse.de + +- Updated to the new stable release, zsh-4.0.1 +- Fixed build prob on beta-i386 and beta-ia64 + +------------------------------------------------------------------- +Tue May 8 19:14:24 CEST 2001 - mfabian@suse.de + +- bzip2 sources + +------------------------------------------------------------------- +Sun Apr 15 22:02:45 CEST 2001 - schwab@suse.de + +- Fix missing declarations. + +------------------------------------------------------------------- +Fri Apr 13 01:13:46 CEST 2001 - mmj@suse.de + +- Updated to 4.0.1-pre-3 + +------------------------------------------------------------------- +Wed Mar 14 18:31:11 CET 2001 - mmj@suse.de + +- Updated to 4.0.1-pre-2 + +------------------------------------------------------------------- +Sun Feb 18 19:46:07 CET 2001 - mmj@suse.de + +- Updated to 4.0.1-pre-1 + +------------------------------------------------------------------- +Fri Dec 15 13:19:42 CET 2000 - werner@suse.de + +- Update to 3.1.9-dev-8 + +------------------------------------------------------------------- +Fri Oct 6 18:01:00 CEST 2000 - kukuk@suse.de + +- Change group tag + +------------------------------------------------------------------- +Fri May 12 17:40:19 CEST 2000 - schwab@suse.de + +- Update config files. +- Move docs to %{_defaultdocdir}. + +------------------------------------------------------------------- +Thu Jan 27 17:05:36 CET 2000 - werner@suse.de + +- New zsh version 3.1.6-dev-16 +- Install html and info documentation +- Enable run-help help library +- Fix paths of perl and zsh scripts +- Enable command line history +- Enable command line complementation/correction + +------------------------------------------------------------------- +Mon Dec 6 13:06:10 CET 1999 - schwab@suse.de + +- Fix errors from makeinfo + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Tue Nov 17 14:22:20 MET 1998 - bs@suse.de + +- removed symlink /etc/zshrc -> profile (aaa_base contains a real zshrc now) + +---------------------------------------------------------------------------- +Fri Oct 10 15:23:30 MEST 1997 - florian@suse.de + + +- update to version 3.0.5 + + +---------------------------------------------------------------------------- +Mon Jun 23 23:04:57 MEST 1997 - florian@suse.de + + +- update to version 3.0.4 + + + +---------------------------------------------------------------------------- +Wed Jan 22 22:24:11 CET 1997 - florian@suse.de + + +- update to version 3.0.2 + + +---------------------------------------------------------------------------- +Sat Nov 2 17:35:11 CET 1996 - florian@suse.de + + +- update to version 3.0.1 + +- added more documentation in binary package + +---------------------------------------------------------------------- +Sun Aug 25 19:28:50 MET DST 1996 - florian@suse.de + +new version 3.0.0 diff --git a/zsh.spec b/zsh.spec new file mode 100644 index 0000000..799e3f0 --- /dev/null +++ b/zsh.spec @@ -0,0 +1,299 @@ +# +# spec file for package zsh (Version 4.3.2) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: zsh +Version: 4.3.2 +Release: 1 +License: Other License(s), see package +Group: System/Shells +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if %suse_version > 1000 +BuildRequires: libcap-devel +%else +BuildRequires: libcap +%endif +BuildRequires: yodl +PreReq: %{install_info_prereq} +URL: http://www.zsh.org +Source0: %{name}-%{version}.tar.bz2 +Source1: zshrc +Source2: zshenv +Source3: _yast2 +Source4: _SuSEconfig +Source5: _hwinfo +Source6: _make +# unused atm. we build the docs with yodl on our own. +Source20: %{name}-%{version}-doc.tar.bz2 +Patch0: %{name}-4.3.1.diff +Patch1: %{name}-4.2.5-tailsyntax.diff +Patch2: %{name}-4.3.1-91.diff +Summary: Shell with comprehensive completion + +%description +Zsh is a UNIX command interpreter (shell) that resembles the Korn shell +(ksh). It is not completely compatible. It includes many enhancements, +notably in the command-line editor, options for customizing its +behavior, file name globbing, features to make C-shell (csh) users feel +at home, and extra features drawn from tcsh (another `custom' shell). +Zsh is well known for its command line completion. + + + +Authors: +-------- + Paul Falstad + +%prep +%setup +%patch0 +%patch1 +%patch2 + +%build +export CC="gcc" CFLAGS="%{optflags} -pipe -fno-strict-aliasing" +# readd the site-* dir. +%configure \ + --enable-site-scriptdir=%{_datadir}/%{name}/site/scripts/ \ + --enable-site-fndir=%{_datadir}/%{name}/site/scripts/ \ + --enable-maildir-support \ + --with-tcsetpgrp \ + --enable-zsh-debug \ + --enable-cap \ + --enable-multibyte +# compiling with profiling data is default. +%if %do_profiling +# compile with profiling data writing enabled +make VERSION="%{version}" CFLAGS="$CFLAGS "%cflags_profile_generate \ + DLCFLAGS="-fPIC -fno-profile-arcs" LDFLAGS="-fprofile-arcs" +# this is needed to create the profiling data files *.gcda +make check +make clean +# compile with profiling data reading enabled and writing disabled +make VERSION="%{version}" CFLAGS="$CFLAGS "%cflags_profile_feedback \ + DLCFLAGS="-fPIC -fno-branch-probabilities" LDFLAGS="-fprofile-arcs" +make check +make clean +%else +make VERSION="%{version}" +%endif +# make html documentation +make -C Doc all zsh.info zsh_toc.html VERSION="%{version}" +# make help text files +mkdir -p Help +pushd Help/ +troff -Tlatin1 -t -mandoc ../Doc/zshbuiltins.1 | \ + grotty -cbou | \ + sed -e 's/±/{+|-}/' | \ + ../Util/helpfiles +popd +# generate intro.txt +groff Doc/intro.ms > intro.txt +# better name for html documentation +%{__mkdir} Doc/htmldoc/ +%{__mv} Doc/*.html Doc/htmldoc +%{__ln_s} zsh.html Doc/htmldoc/index.html +# remove some unwanted files in Etc/ +%{__rm} -f Etc/Makefile* Etc/*.yo + +%install + +%makeinstall install.info VERSION="%{version}" +# install SUSE configuration +%{__install} -m 0755 -Dd %{buildroot}/{etc,bin} +%{__install} -m 0644 %{S:1} %{S:2} %{buildroot}/etc +%{__install} -m 0644 %{S:3} %{S:4} %{S:5} %{S:6} %{buildroot}%{_datadir}/%{name}/%version/functions +# install help files +%{__install} -m 0755 -Dd %{buildroot}%{_datadir}/%{name}/help +%{__install} -m 0644 Help/* %{buildroot}%{_datadir}/%{name}/help/ +# link zsh binary +%{__mv} %{buildroot}%{_bindir}/zsh %{buildroot}/bin/zsh +%{__ln_s} -f ../../bin/zsh %{buildroot}/usr/bin/zsh + +%clean +%{__rm} -rf %{buildroot} + +%post +%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz + +%postun +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz + +%files +%defattr(-,root,root) +%doc Etc/* intro.txt Misc/compctl-examples Doc/htmldoc +%config(noreplace) /etc/zshrc +%config(noreplace) /etc/zshenv +%{_bindir}/zsh +/bin/zsh +%{_libdir}/zsh/ +%{_datadir}/zsh/ +%{_infodir}/zsh.info*.gz +%{_mandir}/man1/zsh*.1.gz + +%changelog -n zsh +* Fri Jul 14 2006 - mskibbe@suse.de +- merged in patches from poeml (mruecker@suse.de) +- rediffed patches for -p0 (mruecker@suse.de) +- update to version 4.3.2 which (mruecker@suse.de) + o fix two minor build problems + o contains initial support for multibyte characters in the shell's line editor +- only require libcap for build on 10.0 and older (mruecker@suse.de) +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Sat Jan 14 2006 - schwab@suse.de +- Don't strip binaries. +* Mon Dec 05 2005 - hvogel@suse.de +- clean up specfile +- document profiling builds +* Mon Dec 05 2005 - mmj@suse.de +- Fix typo +* Mon Dec 05 2005 - mmj@suse.de +- Update to 4.2.6 +* Wed Apr 06 2005 - mmj@suse.de +- Update to 4.2.5 +* Tue Mar 15 2005 - mmj@suse.de +- Fix Makefile completion by using the _make from an older zsh + version [#72875] +* Thu Feb 17 2005 - poeml@suse.de +- update yast2 completion to also complete *.ycp files +* Thu Feb 03 2005 - mmj@suse.de +- Update to 4.2.4 +* Mon Jan 31 2005 - ro@suse.de +- adapt to texi2html changes +* Wed Jan 26 2005 - uli@suse.de +- run configure with --with-tcsetpgrp as suggested by the fail log + (fixes s390*) +* Sat Jan 15 2005 - mmj@suse.de +- Update to zsh-4.2.3 which is a bugfix release not really affecting + us, but better keep up to date +* Wed Jan 12 2005 - mmj@suse.de +- Update to zsh-4.2.2 +* Mon Dec 20 2004 - poeml@suse.de +- fix yast2 completion to work without /sbin in PATH [#49374] +- fix yast2 and SuSEconfig completion to not show files from + working directory +- update hwinfo completion +* Fri Aug 13 2004 - mmj@suse.de +- Update to zsh-4.2.1 +* Wed Jul 28 2004 - ro@suse.de +- fix build of helpfiles after groff update +* Fri Mar 19 2004 - mmj@suse.de +- Update to zsh-4.2.0 final release +* Mon Mar 08 2004 - mmj@suse.de +- Update to zsh-4.2.0-pre-3 +* Thu Feb 26 2004 - mmj@suse.de +- Update to zsh-4.2.0-pre-1 +* Fri Jan 16 2004 - mmj@suse.de +- Use -fprofile-arcs when linking and -fno-strict-aliasing for + compiling. +- Fix tail syntax +* Sat Oct 18 2003 - mmj@suse.de +- Fix neededforbuild +* Thu Oct 16 2003 - mmj@suse.de +- Don't build as root +- Cleanup specfile +* Tue Oct 14 2003 - jh@suse.de +- Fix profiling lockup. (we can not profile dl_closed modules yet) +* Thu Jun 19 2003 - mmj@suse.de +- Update to 4.1.1 +- Enable profiling +* Thu May 08 2003 - mmj@suse.de +- And do it even better, thanks Andreas Schwab. +* Thu May 08 2003 - mmj@suse.de +- Use a better way of unaliasing 'which'. Thanks Ingo Lameter. +* Thu Apr 24 2003 - ro@suse.de +- fix install_info --delete call and move from preun to postun +* Mon Apr 07 2003 - mmj@suse.de +- Only delete info entries when removing last version. +* Fri Feb 07 2003 - mmj@suse.de +- Use %%install_info macro +- Clean up build root +* Thu Jan 09 2003 - mmj@suse.de +- Set the important option 'nopromptcr' to not screw output. +* Mon Sep 16 2002 - mmj@suse.de +- Use BuildRoot +* Fri Aug 16 2002 - mmj@suse.de +- Move zsh binary to /bin [#17758] +- Use proper libdir +* Thu Aug 15 2002 - poeml@suse.de +- update completion for _yast{,2} and add one for _hwinfo +* Wed Aug 14 2002 - mmj@suse.de +- Update to 4.0.6 which was released this fast b/c a termcap / + terminfo fix was forgotten together with a fix for _mount. +* Mon Aug 12 2002 - mmj@suse.de +- Update to 4.0.5 which includes a lot more completion, modules and + bugfixes. +* Tue Jun 04 2002 - mmj@suse.de +- Added the html documentation from the ZSH team. +* Tue Apr 16 2002 - mmj@suse.de +- Fix to own %%{_defaultdocdir}/zsh +* Mon Mar 11 2002 - mmj@suse.de +- Comment out a completion that a lot of people find broken +* Fri Feb 22 2002 - mmj@suse.de +- Added yast2 and SuSEconfig completion from poeml@ +* Wed Feb 13 2002 - stepan@suse.de +- remove .orig and .rej files from patch set. +* Wed Jan 30 2002 - mmj@suse.de +- Moved /etc/zshrc and /etc/zshenv to this package. This is ok b/c + it is only specific zsh options. +* Thu Dec 13 2001 - mmj@suse.de +- Fix broken symlink from help/man1 -> ../Doc +* Sat Oct 27 2001 - mmj@suse.de +- Update to 4.0.4 +* Thu Oct 25 2001 - mmj@suse.de +- Update to 4.0.3 +* Tue Jun 26 2001 - mmj@suse.de +- Update to the newly released 4.0.2 +* Sat Jun 02 2001 - mmj@suse.de +- Updated to the new stable release, zsh-4.0.1 +- Fixed build prob on beta-i386 and beta-ia64 +* Tue May 08 2001 - mfabian@suse.de +- bzip2 sources +* Sun Apr 15 2001 - schwab@suse.de +- Fix missing declarations. +* Fri Apr 13 2001 - mmj@suse.de +- Updated to 4.0.1-pre-3 +* Wed Mar 14 2001 - mmj@suse.de +- Updated to 4.0.1-pre-2 +* Sun Feb 18 2001 - mmj@suse.de +- Updated to 4.0.1-pre-1 +* Fri Dec 15 2000 - werner@suse.de +- Update to 3.1.9-dev-8 +* Fri Oct 06 2000 - kukuk@suse.de +- Change group tag +* Fri May 12 2000 - schwab@suse.de +- Update config files. +- Move docs to %%{_defaultdocdir}. +* Thu Jan 27 2000 - werner@suse.de +- New zsh version 3.1.6-dev-16 +- Install html and info documentation +- Enable run-help help library +- Fix paths of perl and zsh scripts +- Enable command line history +- Enable command line complementation/correction +* Mon Dec 06 1999 - schwab@suse.de +- Fix errors from makeinfo +* Mon Sep 13 1999 - bs@suse.de +- ran old prepare_spec on spec file to switch to new prepare_spec. +* Tue Nov 17 1998 - bs@suse.de +- removed symlink /etc/zshrc -> profile (aaa_base contains a real zshrc now) +* Fri Oct 10 1997 - florian@suse.de +- update to version 3.0.5 +* Mon Jun 23 1997 - florian@suse.de +- update to version 3.0.4 +* Wed Jan 22 1997 - florian@suse.de +- update to version 3.0.2 +* Thu Jan 02 1997 - florian@suse.de +- update to version 3.0.1 +- added more documentation in binary package +* Thu Jan 02 1997 - florian@suse.de + new version 3.0.0 diff --git a/zshenv b/zshenv new file mode 100644 index 0000000..133d0c8 --- /dev/null +++ b/zshenv @@ -0,0 +1,5 @@ +# Source the /etc/profile - done here since we want it to be done as the first +# thing the zsh does. +setopt nonomatch +source /etc/profile +unsetopt nonomatch diff --git a/zshrc b/zshrc new file mode 100644 index 0000000..e926d3b --- /dev/null +++ b/zshrc @@ -0,0 +1,231 @@ +# zsh line editing +: ${ZSHEDIT:="emacs"} +: ${TERM:=linux} + +if [[ "$ZSHEDIT" == "vi" ]] then + bindkey -v +else + bindkey -e + bindkey "^[ " magic-space + bindkey "^[!" expand-history +fi + +# Environment +HISTSIZE=1000 +HISTFILE=${HOME}/.zsh_history +SAVEHIST=500 + +# Prompt on the right side. zsh feature +#RPROMPT="[%T]" + +# Set/unset shell options +setopt globdots nocorrect pushdtohome autolist nopromptcr +setopt nocorrectall autocd recexact longlistjobs autoresume +setopt histignoredups pushdsilent appendhistory histexpiredupsfirst +setopt autopushd pushdminus extendedglob rcquotes +unsetopt bgnice autoparamslash hup + +# Setup some basic programmable completions. To see more examples +# of these, check out /usr/doc/packages/zsh/compctl-examples. +# You you have a slow machine, you might want to comment the lines below +# with compctl in, and comment the below two lines out. +# +# compctl -g '*(-/)' cd pushd +# compctl -g '*(/)' rmdir dircmp +# compctl -j -P % -x 's[-] p[1]' -k signals -- kill +# compctl -j -P % fg bg wait jobs disown +# compctl -A shift +# compctl -caF type whence which +# compctl -F unfunction +# compctl -a unalias +# compctl -v unset typeset declare vared readonly export integer +# compctl -e disable +# compctl -d enable +# +# The default way is the usage of the zsh built-in completer +# Comment the two below lines out, if you are on a slow machine, and +# comment the above compctl lines in. + +autoload -U compinit +compinit + +# Completion so "cd .." -> "cd ../" +# zstyle ':completion:*' special-dirs .. + +# Online help +unalias run-help 2>/dev/null || true +autoload run-help + +# Don't use zsh builtin which +alias which >/dev/null && unalias which + +# Common standard keypad and cursor +bindkey "^[[2~" yank +bindkey "^[[3~" delete-char + +# History completion on pgup and pgdown +autoload -U history-search-end +zle -N history-beginning-search-backward-end history-search-end +zle -N history-beginning-search-forward-end history-search-end +bindkey "^[[5~" history-beginning-search-backward-end +bindkey "^[[6~" history-beginning-search-forward-end + +if [[ "$TERM" == "xterm" ]] then + bindkey "^[2;5~" yank + bindkey "^[3;5~" delete-char + bindkey "^[5;5~" up-history + bindkey "^[6;5~" down-history +fi +bindkey "^[[C" forward-char +bindkey "^[[D" backward-char +bindkey "^[[A" up-history +bindkey "^[[B" down-history + +# Avoid network problems +# ... \177 (ASCII-DEL) and \010 (ASCII-BS) +# do `backward-delete-char' +# Note: `delete-char' is maped to \033[3~ +# Therefore xterm's responce on pressing +# key Delete or KP-Delete should be +# \033[3~ ... NOT \177 +bindkey "^?" backward-delete-char +bindkey "^H" backward-delete-char + +# Home and End +if [[ "$TERM" == "xterm" ]] then + # Normal keypad and cursor of xterm + bindkey "^[[1~" history-search-backward + bindkey "^[[4~" set-mark-command + bindkey "^[[H" beginning-of-line + bindkey "^[[F" end-of-line + # Home and End of application keypad and cursor of xterm + bindkey "^[OH" beginning-of-line + bindkey "^[OF" end-of-line + bindkey "^[O5H" beginning-of-line + bindkey "^[O5F" end-of-line +else +if [[ "$TERM" == "kvt" ]] then + bindkey "^[[1~" history-search-backward + bindkey "^[[4~" set-mark-command + bindkey "^[OH" beginning-of-line + bindkey "^[OF" end-of-line +else + # TERM=linux or console + bindkey "^[[1~" beginning-of-line + bindkey "^[[4~" end-of-line +fi +fi + +# Application keypad and cursor of xterm +if [[ "$TERM" == "xterm" ]] then + bindkey "^[OD" backward-char + bindkey "^[OC" forward-char + bindkey "^[OA" up-history + bindkey "^[OB" down-history + # DEC keyboard KP_F1 - KP_F4 + bindkey -s "^[OP" "^[" + bindkey "^[OQ" undo + bindkey "^[OR" undefined-key + bindkey "^[OS" kill-line +fi +if [[ "$TERM" == "gnome" ]] then + # or gnome terminal F1 - F4 + bindkey -s "^[OP" "^[" + bindkey "^[OQ" undo + bindkey "^[OR" undefined-key + bindkey "^[OS" kill-line +fi +# Function keys F1 - F12 +if [[ "$TERM" == "linux" ]] then + # On console the first five function keys + bindkey "^[[[A" undefined-key + bindkey "^[[[B" undefined-key + bindkey "^[[[C" undefined-key + bindkey "^[[[D" undefined-key + bindkey "^[[[E" undefined-key +else + # The first five standard function keys + bindkey "^[[11~" undefined-key + bindkey "^[[12~" undefined-key + bindkey "^[[13~" undefined-key + bindkey "^[[14~" undefined-key + bindkey "^[[15~" undefined-key +fi +bindkey "^[[17~" undefined-key +bindkey "^[[18~" undefined-key +bindkey "^[[19~" undefined-key +bindkey "^[[20~" undefined-key +bindkey "^[[21~" undefined-key +# Note: F11, F12 are identical with Shift_F1 and Shift_F2 +bindkey "^[[23~" undefined-key +bindkey "^[[24~" undefined-key + +# Shift Function keys F1 - F12 +# identical with F11 - F22 +# +# bindkey "^[[23~" undefined-key +# bindkey "^[[24~" undefined-key +bindkey "^[[25~" undefined-key +bindkey "^[[26~" undefined-key +# DEC keyboard: F15=^[[28~ is Help +bindkey "^[[28~" undefined-key +# DEC keyboard: F16=^[[29~ is Menu +bindkey "^[[29~" undefined-key +bindkey "^[[31~" undefined-key +bindkey "^[[32~" undefined-key +bindkey "^[[33~" undefined-key +bindkey "^[[34~" undefined-key +if [[ "$TERM" == "xterm" ]] then + # Not common + bindkey "^[[35~" undefined-key + bindkey "^[[36~" undefined-key +fi + +if [[ "$TERM" == "xterm" ]] then + # Application keypad and cursor of xterm + # with NumLock ON + # + # Operators + bindkey -s "^[Oo" "/" + bindkey -s "^[Oj" "*" + bindkey -s "^[Om" "-" + bindkey -s "^[Ok" "+" + bindkey -s "^[Ol" "," + bindkey -s "^[OM" "\n" + bindkey -s "^[On" "." + # Numbers + bindkey -s "^[Op" "0" + bindkey -s "^[Oq" "1" + bindkey -s "^[Or" "2" + bindkey -s "^[Os" "3" + bindkey -s "^[Ot" "4" + bindkey -s "^[Ou" "5" + bindkey -s "^[Ov" "6" + bindkey -s "^[Ow" "7" + bindkey -s "^[Ox" "8" + bindkey -s "^[Oy" "9" +fi + +# EMACS line editing +if [[ "$ZSHEDIT" == "emacs" ]] then + # ... xterm application cursor + if [[ "$TERM" == "xterm" ]] then + bindkey "^[^[OD" backward-word + bindkey "^[^[OC" forward-word + bindkey "^[^[OA" up-history + bindkey "^[^[OB" down-history + bindkey "^^[OD" backward-char + bindkey "^^[OC" forward-char + bindkey "^^[OA" up-history + bindkey "^^[OB" down-history + fi + # Standard cursor + bindkey "^[^[[D" backward-word + bindkey "^[^[[C" forward-word + bindkey "^[^[[A" up-history + bindkey "^[^[[B" down-history + bindkey "^^[[D" backward-char + bindkey "^^[[C" forward-char + bindkey "^^[[A" up-history + bindkey "^^[[B" down-history +fi