-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Emacs backup files extension to .gitignore
- Loading branch information
1 parent
d2fb9d8
commit 08c4938
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*~ | ||
*.pyc | ||
*-min.js | ||
*-min.css | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
usage() | ||
{ | ||
echo -ne "\nA simple script to facilitate component patching\n" | ||
echo -ne "and to decrease the development && testing turnaround time.\n" | ||
echo -ne "Usage: \n" | ||
echo -ne "\t git diff --no-color | ./patchComponent.sh (reqmon | reqmgr2 | reqmgr2ms...)\n or:\n" | ||
echo -ne "\t curl https://patch-diff.githubusercontent.com/raw/dmwm/deployment/pull/740.patch | ./patchComponent.sh (reqmon | reqmgr2 | reqmgr2ms...)\n" | ||
exit 1 | ||
} | ||
|
||
# TODO: To check against a list of components | ||
component=$1 | ||
[[ -z $component ]] && usage | ||
|
||
echo "Patching component: $component" | ||
|
||
# TODO: To fix path differences for wmagents and central services | ||
rootDir=/data/srv/current/apps/$component/lib/python2.7/site-packages/ | ||
stripLevel=3 | ||
|
||
patch --verbose -b --version-control=numbered -d $rootDir -p$stripLevel |