mirror of https://github.com/9001/r0c.git
version 1.0.2
This commit is contained in:
parent
0aebed2757
commit
6efb63db90
|
@ -2,6 +2,13 @@
|
|||
set -e
|
||||
echo
|
||||
|
||||
sed=$( which gsed 2>/dev/null || which sed)
|
||||
find=$(which gfind 2>/dev/null || which find)
|
||||
|
||||
which md5sum 2>/dev/null >/dev/null &&
|
||||
md5sum=md5sum ||
|
||||
md5sum="md5 -r"
|
||||
|
||||
ver="$1"
|
||||
|
||||
[[ "x$ver" == x ]] &&
|
||||
|
@ -19,7 +26,7 @@ ver="$1"
|
|||
exit 1
|
||||
}
|
||||
|
||||
out_dir="$(pwd | sed -r 's@/[^/]+$@@')"
|
||||
out_dir="$(pwd | $sed -r 's@/[^/]+$@@')"
|
||||
zip_path="$out_dir/r0c-$ver.zip"
|
||||
tgz_path="$out_dir/r0c-$ver.tar.gz"
|
||||
|
||||
|
@ -36,7 +43,7 @@ tgz_path="$out_dir/r0c-$ver.tar.gz"
|
|||
rm "$zip_path" 2>/dev/null || true
|
||||
rm "$tgz_path" 2>/dev/null || true
|
||||
|
||||
#sed -ri "s/^(ADMIN_PWD *= *u).*/\1'hunter2'/" r0c/config.py
|
||||
#$sed -ri "s/^(ADMIN_PWD *= *u).*/\1'hunter2'/" r0c/config.py
|
||||
|
||||
tmp="$(mktemp -d)"
|
||||
rls_dir="$tmp/r0c-$ver"
|
||||
|
@ -47,8 +54,8 @@ git archive master |
|
|||
tar -x -C "$rls_dir"
|
||||
|
||||
cd "$rls_dir"
|
||||
find -type d -exec chmod 755 '{}' \+
|
||||
find -type f -exec chmod 644 '{}' \+
|
||||
$find -type d -exec chmod 755 '{}' \+
|
||||
$find -type f -exec chmod 644 '{}' \+
|
||||
|
||||
grep -qE "ADMIN_PWD *= *u'hunter2'" r0c/config.py ||
|
||||
{
|
||||
|
@ -84,9 +91,9 @@ chmod 755 \
|
|||
scripts/format-wire-logs.sh \
|
||||
test/run-stress.sh
|
||||
|
||||
find -type f -exec md5sum '{}' \+ |
|
||||
sed -r 's/(.{32})(.*)/\2\1/' | sort |
|
||||
sed -r 's/(.*)(.{32})/\2\1/' > ../.sums.md5
|
||||
$find -type f -exec $md5sum '{}' \+ |
|
||||
$sed -r 's/(.{32})(.*)/\2\1/' | sort |
|
||||
$sed -r 's/(.*)(.{32})/\2\1/' > ../.sums.md5
|
||||
mv ../.sums.md5 .
|
||||
|
||||
cd ..
|
||||
|
@ -100,5 +107,5 @@ echo " $zip_path"
|
|||
echo " $tgz_path"
|
||||
echo
|
||||
|
||||
# function alr() { ls -alR r0c-$1 | sed -r "s/r0c-$1/r0c/" | sed -r 's/[A-Z][a-z]{2} [0-9 ]{2} [0-9]{2}:[0-9]{2}//' > $1; }; for x in master rls src ; do alr $x; done
|
||||
# function alr() { ls -alR r0c-$1 | $sed -r "s/r0c-$1/r0c/" | $sed -r 's/[A-Z][a-z]{2} [0-9 ]{2} [0-9]{2}:[0-9]{2}//' > $1; }; for x in master rls src ; do alr $x; done
|
||||
|
||||
|
|
Loading…
Reference in New Issue