diff options
author | Florent Villard <warly@mandriva.com> | 2006-10-17 13:53:27 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-10-17 13:53:27 +0000 |
commit | 8a9d567022791fc58c2142701516a6c6f48e42d8 (patch) | |
tree | d235c43486f3cdd2200d99b18e9475709a971202 /etc | |
parent | c4d64863270bc02078bb4d9a0d7e9fdadca51c0f (diff) | |
download | mga-youri-submit-8a9d567022791fc58c2142701516a6c6f48e42d8.tar mga-youri-submit-8a9d567022791fc58c2142701516a6c6f48e42d8.tar.gz mga-youri-submit-8a9d567022791fc58c2142701516a6c6f48e42d8.tar.bz2 mga-youri-submit-8a9d567022791fc58c2142701516a6c6f48e42d8.tar.xz mga-youri-submit-8a9d567022791fc58c2142701516a6c6f48e42d8.zip |
merge with upstream
Diffstat (limited to 'etc')
-rw-r--r-- | etc/bash_completion.d/youri-submit | 60 | ||||
-rw-r--r-- | etc/submit.conf | 134 |
2 files changed, 194 insertions, 0 deletions
diff --git a/etc/bash_completion.d/youri-submit b/etc/bash_completion.d/youri-submit new file mode 100644 index 0000000..be2f6e5 --- /dev/null +++ b/etc/bash_completion.d/youri-submit @@ -0,0 +1,60 @@ +# youri-submit completion +# $Id$ + +_youri-submit() +{ + + local cur prev config + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + + case "$prev" in + --config) + _filedir + return 0 + ;; + --list) + COMPREPLY=( $( compgen -W 'targets checks actions' -- $cur ) ) + return 0 + ;; + --help) + COMPREPLY=( $( compgen -W 'repository check action' -- $cur ) ) + return 0 + ;; + esac + + if [[ "$cur" == -* ]]; then + COMPREPLY=( $( compgen -W '--define --clean -l --list -h --help -t \ + --test -v --verbose' -- $cur ) ) + # add dangereous option for main command + if [[ ${COMP_WORDS[0]} == youri-submit ]]; then + COMPREPLY=( $( compgen -W '${COMPREPLY[@]} --config --skip-check \ + --skip-action' -- $cur ) ) + fi + else + _count_args + case $args in + 1) + _find_config + COMPREPLY=( $( compgen -W '$( youri-submit $config --list targets )' -- $cur ) ) + ;; + *) + _filedir + ;; + esac + fi + +} +complete -F _youri-submit youri-submit youri-submit-restricted youri-submit-proxy + +_find_config() +{ + for (( i=1; i < COMP_CWORD; i++ )); do + if [[ "${COMP_WORDS[i]}" == --config ]]; then + config="--config ${COMP_WORDS[i+1]}" + break + fi + done +} diff --git a/etc/submit.conf b/etc/submit.conf new file mode 100644 index 0000000..db12918 --- /dev/null +++ b/etc/submit.conf @@ -0,0 +1,134 @@ +# youri-submit sample configuration file +# $Id$ + +# helper variables +home: /home/user + +# repository definition +repository: + class: Youri::Repository::PLF + options: + install_root: ${home}/ftp/mandriva + version_root: ${home}/cvs + archive_root: ${home}/backup/mandriva + noarch: i586 + +# targets definitions +targets: + cooker: + checks: + - tag + - recency + - history + actions: + - sign + - install + - link + - archive + - clean + - bugzilla + - cvs + - mail + - rss + + 2006.0: + checks: + - type + - tag + - recency + - history + - precedence + actions: + - sign + - install + - link + - archive + - clean + +# checks definitions +checks: + tag: + class: Youri::Submit::Check::Tag + options: + tags: + release: 'plf$' + packager: '<\w+@zarb\.org>$' + distribution: '^Mandriva Linux$' + vendor: '^Penguin Liberation Front$' + + recency: + class: Youri::Submit::Check::Recency + + history: + class: Youri::Submit::Check::History + + precedence: + class: Youri::Submit::Check::Precedence + options: + target: cooker + + type: + class: Youri::Submit::Check::Type + type: binary + +# actions definitions +actions: + sign: + class: Youri::Submit::Action::Sign + options: + name: plf@zarb.org + path: ${home}/.gnupg + passphrase: s3kr3t + + install: + class: Youri::Submit::Action::Install + + link: + class: Youri::Submit::Action::Link + + archive: + class: Youri::Submit::Action::Archive + + clean: + class: Youri::Submit::Action::Clean + + mail: + class: Youri::Submit::Action::Mail + options: + mta: /usr/sbin/sendmail + to: plf-announce@zarb.org + reply_to: plf-discuss@zarb.org + from: plf@zarb.org + prefix: RPM + cc: + hot-base: david@dindinx.org bellamy@neverland.net + dcgui: mathen@ketelhot.de + dclib: mathen@ketelhot.de + Video-DVDRip: dvdrip-users@exit1.org + hackVideo-DVDRip: dvdrip-users@exit1.org + goosnes: tak@bard.sytes.net + avidemux: fixounet@free.fr + vobcopy: robos@muon.de + drip: drip-devel@lists.sourceforge.net + libdscaler: vektor@dumbterm.net + xawdecode: pingus77@ifrance.com + + rss: + class: Youri::Submit::Action::RSS + options: + file: ${home}/www/changelog.rss + title: PLF packages updates + link: http://plf.zarb.org/ + description: ChangeLog for PLF packages + + cvs: + class: Youri::Submit::Action::CVS + + bugzilla: + class: Youri::Submit::Action::Bugzilla + options: + host: localhost + base: plf_bugs + user: plf + pass: s3kr3t + contact: plf@zarb.org |