Drop all gbp-* and git-* commands
authorGuido Günther <agx@sigxcpu.org>
Tue, 17 Feb 2015 07:46:41 +0000 (08:46 +0100)
committerGuido Günther <agx@sigxcpu.org>
Tue, 17 Feb 2015 20:03:02 +0000 (21:03 +0100)
as announced in the deprecation notice from June 2013.

bin/gbp-clone [deleted file]
bin/gbp-create-remote-repo [deleted file]
bin/gbp-pq [deleted file]
bin/gbp-pull [deleted file]
bin/git-buildpackage [deleted file]
bin/git-dch [deleted file]
bin/git-import-dsc [deleted file]
bin/git-import-dscs [deleted file]
bin/git-import-orig [deleted file]
debian/git-buildpackage.bash-completion
setup.py

diff --git a/bin/gbp-clone b/bin/gbp-clone
deleted file mode 100755 (executable)
index 33e8226..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#! /usr/bin/python -u
-import sys
-from gbp.scripts.clone import main
-
-sys.exit(main(sys.argv))
diff --git a/bin/gbp-create-remote-repo b/bin/gbp-create-remote-repo
deleted file mode 100755 (executable)
index 81ca8c1..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#! /usr/bin/python -u
-import sys
-from gbp.scripts.create_remote_repo import main
-
-sys.exit(main(sys.argv))
diff --git a/bin/gbp-pq b/bin/gbp-pq
deleted file mode 100755 (executable)
index 733be7b..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#! /usr/bin/python -u
-import sys
-from gbp.scripts.pq import main
-
-sys.exit(main(sys.argv))
diff --git a/bin/gbp-pull b/bin/gbp-pull
deleted file mode 100755 (executable)
index 21c22c5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#! /usr/bin/python -u
-import sys
-from gbp.scripts.pull import main
-
-sys.exit(main(sys.argv))
diff --git a/bin/git-buildpackage b/bin/git-buildpackage
deleted file mode 100755 (executable)
index bc093ab..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#! /usr/bin/python -u
-import sys
-from gbp.scripts.buildpackage import main
-
-sys.exit(main(sys.argv))
diff --git a/bin/git-dch b/bin/git-dch
deleted file mode 100755 (executable)
index 68eacd9..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#! /usr/bin/python -u
-import sys
-from gbp.scripts.dch import main
-
-sys.exit(main(sys.argv))
diff --git a/bin/git-import-dsc b/bin/git-import-dsc
deleted file mode 100755 (executable)
index fd6737a..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#! /usr/bin/python -u
-import sys
-from gbp.scripts.import_dsc import main
-
-sys.exit(main(sys.argv))
diff --git a/bin/git-import-dscs b/bin/git-import-dscs
deleted file mode 100755 (executable)
index cd0f880..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#! /usr/bin/python -u
-import sys
-from gbp.scripts.import_dscs import main
-
-sys.exit(main(sys.argv))
diff --git a/bin/git-import-orig b/bin/git-import-orig
deleted file mode 100755 (executable)
index 812e3ec..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#! /usr/bin/python -u
-import sys
-from gbp.scripts.import_orig import main
-
-sys.exit(main(sys.argv))
index 053b93328cf41f3982c6c6888999950408c48c34..39701c873dda84461f980af1c66ae79bcc2fe356 100644 (file)
@@ -23,7 +23,7 @@ _gbp_tags ()
 
 _gbp_options ()
 {
-    $1 --help | sed -ne  's/^ \+\(\(\-[a-z]\), \)\?\(\-\-[a-z\-]\+\=\?\).*/\2 \3/p'
+    gbp $1 --help | sed -ne  's/^ \+\(\(\-[a-z]\), \)\?\(\-\-[a-z\-]\+\=\?\).*/\2 \3/p'
 }
 
 
@@ -99,10 +99,9 @@ _gbp_find_cmd_on_cmdline ()
     done
 }
 
-have git-buildpackage &&
 _gbp_buildpackage()
 {
-    local options=$(_gbp_options git-buildpackage)
+    local options=$(_gbp_options buildpackage)
     local branch_opts="--git-debian-branch\= --git-upstream-branch\= --git-upstream-tree\="
     local tag_opts="--git-debian-tag\= --git-upstream-tag\="
     local tristate_opts="--git-color\= --git-notify\="
@@ -111,104 +110,84 @@ _gbp_buildpackage()
     _gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts" \
               "$cbdist_opts"
 }
-[ "${have:-}" ] && complete -F _gbp_buildpackage -o default git-buildpackage
 
