diff options
author | Pascal Terjan <pterjan@mageia.org> | 2011-01-07 08:07:11 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2011-01-07 08:07:11 +0000 |
commit | abc9a802404902718dc808fdce36f226533f02de (patch) | |
tree | fc46dc3b0da9bf9fead8a50c9a6a3d8a5e27a75a /etc | |
download | mga-youri-submit-abc9a802404902718dc808fdce36f226533f02de.tar mga-youri-submit-abc9a802404902718dc808fdce36f226533f02de.tar.gz mga-youri-submit-abc9a802404902718dc808fdce36f226533f02de.tar.bz2 mga-youri-submit-abc9a802404902718dc808fdce36f226533f02de.tar.xz mga-youri-submit-abc9a802404902718dc808fdce36f226533f02de.zip |
get_file_name returns a full path, which Install does not like
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..ef23078 --- /dev/null +++ b/etc/submit.conf @@ -0,0 +1,134 @@ +# youri-submit sample configuration file +# $Id: submit.conf 1723 2006-10-17 13:53:27Z warly $ + +# 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 |