diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/deb.sh | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -19,7 +19,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -COMMANDS='init config update download edit builddsc' +COMMANDS='init config update download edit builddsc push' CONFIG_NAMES='mirror distribution component remote buildcmd' main() @@ -348,4 +348,20 @@ EOF > "${DEB_TREE}/pkgs/${pkg}/${pkg}.debdiff" } +cmd_push() +{ + find_deb_dir + config_load + + if [ ${#} -ne 0 ]; then + cat >&2 <<EOF +Usage: ${SCRIPT_NAME} ${COMMAND_NAME} +EOF + exit 1 + fi + + rsync -az --stats "${DEB_TREE}/pkgs/" "${CONFIG_remote}/pkgs/" + rsync -az --stats "${DEB_TREE}/builds/" "${CONFIG_remote}/builds/" +} + main ${@} |