diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-03-06 23:18:22 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-27 15:49:10 +0200 |
commit | 9454e6c20dc722aa65dbdc9a1c4a5ba65bac4f8e (patch) | |
tree | c5edd1851cfd6b260af8b762a5f1a88dbf7c1ec1 /archrelease.in | |
parent | a1594ae1f6cd183efaee5c52eca01fe5d708b1e1 (diff) | |
download | devtools-gitpkgsv2.tar.gz devtools-gitpkgsv2.tar.xz |
initial work to support new dbscriptsgitpkgsv2
still buggy and missing features, but I don't know which. forgot to
commit this earlier...
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'archrelease.in')
-rw-r--r-- | archrelease.in | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/archrelease.in b/archrelease.in index 6f52dbc..bac4041 100644 --- a/archrelease.in +++ b/archrelease.in @@ -56,31 +56,30 @@ done # gracefully handle files containing an "@" character known_files=("${known_files[@]/%/@}") +tag=$(get_full_version $_pkgname) + +stat_busy "Copying ${trunk} to ${tag}" + +if [[ -d tags/$tag ]]; then + #declare -a trash + #trash=() + #while read -r file; do + #trash+=("tags/$tag/$file") + #done < <(svn ls "tags/$tag") + #[[ $trash ]] && svn rm -q "${trash[@]/%/@}" + die "already tagged" +else + mkdir -p "tags/$tag" + svn add --parents -q "tags/$tag" +fi -for tag in "$@"; do - stat_busy "Copying ${trunk} to ${tag}" - - if [[ -d repos/$tag ]]; then - declare -a trash - trash=() - while read -r file; do - trash+=("repos/$tag/$file") - done < <(svn ls "repos/$tag") - [[ $trash ]] && svn rm -q "${trash[@]/%/@}" - else - mkdir -p "repos/$tag" - svn add --parents -q "repos/$tag" - fi - - # copy all files at once from trunk to the subdirectory in repos/ - svn copy -q -r HEAD ${known_files[@]/#/$trunk/} "repos/$tag/" +# copy all files at once from trunk to the subdirectory in repos/ +svn copy -q -r HEAD ${known_files[@]/#/$trunk/} "tags/$tag/" - stat_done -done +stat_done stat_busy "Releasing package" -printf -v tag_list ", %s" "$@"; tag_list="${tag_list#, }" -svn commit -q -m "archrelease: copy ${trunk} to $tag_list" || abort +svn commit -q -m "archrelease: copy ${trunk} to $tag" || abort stat_done popd >/dev/null |