Skip to content

Instantly share code, notes, and snippets.

@mariagwyn
mariagwyn / rmv_dpl-version_nums.sh
Created March 8, 2012 23:49
Remove version numbers from drupal .info files
#Script removes drupal packing script info from core module and theme info files.
# run on older version of drupal, BEFORE applying patches.
# This does not remove Acquia Drupal packing information.
#
# must: chmod +x ~/rmv_version_nums.shn (makes executable)
#
# - @mariagwyn with the help of greggles.
sed -i '' 's/; Information added by drupal.org packaging script on [0-9]*-[0-9]*-[0-9]*//g' modules/*/*.info themes/*/*.info themes/tests/*/*.info
sed -i '' 's/version = "[0-9]*.[0-9]*"//g' modules/*/*.info themes/*/*.info themes/tests/*/*.info
sed -i '' 's/project = "drupal"//g' modules/*/*.info themes/*/*.info themes/tests/*/*.info
@mariagwyn
mariagwyn / Drupal 8 Composer Example
Created October 10, 2016 21:27
Composer build file for a Drupal 8 site
{
"name": "Drupal 8 Composer Build",
"description": "Project json for a Drupal 8 sites",
"type": "project",
"require": {
"composer/installers": "^1.0.20",
"drupal-composer/drupal-scaffold": "^2.0.0",
"cweagans/composer-patches": "^1.5.0",
"drupal/core": "~8",
"drupal/lightning": "~8.1",