summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2023-10-14 18:47:28 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2023-10-14 18:47:28 -0600
commita76e7458aa34ebe08cbf7048df5d6b183f5bbaef (patch)
tree68760065b8f7b359065b9f66d88120482d07e763 /bin
parent52d63ae1bf613a707e630808b8307a8b46653475 (diff)
parent7ea9ed94f6c35d40bed5b4d7168f58645fbeba6e (diff)
Merge branch 'lukeshu/fix-bitrot'
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gitify18
-rwxr-xr-xbin/poolify4
2 files changed, 21 insertions, 1 deletions
diff --git a/bin/gitify b/bin/gitify
index 2c73bcd..1e5d43d 100755
--- a/bin/gitify
+++ b/bin/gitify
@@ -74,10 +74,26 @@ main() {
waurl="http://web.archive.org/web/$(murl2url "${listingdir##*/content-dir/}/")"
msg="$waurl"
fi
- gitdate="$(sed -r 's/(....)(..)(..)(..)(..)(..)/\1-\2-\3T\4:\5:\6/' <<<"$time")"
+
+ HACK_TZ=-0500
+ if [[ "$branch" == BETA/CVTUTF-1-4 || "$branch" == ALPHA/CVTUTF-1-5-draft ]]; then
+ HACK_TZ=-0400
+ fi
+ HACK_NAME='Luke Shumaker'
+ HACK_EMAIL='lukeshu@lukeshu.com'
+
+ gitdate="$(sed -r 's/(....)(..)(..)(..)(..)(..)/\1-\2-\3T\4:\5:\6 '"$HACK_TZ"'/' <<<"$time")"
+
git add .
+
export GIT_AUTHOR_DATE=$gitdate
+ export GIT_AUTHOR_NAME=$HACK_NAME
+ export GIT_AUTHOR_EMAIL=$HACK_EMAIL
+
export GIT_COMMITTER_DATE=$gitdate
+ export GIT_COMMITTER_NAME=$HACK_NAME
+ export GIT_COMMITTER_EMAIL=$HACK_EMAIL
+
git commit --allow-empty -m "$msg"
if [[ "$branch" != *.OLD ]]; then
lastbranch="$branch"
diff --git a/bin/poolify b/bin/poolify
index 6f9a109..e256157 100755
--- a/bin/poolify
+++ b/bin/poolify
@@ -71,6 +71,10 @@ main() {
echo '# Pass 2'
while read -r time url; do
+ if [[ "$url" == */2.0-Update/* ]]; then
+ # Gross hack
+ continue
+ fi
name="${url##*/Public/}"
dirpart="${name%/*}"
filepart="${name##*/}"