diff --git a/bin/rbpkg b/bin/rbpkg
index c73ca73..471de61 100755
--- a/bin/rbpkg
+++ b/bin/rbpkg
@@ -57,6 +57,8 @@ def rbpkg
usage()
when "clone"
Rbpkg.git_clone($ARGS)
+ when "clean-configure"
+ Rbpkg.clean_configure($ARGS)
when "clean-sources"
Rbpkg.clean_sources($ARGS)
when "fetch"
diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index 1057e11..da52c23 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -21,6 +21,10 @@ class Rbpkg::Repo
cmd! "cd #{sh_quote(src_dir!)} && git fetch #{sh_quote(git_remote)} #{sh_branch} && git checkout #{sh_branch} && git submodule update"
end
+ def clean_configure
+ tag_remove("configure-done")
+ end
+
def clean_sources
if File.directory?(src_dir)
cmd! "rm -rf #{sh_quote(src_dir)}"