summaryrefslogtreecommitdiffstats
path: root/archrelease
diff options
context:
space:
mode:
Diffstat (limited to 'archrelease')
-rwxr-xr-xarchrelease11
1 files changed, 3 insertions, 8 deletions
diff --git a/archrelease b/archrelease
index af75b8f..ec7545e 100755
--- a/archrelease
+++ b/archrelease
@@ -37,14 +37,9 @@ if [[ -d repos/$1 ]]; then
trash+=("repos/$1/$file")
done < <(svn ls "repos/$1")
svn rm -q "${trash[@]}"
-fi
-if [[ ! -d repos ]]; then
- mkdir repos
- svn add -q repos
-fi
-if [[ ! -d "repos/$1" ]]; then
- mkdir "repos/${1}"
- svn add -q "repos/${1}"
+else
+ mkdir -p "repos/${1}"
+ svn add --parents -q "repos/${1}"
fi
IFS=$'\n' read -r -d '' -a known_files < <(svn ls "trunk")
for file in "${known_files[@]}"; do