-
-have git-dch &&
 _gbp_dch ()
 {
-    local options=$(_gbp_options git-dch)
+    local options=$(_gbp_options dch)
     local branch_opts="--debian-branch\="
     local tag_opts="--debian-tag\= --upstream-tag\="
     local tristate_opts="--color\="
 
     _gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
 }
-[ "${have:-}" ] && complete -F _gbp_dch -o default git-dch
-
 
-have git-import-orig &&
 _gbp_import_orig ()
 {
-    local options=$(_gbp_options git-import-orig)
+    local options=$(_gbp_options import-orig)
     local branch_opts="--debian-branch\= --upstream-branch\="
     local tag_opts="--debian-tag\= --upstream-tag\="
     local tristate_opts="--color\="
 
     _gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
 }
-[ "${have:-}" ] && complete -F _gbp_import_orig -o default git-import-orig
-
 
-have git-import-dsc &&
 _gbp_import_dsc ()
 {
-    local options=$(_gbp_options git-import-dsc)
+    local options=$(_gbp_options import-dsc)
     local branch_opts="--debian-branch\= --upstream-branch\="
     local tag_opts="--debian-tag\= --upstream-tag\="
     local tristate_opts="--color\="
 
     _gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
 }
-[ "${have:-}" ] && complete -F _gbp_import_dsc -o default git-import-dsc
 
-have git-import-dscs &&
 _gbp_import_dscs ()
 {
-    local options="$(_gbp_options git-import-dscs) $(_gbp_options git-import-dsc)"
+    local options="$(_gbp_options import-dscs) $(_gbp_options import-dsc)"
     local branch_opts="--debian-branch\= --upstream-branch\="
     local tag_opts="--debian-tag\= --upstream-tag\="
     local tristate_opts="--color\="
 
     _gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
 }
-[ "${have:-}" ] && complete -F _gbp_import_dscs -o default git-import-dscs
 
-have gbp-pq &&
 _gbp_pq ()
 {
-    local options=$(_gbp_options gbp-pq)
+    local options=$(_gbp_options pq)
     options="$options export import rebase drop apply switch"
     local tristate_opts="--color\="
 
     _gbp_comp "$options" "" "" "$tristate_opts"
 }
-[ "${have:-}" ] && complete -F _gbp_pq -o default gbp-pq
 
-have gbp-pull &&
 _gbp_pull ()
 {
-    local options=$(_gbp_options gbp-pull)
+    local options=$(_gbp_options pull)
     local branch_opts="--debian-branch\= --upstream-branch\="
     local tag_opts="--debian-tag\= --upstream-tag\="
     local tristate_opts="--color\="
 
     _gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
 }
-[ "${have:-}" ] && complete -F _gbp_pull -o default gbp-pull
 
-have gbp-clone &&
 _gbp_clone ()
 {
-    local options=$(_gbp_options gbp-clone)
+    local options=$(_gbp_options clone)
     local branch_opts="--debian-branch\= --upstream-branch\="
     local tag_opts="--debian-tag\= --upstream-tag\="
     local tristate_opts="--color\="
 
     _gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
 }
-[ "${have:-}" ] && complete -F _gbp_clone -o default gbp-clone
 
-have gbp-create-remote-repo &&
 _gbp_create_remote_repo ()
 {
-    local options=$(_gbp_options gbp-create-remote-repo)
+    local options=$(_gbp_options create-remote-repo)
     local branch_opts="--debian-branch\= --upstream-branch\="
     local tristate_opts="--color\="
 
     _gbp_comp "$options" "$branch_opts" "" "$tristate_opts"
 }
-[ "${have:-}" ] && complete -F _gbp_create_remote_repo -o default gbp-create-remote-repo
 
 have gbp &&
 _gbp ()
index 3337c21a248b7a3dd41cdaabecc3190564aeb212..896edab24712384bb8c3064a1a398e40daa7a232 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -61,16 +61,7 @@ setup(name = "gbp",
           'Topic :: Software Development :: Version Control :: Git',
           'Operating System :: POSIX :: Linux',
       ],
-      scripts = [ 'bin/git-buildpackage',
-                  'bin/git-import-dsc',
-                  'bin/git-import-orig',
-                  'bin/git-dch',
-                  'bin/git-import-dscs',
-                  'bin/gbp-pq',
-                  'bin/gbp-pull',
-                  'bin/gbp-clone',
-                  'bin/gbp-create-remote-repo',
-                  'bin/git-pbuilder'],
+      scripts = ['bin/git-pbuilder'],
       packages = find_packages(exclude=['tests', 'tests.*']),
       data_files = [("/etc/git-buildpackage/", ["gbp.conf"]),],
       setup_requires=['nose>=0.11.1', 'coverage>=2.85', 'nosexcover>=1.0.7'] if \