diff --git a/util/misc/tree/actions.py b/util/misc/tree/actions.py new file mode 100644 index 0000000000..4fff27dd76 --- /dev/null +++ b/util/misc/tree/actions.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def build(): + autotools.make('CC="%s" \ + CFLAGS="%s -fomit-frame-pointer -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" \ + LDFLAGS="%s"' % (get.CC(), get.CFLAGS(), get.LDFLAGS())) + +def install(): + pisitools.dobin("tree") + + pisitools.doman("doc/tree.1") + pisitools.dodoc("CHANGES", "README*") diff --git a/util/misc/tree/files/tree.bashcomp b/util/misc/tree/files/tree.bashcomp new file mode 100644 index 0000000000..d0eaf60860 --- /dev/null +++ b/util/misc/tree/files/tree.bashcomp @@ -0,0 +1,34 @@ +# Copyright © 2005 TUBITAK/UEKAE +# Licensed under the GNU General Public License, version 2. +# See the file http://www.gnu.org/copyleft/gpl.txt. +# +# Original work belongs Gentoo Linux + +_tree() { + local cur prev opts + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + opts="-a -d -l -f -i -q -N -p -u -g -s -h -D -F -v -r -t -x -L -A + -S -n -C -P -I -H -T -R -o --inodes --device --noreport --nolinks + --dirsfirst --charset --filelimit --help" + + if [[ ${cur} == -* ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + fi + + case "${prev}" in + -L|-P|-I|-H|-T|--charset|--help) + ;; + -o) + COMPREPLY=( $(compgen -f -- ${cur}) ) + ;; + *) + COMPREPLY=( $(compgen -d -- ${cur}) ) + ;; + esac +} +complete -o filenames -F _tree tree + +# vim: set ft=sh tw=80 sw=4 et : diff --git a/util/misc/tree/pspec.xml b/util/misc/tree/pspec.xml new file mode 100644 index 0000000000..90a63d0fde --- /dev/null +++ b/util/misc/tree/pspec.xml @@ -0,0 +1,54 @@ + + + + + tree + http://mama.indstate.edu/users/ice/tree/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + app:console + Recursive directory listing tool + Tree lists directories recursively, and produces an indented listing of files. + ftp://mama.indstate.edu/linux/tree/tree-1.7.0.tgz + + + + tree + + /usr/bin + /usr/share/bash-completion + /usr/share/doc + /usr/share/man + + + tree.bashcomp + + + + + + 2015-01-25 + 1.7.0 + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2014-03-09 + 1.6.0 + Rebuild + Varol Maksutoğlu + waroi@pisilinux.org + + + 2012-10-20 + 1.6.0 + First release + Serdar Soytetir + kaptan@pisilinux.org + + + diff --git a/util/misc/tree/translations.xml b/util/misc/tree/translations.xml new file mode 100644 index 0000000000..8c09e217cc --- /dev/null +++ b/util/misc/tree/translations.xml @@ -0,0 +1,8 @@ + + + + tree + Dizin listeleme aracı + Dizinleri özyineli olarak listeler ve dosya listesini girintili olarak gösterir. + +