diff options
author | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:23:45 (GMT) |
---|---|---|
committer | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:23:45 (GMT) |
commit | 618d4ad515a93d1e48934be5846edd71270171ec (patch) | |
tree | a22a9294af81215d4a7b1053e5fdb4d746f39d41 /build_tools/bin/update_db_repo.sh | |
download | linhes_dev-618d4ad515a93d1e48934be5846edd71270171ec.zip |
initital import
Diffstat (limited to 'build_tools/bin/update_db_repo.sh')
-rwxr-xr-x | build_tools/bin/update_db_repo.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build_tools/bin/update_db_repo.sh b/build_tools/bin/update_db_repo.sh new file mode 100755 index 0000000..27a594b --- /dev/null +++ b/build_tools/bin/update_db_repo.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# tiny util to regenreate the databse on the LOCAL machine +# called with + +if [ $# -ne 2 ] +then + echo "incorrect number of args" + echo "update_db_repo directory repo" + echo "EX: update_db_repo /data/local/pkg_repo/i686/core-testing core-testing" + exit 1 +fi + + +cd $1 +REPO=$2 +echo " --------------------------" +echo "updating database for $REPO" +echo " --------------------------" +pwd + repo-add -q $REPO.db.tar.gz *.pkg.tar.gz +cd - |