summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-13 10:43:37 +0900
committerGitHub <noreply@github.com>2021-03-13 10:43:37 +0900
commitcbcf3b7599e0a03eb2fc8a33b6f4aad78c80fbeb (patch)
tree7d111c9ccc13e716bd8e5bc280bf595b30684728
parentMerge pull request #7338 from syuilo/dependabot/npm_and_yarn/vue-and-vue/comp... (diff)
downloadsharkey-cbcf3b7599e0a03eb2fc8a33b6f4aad78c80fbeb.tar.gz
sharkey-cbcf3b7599e0a03eb2fc8a33b6f4aad78c80fbeb.tar.bz2
sharkey-cbcf3b7599e0a03eb2fc8a33b6f4aad78c80fbeb.zip
Delete .autogen directory
-rw-r--r--.autogen/check_pr.jq3
-rw-r--r--.autogen/next_url.jq2
-rw-r--r--.autogen/patreon.jq39
-rwxr-xr-x.autogen/update_readme_patreon.sh87
4 files changed, 0 insertions, 131 deletions
diff --git a/.autogen/check_pr.jq b/.autogen/check_pr.jq
deleted file mode 100644
index 0adb0b503d..0000000000
--- a/.autogen/check_pr.jq
+++ /dev/null
@@ -1,3 +0,0 @@
-.[]
-.head
-.label
diff --git a/.autogen/next_url.jq b/.autogen/next_url.jq
deleted file mode 100644
index b4c3b819a5..0000000000
--- a/.autogen/next_url.jq
+++ /dev/null
@@ -1,2 +0,0 @@
-.links
-.next
diff --git a/.autogen/patreon.jq b/.autogen/patreon.jq
deleted file mode 100644
index c761d587b8..0000000000
--- a/.autogen/patreon.jq
+++ /dev/null
@@ -1,39 +0,0 @@
-(
- .data |
- map(
- select(
- .relationships
- .currently_entitled_tiers
- .data[]
- )
- ) |
- map(
- .relationships
- .user
- .data
- .id
- )
-) as $data |
-.included |
-map(
- select(
- .id as $id |
- $data |
- contains(
- [
- $id
- ]
- )
- )
-) |
-map(
- .attributes |
- [
- .full_name,
- .thumb_url,
- .url
- ] |
- @tsv
-) |
-.[] |
-@text
diff --git a/.autogen/update_readme_patreon.sh b/.autogen/update_readme_patreon.sh
deleted file mode 100755
index 7a108c2b67..0000000000
--- a/.autogen/update_readme_patreon.sh
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/usr/bin/env bash
-# __MISSKEY_BEARER_TOKEN=
-# __MISSKEY_CAMPAIGN_ID=
-# __MISSKEY_GITHUB_TOKEN=
-# __MISSKEY_HEAD=syuilo:patch-autogen
-# __MISSKEY_REPO=syuilo/misskey
-# __MISSKEY_BRANCH=develop
-test "$(curl -LSs -w '\n' -- "https://api.github.com/repos/$REPO/pulls?access_token=$__MISSKEY_GITHUB_TOKEN" | jq -r -f check_pr.jq | grep $__MISSKEY_HEAD)" && exit 1
-cd "$(dirname $0)/.." && \
-touch null.cache && \
-rm *.cache && \
-git checkout $__MISSKEY_BRANCH && \
-git pull origin $__MISSKEY_BRANCH && \
-git pull upstream $__MISSKEY_BRANCH && \
-git stash && \
-git rebase -f upstream/$__MISSKEY_BRANCH && \
-git branch patch-autogen && \
-git checkout patch-autogen && \
-git reset --hard HEAD || \
-exit 1
-touch patreon.md.cache && \
-rm patreon.md.cache && \
-echo '<!-- PATREON_START -->' > patreon.md.cache && \
-url="https://www.patreon.com/api/oauth2/v2/campaigns/$__MISSKEY_CAMPAIGN_ID/members?include=currently_entitled_tiers,user&fields%5Btier%5D=title&fields%5Buser%5D=full_name,thumb_url,url,hide_pledges"
-while :
- do
- touch patreon.raw.cache && \
- rm patreon.raw.cache && \
- curl -LSs -w '\n' -H "Authorization: Bearer $__MISSKEY_BEARER_TOKEN" -- $url > patreon.raw.cache && \
- touch patreon.cache && \
- rm patreon.cache && \
- cat patreon.raw.cache | \
- jq -r -f patreon.jq >> patreon.cache && \
- echo '<table><tr>' >> patreon.md.cache && \
- cat patreon.cache | \
- awk -F'\t' '{print $2,$1}' | \
- sed -e 's/ /\\" alt=\\"/' | \
- xargs -I% echo '<td><img src="%" width="100"></td>' >> patreon.md.cache && \
- echo '</tr><tr>' >> patreon.md.cache && \
- cat patreon.cache | \
- awk -F'\t' '{print $3,$1}' | \
- sed -e 's/ /\\">/' | \
- xargs -I% echo '<td><a href="%</a></td>' >> patreon.md.cache && \
- echo '</tr></table>' >> patreon.md.cache || \
- exit 1
- new_url="$(cat patreon.raw.cache | jq -r -f next_url.jq)"
- test "$new_url" = 'null' && \
- break || \
- URL="$url"
-done
-ignore= && \
-echo -e "\n**Last updated:** $(date -uR | sed 's/\+0000/UTC/')\n<!-- PATREON_END -->" >> patreon.md.cache && \
-touch README.md && \
-touch .autogen/README.md && \
-rm .autogen/README.md && \
-mv README.md .autogen/README.md && \
-cat .autogen/README.md | while IFS= read line;
- do
- if [[ -z "$ignore" ]]
- then
- if [[ "$line" = '<!-- PATREON_START -->' ]]
- then
- ignore='PATREON_INSIDE'
- else
- echo "$line" >> README.md
- fi
- else
- if [[ "$LINE" = '<!-- PATREON_END -->' ]]
- then
- ignore=
- cat patreon.md.cache >> README.md
- fi
- fi
-done
-cat patreon.md.cache
-touch null.cache && \
-rm *.cache && \
-diff .autogen/README.md README.md > diff.cache
-cat diff.cache && \
-test 4 -lt $(cat diff.cache | wc -l) && \
-git add README.md && \
-git commit -m 'Update README.md [AUTOGEN]' && \
-git push -f origin patch-autogen && \
-curl -LSs -w '\n' -X POST -d '{"title":"[AUTOMATED] Update README.md","body":"*This pull request was created by a tool.*","head":"'$__MISSKEY_HEAD'","base":"'$__MISSKEY_BRANCH'"}' -- "https://api.github.com/repos/$__MISSKEY_REPO/pulls?access_token=$__MISSKEY_GITHUB_TOKEN"
-git stash
-git checkout $__MISSKEY_BRANCH
-git branch -D patch-autogen