mirror of https://github.com/9001/r0c.git
fix make-tgz-release
This commit is contained in:
parent
d4630af35f
commit
871dd8ab99
|
@ -52,8 +52,6 @@ tgz_path="$out_dir/r0c-$ver.tar.gz"
|
||||||
rm "$zip_path" 2>/dev/null || true
|
rm "$zip_path" 2>/dev/null || true
|
||||||
rm "$tgz_path" 2>/dev/null || true
|
rm "$tgz_path" 2>/dev/null || true
|
||||||
|
|
||||||
#sed -ri 's/^(ADMIN_PWD *= *u).*/\1"hunter2"/' r0c/config.py
|
|
||||||
|
|
||||||
tmp="$(mktemp -d)"
|
tmp="$(mktemp -d)"
|
||||||
rls_dir="$tmp/r0c-$ver"
|
rls_dir="$tmp/r0c-$ver"
|
||||||
mkdir "$rls_dir"
|
mkdir "$rls_dir"
|
||||||
|
@ -65,13 +63,6 @@ cd "$rls_dir"
|
||||||
find -type d -exec chmod 755 '{}' \+
|
find -type d -exec chmod 755 '{}' \+
|
||||||
find -type f -exec chmod 644 '{}' \+
|
find -type f -exec chmod 644 '{}' \+
|
||||||
|
|
||||||
grep -qE 'ADMIN_PWD *= *u"hunter2"' r0c/config.py ||
|
|
||||||
{
|
|
||||||
echo "password not hunter2"
|
|
||||||
rm -rf "$tmp"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
commaver="$(
|
commaver="$(
|
||||||
printf '%s\n' "$ver" |
|
printf '%s\n' "$ver" |
|
||||||
sed -r 's/\./, /g'
|
sed -r 's/\./, /g'
|
||||||
|
@ -94,7 +85,6 @@ grep -qE "^VERSION *= \(${commaver}\)$" r0c/__version__.py ||
|
||||||
|
|
||||||
rm -rf .vscode
|
rm -rf .vscode
|
||||||
rm \
|
rm \
|
||||||
r0c.sublime-project \
|
|
||||||
.editorconfig \
|
.editorconfig \
|
||||||
.gitattributes \
|
.gitattributes \
|
||||||
.gitignore
|
.gitignore
|
||||||
|
|
Loading…
Reference in New Issue