summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-July/006612.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2011-July/006612.html')
-rw-r--r--zarb-ml/mageia-dev/2011-July/006612.html241
1 files changed, 241 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2011-July/006612.html b/zarb-ml/mageia-dev/2011-July/006612.html
new file mode 100644
index 000000000..fc98d99cb
--- /dev/null
+++ b/zarb-ml/mageia-dev/2011-July/006612.html
@@ -0,0 +1,241 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] new mgarepo version
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20new%20mgarepo%20version&In-Reply-To=%3C201107131502.00613.anaselli%40linux.it%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="006609.html">
+ <LINK REL="Next" HREF="006621.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] new mgarepo version</H1>
+ <B>Angelo Naselli</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20new%20mgarepo%20version&In-Reply-To=%3C201107131502.00613.anaselli%40linux.it%3E"
+ TITLE="[Mageia-dev] new mgarepo version">anaselli at linux.it
+ </A><BR>
+ <I>Wed Jul 13 15:01:57 CEST 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="006609.html">[Mageia-dev] new mgarepo version
+</A></li>
+ <LI>Next message: <A HREF="006621.html">[Mageia-dev] new mgarepo version
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#6612">[ date ]</a>
+ <a href="thread.html#6612">[ thread ]</a>
+ <a href="subject.html#6612">[ subject ]</a>
+ <a href="author.html#6612">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>&gt;<i> FWIW, I've been using the attached bash-completion file for some
+</I>&gt;<i> months now, however since I am not a bash-completion guru I didn't
+</I>&gt;<i> want to plague anyone else with any things I've messed up with it.
+</I>Great that means it works :)
+I'm not a bash-completion guru as well, but i thought it was useful
+for someone else, since we're two... that means we could be more :)
+
+&gt;<i> @Angelo: Feel free to use anything from it, if any, to add to the file
+</I>&gt;<i> you have (note that I disabled the &quot;auto completion of package names
+</I>&gt;<i> in SVN&quot; since it's too slow for taste).
+</I>The attached one has it activated, i believe it is the same as yours but
+for that change.
+FWIW i find slower urpmi bash_complention, expecially if i want to
+install a local package - i always forget ./XXX- you can figure out :)
+
+HTH,
+ Angelo
+
+-------------- next part --------------
+# mgarepo(1) completion
+#
+_cauldron_packages()
+{
+ COMPREPLY=( $( compgen -W '$(svn ls \
+ svn+<A HREF="ssh://svn.mageia.org/svn/packages/cauldron">ssh://svn.mageia.org/svn/packages/cauldron</A> \
+ | sed -e &quot;s|/$||&quot; )' -- $cur ) )
+}
+
+_mgarepo_actions()
+{
+ COMPREPLY=( $( compgen -W 'import create checkout co update info log \
+ tag submit extract sync commit ci build strip mass-update \
+ help' -- $cur ) )
+}
+
+_mgarepo()
+{
+ local cur prev command options i
+
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+
+ if [[ $COMP_CWORD -eq 1 ]] ; then
+ _mgarepo_actions
+ else
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ case &quot;$prev&quot; in
+ -@(c|-config))
+ _filedir
+ return 0
+ ;;
+ esac
+
+ command=${COMP_WORDS[1]}
+
+ if [[ &quot;$cur&quot; == -* ]]; then
+ # possible options for the command
+ case $command in
+ @(import|create))
+ options=&quot;--revision --distribution \
+ --branch --message --nocommit&quot;
+ ;;
+ @(checkout|co|info|log))
+ options=&quot;--revision --distribution \
+ --branch&quot;
+ ;;
+ update)
+ options=&quot;--revision --distribution \
+ --branch --release \
+ --spec-line-expression \
+ --keep-on-failure --message \
+ --target --nocommit --nosubmit&quot;
+ ;;
+ mass-update)
+ options=&quot;--include --exclude \
+ --keep-on-failure --nocommit \
+ --nosubmit&quot;
+ ;;
+ tag)
+ options=&quot;--revision&quot;
+ ;;
+ submit)
+ options=&quot;--revision --distribution \
+ --branch --target&quot;
+ ;;
+ extract)
+ options=&quot;--revision --distribution \
+ --branch --destdir --noprefix&quot;
+ ;;
+ @(commit|ci))
+ options=&quot;--sync --message&quot;
+ ;;
+ esac
+ options=&quot;$options --verbose -v --config -c --help&quot;
+ COMPREPLY=( $( compgen -W &quot;$options&quot; -- $cur ) )
+ else
+ case $command in
+ help)
+ _mgarepo_actions
+ return 0
+ ;;
+ import)
+ _filedir 'src.rpm'
+ return 0
+ ;;
+ @(create|checkout|co|update|info|log|tag|submit|extract))
+ _cauldron_packages
+ return 0
+ ;;
+ @(sync|commit|ci))
+ _filedir -d
+ return 0
+ ;;
+ @(build|strip))
+ _filedir 'spec'
+ return 0
+ ;;
+ esac
+ fi
+ fi
+
+}
+complete -F _mgarepo $filenames mgarepo
+-------------- next part --------------
+A non-text attachment was scrubbed...
+Name: not available
+Type: application/pgp-signature
+Size: 198 bytes
+Desc: This is a digitally signed message part.
+URL: &lt;/pipermail/mageia-dev/attachments/20110713/d949efa6/attachment.asc&gt;
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="006609.html">[Mageia-dev] new mgarepo version
+</A></li>
+ <LI>Next message: <A HREF="006621.html">[Mageia-dev] new mgarepo version
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#6612">[ date ]</a>
+ <a href="thread.html#6612">[ thread ]</a>
+ <a href="subject.html#6612">[ subject ]</a>
+ <a href="author.html#6612">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>