From b98d86d4c029c06833d89931f2ef5cab58753861 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sun, 25 Jul 2010 22:13:39 -0500 Subject: [PATCH] script/push, Makefile: move build target into Makefile instead of hardcoding in push script --- Makefile | 2 +- script/push | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1a552cb..6aa7e87 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ burn: $(worktree)/card.img # Push to build target push: - script/push + script/push cyberleo@sc1425:mosi/ # Generate components $(worktree)/card.img: $(worktree)/boot.img $(worktree)/root.img diff --git a/script/push b/script/push index 156aa99..695713e 100755 --- a/script/push +++ b/script/push @@ -1,5 +1,7 @@ #!/bin/sh +target="${1:-cyberleo@akisha:world/}" + cd "$(dirname "$(dirname "${0}")")" filter="$(mktemp filter.XXXXXXXX)" @@ -19,4 +21,4 @@ cat < "${filter}" + /** EOF -rsync --archive --delete --filter=". ${filter}" --hard-links --progress --sparse --stats --verbose ./ cyberleo@akisha:world/ +rsync --archive --delete --filter=". ${filter}" --hard-links --progress --sparse --stats --verbose ./ "${target}" -- 2.42.0