diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-28 12:46:14 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-28 12:46:14 -0400 |
commit | f58be23107efcadd610f0d66e5ed4eff8b5add8d (patch) | |
tree | eae1b3cd442d752280caeecb7da6c8aafd0e4a3d | |
parent | 5996e0abe77fe235b0eafbe75d38111a38ed99f9 (diff) |
rm main.sh
-rwxr-xr-x | main.sh | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/main.sh b/main.sh deleted file mode 100755 index a3f0ce3..0000000 --- a/main.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -set -e - -readonly top=$PWD - -# local remote -map=( -) - -# SVN init -if ! [[ -d "${top}/upstream/maven-svn/.svn" ]]; then - cd "${top}" - svn checkout --depth=empty https://svn.apache.org/repos/asf/maven svn -else - cd "${top}/svn" - svn update -fi - -# SVN checkout -cd "${top}/upstream/maven-svn" -for pair in "${map[@]}"; do - read svnpath localpath <<<"$pair" - svn update --parents "$svnpath" -done - -# Detect version -echo 'Finding last modified date...' -for pair in "${map[@]}"; do - read svnpath localpath <<<"$pair" - cd "${top}/upstream/maven-svn/${svnpath}" - LANG=C svn log -l 1 .|sed -n 2p -done | -cut -d'|' -f3 | date --file=- --utc --iso-8601 | sort | sed -n '$p' > "${top}/date.txt" - -# Create working directory -cd "${top}" -rm -rf build -mkdir build -for pair in "${map[@]}"; do - read svnpath localpath <<<"$pair" - mkdir -p "${top}/build/${localpath}" - lndir -silent "${top}/upstream/maven-svn/${svnpath}" "${top}/build/${localpath}" -done |