Merge "Use '#!/usr/bin/env bash' as shebang in script files"
This commit is contained in:
commit
ea408d2e49
@ -1,8 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
|
||||||
# Bootstrap a minimal environment required to build
|
# Bootstrap a minimal environment required to build
|
||||||
# a Drupal distribution tarball on Ubuntu 12.04LTS (precise)
|
# a Drupal distribution tarball on Ubuntu 12.04 LTS (Precise Pangolin)
|
||||||
#
|
|
||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
|
||||||
# Build groups distribution from local filesystem instead of fetching
|
# Build groups distribution from local filesystem instead of fetching
|
||||||
# directly from git
|
# directly from git
|
||||||
#
|
|
||||||
|
|
||||||
TARGET_DIR=${TARGET_DIR:-publish}
|
TARGET_DIR=${TARGET_DIR:-publish}
|
||||||
PROFILE_NAME=${PROFILE_NAME:-groups}
|
PROFILE_NAME=${PROFILE_NAME:-groups}
|
||||||
@ -30,4 +29,4 @@ if [ -f Gemfile ]; then
|
|||||||
# cleanup
|
# cleanup
|
||||||
rm -rf .bundled_gems .sass-cache
|
rm -rf .bundled_gems .sass-cache
|
||||||
fi
|
fi
|
||||||
cd $cwd
|
cd $cwd
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
|
||||||
# Gating test script for Community portal
|
# Gating test script for Community portal
|
||||||
# 1. prepare mysql database
|
# 1. prepare mysql database
|
||||||
# 2. build distribution tarball
|
# 2. build distribution tarball
|
||||||
@ -8,7 +8,6 @@
|
|||||||
# Prerequisites:
|
# Prerequisites:
|
||||||
# bootstrap.sh required for setup php/drush environment.
|
# bootstrap.sh required for setup php/drush environment.
|
||||||
# git clone the project into groups directory.
|
# git clone the project into groups directory.
|
||||||
#
|
|
||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
@ -54,4 +53,4 @@ EOF
|
|||||||
|
|
||||||
mkdir -p /srv/vhosts/groups.local
|
mkdir -p /srv/vhosts/groups.local
|
||||||
drush dsd-init @groups-dev groups-snapshot.tar.gz
|
drush dsd-init @groups-dev groups-snapshot.tar.gz
|
||||||
drush @groups-dev status
|
drush @groups-dev status
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
|
||||||
# Extract translation template files from groups modules
|
# Extract translation template files from groups modules
|
||||||
#
|
#
|
||||||
# templates will be created in translations/ directory as
|
# templates will be created in translations/ directory as
|
||||||
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# cd profiles/groups
|
# cd profiles/groups
|
||||||
# bash ./scripts/pot-extract.sh
|
# ./scripts/pot-extract.sh
|
||||||
|
|
||||||
PROFILE_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
|
PROFILE_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
|
||||||
mkdir -p $PROFILE_DIR/translations/templates
|
mkdir -p $PROFILE_DIR/translations/templates
|
||||||
@ -25,4 +25,4 @@ ls -1 $MODULE_DIR | while read f; do
|
|||||||
sed 's/[ \t]*$//' > $POT_FILE
|
sed 's/[ \t]*$//' > $POT_FILE
|
||||||
done
|
done
|
||||||
# clean-up general.pot
|
# clean-up general.pot
|
||||||
rm $PROFILE_DIR/../../general.pot
|
rm $PROFILE_DIR/../../general.pot
|
||||||
|
7
scripts/pot-lang.sh
Normal file → Executable file
7
scripts/pot-lang.sh
Normal file → Executable file
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
|
||||||
# Create a new language skeleton from pot template files
|
# Create a new language skeleton from pot template files
|
||||||
#
|
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "Usage: $0 <lang-code>"
|
echo "Usage: $0 <lang-code>"
|
||||||
@ -17,4 +16,4 @@ ls -1 $PROFILE_DIR/translations/templates/*.pot | while read f; do
|
|||||||
SRC=$PROFILE_DIR/translations/templates/$FILENAME.pot
|
SRC=$PROFILE_DIR/translations/templates/$FILENAME.pot
|
||||||
DEST=$PROFILE_DIR/translations/$LANG_CODE/$FILENAME.$LANG_CODE.po
|
DEST=$PROFILE_DIR/translations/$LANG_CODE/$FILENAME.$LANG_CODE.po
|
||||||
cp $SRC $DEST
|
cp $SRC $DEST
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user