Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ pip-log.txt
# git repo that we parsing
drupal/
pages/
contributors/

cores.db
13 changes: 8 additions & 5 deletions cores.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env ruby

log_args = ARGV[0] || '--since=2011-03-09'
git_command = 'git --git-dir=drupal/.git --work-tree=drupal log 8.0.x ' + log_args + ' -s --format=%s'
log_args = ARGV[0] || ''
git_command = 'git --git-dir=drupal/.git --work-tree=drupal log ' + log_args + ' -s --format=%s'

# File.write("contributors/output.txt", git_command, mode: "a")

Encoding.default_external = Encoding::UTF_8
require 'erb'
Expand Down Expand Up @@ -51,17 +53,18 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<title>DrupalCores</title>
<meta name="description" content="A simple list of all contributors to Drupal 8 core">
<meta name="description" content="A simple list of all contributors to Drupal core">
<meta name="author" content="Eric J. Duran">
<link type="text/plain" rel="author" href="http://ericduran.github.com/drupalcores/humans.txt" />
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
</head>
<body>
<div id="header_wrap" class="outer">
<header class="inner">
<a id="forkme_banner" href="https://github.com/ericduran/drupalcores">View on GitHub</a>
<a id="forkme_banner" href="https://github.com/ericduran/drupalcores">View original on GitHub</a>
<span>Original author Eric J. Duran</span>
<h1 id="project_title">DrupalCores</h1>
<h2 id="project_tagline">A very basic table of all contributors to Drupal 8 Core</h2>
<h2 id="project_tagline">A very basic table of all contributors to Drupal Core</h2>
</header>
</div>

Expand Down
71 changes: 71 additions & 0 deletions fullRun.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/bin/bash

# git pull

echo "Updating Drupal"

if [ ! -d "./drupal" ]; then
git clone [email protected]:project/drupal.git
else
cd ./drupal
git checkout 11.x
git fetch
git rebase
cd ../
fi

docker run --rm -it -v "$PWD":/data ruby bash -c 'cd /data && ./cores.rb > ./contributors/main.html'

declare -a drupalVersions=(
"11.2.2"
"10.5.1"
"9.5.11"
"8.9.20"
"7.103"
"6.38"
"5.23"
"4.7.11"
)

declare -a versionDates=(
"2024-05-04"
"2022-01-28"
"2019-10-10"
"2013-06-24"
"2008-07-02"
"2006-11-13"
"2006-10-31"
"2005-03-07"
)

arraylength=${#drupalVersions[@]}

# use for loop to read all values and indexes
for (( i=0; i<${arraylength}; i++ ));
do
echo "Version ${drupalVersions[$i]} released ${versionDates[$i]}"
cd ./drupal
git switch ${drupalVersions[$i]}-version 2>/dev/null || git switch -c ${drupalVersions[$i]}-version tags/${drupalVersions[$i]}
cd ..
docker run --rm -it -v "$PWD":/data ruby bash -c "cd /data && ./cores.rb --since=${versionDates[$i]} > ./contributors/${drupalVersions[$i]}.html"
done

cd ./drupal
git switch 4.3.2-version 2>/dev/null || git switch -c 4.3.2-version tags/4.3.2
cd ..
docker run --rm -it -v "$PWD":/data ruby bash -c 'cd /data && ./cores.rb > ./contributors/4.3.2.html'
git checkout 11.x

echo "" > ./contributors/index.html
echo "<!DOCTYPE html><html lang="en"><body><ul>" >> ./contributors/index.html
echo "<li><a href='./main.html'>All</a></li>" >> ./contributors/index.html
for (( i=0; i<${arraylength}; i++ ));
do
echo "<li><a href='./${drupalVersions[$i]}.html'>${drupalVersions[$i]}</a></li>" >> ./contributors/index.html
done

echo "<li><a href='./4.3.2.html'>4.3.2 and before</a></li>" >> ./contributors/index.html
echo "</ul></body></html>" >> ./contributors/index.html

sudo chmod -R 777 contributors
sudo chown -R nic:nic contributors
39 changes: 39 additions & 0 deletions versionlinks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

# Before 4.3.2

# Check out 4.7.11
# 7 Mar, 2005
# https://www.drupal.org/project/drupal/releases/4.3.2

# Check out 5.23
# 31 Oct, 2006
# https://www.drupal.org/project/drupal/releases/5.0-beta1

# Check out 6.38
# 13 Nov, 2006
# https://www.drupal.org/project/drupal/releases/6.x-dev

# Check out 7.103
# 2 Jul, 2008
# https://www.drupal.org/project/drupal/releases/7.x-dev

# Check out 8.9.20
# 24 Jun, 2013
# https://www.drupal.org/project/drupal/releases/8.0-alpha2

# Check out 9.5.11
# 10 Oct, 2019
# https://www.drupal.org/project/drupal/releases/9.0.x-dev

# Check out 10.5.1
# 28 Jan, 2022
# https://www.drupal.org/project/drupal/releases/10.0.0-alpha1

# Checkout 11.2.2
# 4 May, 2024
# https://www.drupal.org/project/drupal/releases/11.0.x-dev


# All history
git checkout 11.x