https://github.com/cuboulder/d7core
https://github.com/cuboulder/d7core
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cuboulder/d7core
- Owner: CuBoulder
- License: gpl-2.0
- Created: 2020-01-16T15:53:48.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2022-02-18T22:39:47.000Z (over 4 years ago)
- Last Synced: 2025-03-16T02:29:05.633Z (over 1 year ago)
- Language: PHP
- Size: 6.56 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
## Upon New D7 Releases
Inside a local copy of the this repository run the following commands:
### Create new local branch
- change `xx` to the issue's number
```
git checkout -b feature/xx
```
### Clone the new Drupal 7 codebase.
- change `7.xx` to what the current version is.
```
$ git clone https://git.drupalcode.org/project/drupal.git --branch 7.xx --single-branch
```
### Copy the new code into the root level of d7core's repo
```
$ cp -rf drupal/* . && \
cp drupal/.editorconfig . && \
cp drupal/.gitignore . && \
cp drupal/.htaccess .
```
### Remove modules we do not require
```
$ rm -rf web.config \
modules/php \
modules/aggregator \
modules/blog \
modules/book \
modules/color \
modules/contact \
modules/translation \
modules/dashboard \
modules/forum \
modules/locale \
modules/openid \
modules/overlay \
modules/poll \
modules/rdf \
modules/search \
modules/statistics\
modules/toolbar \
modules/tracker \
modules/trigger \
drupal
```
### Apply patches to codebase for expected functionality
```
$ git apply patches/2789723-1.patch && \
git apply patches/d7-require-tld-for-mailto-links-2016739-76.patch && \
git apply patches/watchdog_pending_updates.patch
```
### Commit and push changes up to
```
$ git add *
$ git status
$ git commit -m 'Hardened 7.xx core.'
$ git push -u origin feature/xx
```