-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from asikart/staging
Add hooks
- Loading branch information
Showing
4 changed files
with
188 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<html><body></body></html> |
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,42 @@ | ||
#!/bin/sh | ||
# Use for Linux Bash & Windows Power Shell Script 1.0 | ||
|
||
# ASIKART Joomla! Extension Packager: merge script. | ||
# Copyright (c) 2013 Asikart.com. All rights reserved. | ||
# | ||
# When pulled, execute this script to copy files into your joomla site. | ||
|
||
$AMP_PATH="D:/www" | ||
|
||
$SITE="site_name" | ||
$COM="flower" | ||
$MOD="flower" | ||
$PLG="flower" | ||
$GUP="system" | ||
|
||
# admin | ||
cp -Force -r admin/* $AMP_PATH/$SITE/administrator/components/com_$COM | ||
echo "Admin copied" ; | ||
|
||
# site | ||
# cp -Force -r site/* $AMP_PATH/$SITE/components/com_$COM | ||
# echo "Site copied" ; | ||
|
||
# library | ||
cp -Force -r admin/windwalker/* $AMP_PATH/$SITE/libraries/windwalker | ||
echo "Lib copied" ; | ||
|
||
# modules site | ||
# cp -Force -r modules/mod_$MOD/* $AMP_PATH/$SITE/modules/mod_$MOD | ||
# echo "Module copied" ; | ||
|
||
# modules admin | ||
# cp -Force -r modules/mod_$MOD/* $AMP_PATH/$SITE/administrator/modules/mod_$MOD | ||
# echo "Module copied" ; | ||
|
||
# plugins | ||
cp -Force -r plugins/plg_$GUP"_"$PLG/* $AMP_PATH/$SITE/plugins/$GUP/$PLG | ||
echo "Plugin copied" ; | ||
|
||
|
||
exit 0 |
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,75 @@ | ||
#!/bin/sh | ||
# Use for Linux Bash & Windows Power Shell Script 1.0 | ||
|
||
# ASIKART Joomla! Extension Packager: pre-commit script. | ||
# Copyright (c) 2013 Asikart.com. All rights reserved. | ||
# | ||
# When commit, git will execute this script to copy files from your joomla site. | ||
|
||
SITE="site_name" | ||
COM="flower" | ||
MOD="flower" | ||
PLG="flower" | ||
GUP="system" | ||
|
||
|
||
rm ../com_$COM.zip | ||
|
||
# admin | ||
rm -rf admin | ||
mkdir admin | ||
cp -rf /var/www/$SITE/administrator/components/com_$COM/ admin | ||
echo "Admin copied" ; | ||
|
||
# site | ||
rm -rf site | ||
mkdir site | ||
cp -rf /var/www/$SITE/components/com_$COM/ site | ||
echo "Site copied" ; | ||
|
||
# library | ||
# rm -rf admin/windwalker | ||
# mkdir admin/windwalker | ||
# cp -rf /var/www/$SITE/libraries/windwalker/ admin/windwalker | ||
# rm -rf admin/windwalker/.git | ||
# rm -f admin/windwalker/.gitignore | ||
# echo "Lib copied" ; | ||
|
||
# xml and install script | ||
# cp -f /var/www/$SITE/administrator/components/com_$COM/$COM.xml . | ||
# echo "Component XML copied" ; | ||
|
||
# cp -f /var/www/$SITE/administrator/components/com_$COM/install.php . | ||
# echo "Component install scrip copied" ; | ||
|
||
# modules site | ||
# rm -rf modules | ||
# mkdir modules | ||
# cp -rf /var/www/$SITE/modules/mod_$MOD/ modules/mod_$MOD | ||
# echo "Module copied" ; | ||
|
||
# modules admin | ||
# rm -rf modules | ||
# mkdir modules | ||
# cp -rf /var/www/$SITE/administrator/modules/mod_$MOD/ modules/mod_$MOD | ||
# echo "Module copied" ; | ||
|
||
# plugins | ||
# rm -rf plugins | ||
# mkdir plugins | ||
# cp -rf /var/www/$SITE/plugins/$GUP/$PLG/ plugins/plg_$GUP\_$PLG | ||
# echo "Plugin copied" ; | ||
|
||
|
||
git add . | ||
echo "Execute git add" ; | ||
|
||
# For Win PowerShell | ||
# exec c:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -NoProfile -Command "Get-ChildItem . -r -Exclude .git | Write-Zip -OutputPath ../com_$COM.zip -IncludeEmptyDirectories" | ||
|
||
# For Mac | ||
zip -rq ../com_$COM.zip * | ||
echo "Ziped files" ; | ||
|
||
|
||
exit 0 |
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,70 @@ | ||
#!/bin/sh | ||
# Use for Linux Bash & Windows Power Shell Script 1.0 | ||
|
||
# ASIKART Joomla! Extension Packager: pre-commit script. | ||
# Copyright (c) 2013 Asikart.com. All rights reserved. | ||
# | ||
# When commit, git will execute this script to copy files from your joomla site. | ||
|
||
SITE="site_name" | ||
COM="flower" | ||
MOD="flower" | ||
PLG="flower" | ||
GUP="system" | ||
|
||
|
||
rm ../com_$COM.zip | ||
|
||
# admin | ||
rm -rf admin | ||
mkdir admin | ||
cp -rf D:/www/$SITE/administrator/components/com_$COM/* admin | ||
echo "Admin copied" ; | ||
|
||
# site | ||
rm -rf site | ||
mkdir site | ||
cp -rf D:/www/$SITE/components/com_$COM/* site | ||
echo "Site copied" ; | ||
|
||
# library | ||
# rm -rf admin/windwalker | ||
# mkdir admin/windwalker | ||
# cp -rf D:/www/$SITE/libraries/windwalker/* admin/windwalker | ||
# rm -rf admin/windwalker/.git | ||
# rm -f admin/windwalker/.gitignore | ||
# echo "Lib copied" ; | ||
|
||
# xml and install script | ||
# cp -f D:/www/$SITE/administrator/components/com_$COM/$COM.xml . | ||
# echo "Component XML copied" ; | ||
|
||
# cp -f D:/www/$SITE/administrator/components/com_$COM/install.php . | ||
# echo "Component install scrip copied" ; | ||
|
||
# modules site | ||
# rm -rf modules | ||
# mkdir modules | ||
# cp -rf D:/www/$SITE/modules/mod_$MOD/* modules/mod_$MOD | ||
# echo "Module copied" ; | ||
|
||
# modules admin | ||
# rm -rf modules | ||
# mkdir modules | ||
# cp -rf D:/www/$SITE/administrator/modules/mod_$MOD/* modules/mod_$MOD | ||
# echo "Module copied" ; | ||
|
||
# plugins | ||
# rm -rf plugins | ||
# mkdir -p plugins/plg_$GUP\_$PLG | ||
# cp -rf D:/www/$SITE/plugins/$GUP/$PLG/* plugins/plg_$GUP\_$PLG | ||
# echo "Plugin copied" ; | ||
|
||
|
||
git add . | ||
echo "Execute git add" ; | ||
|
||
# exec c:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -NoProfile -Command "Get-ChildItem . -r -Exclude .git | Write-Zip -OutputPath ../com_$COM.zip -IncludeEmptyDirectories" | ||
# echo "Ziped files" ; | ||
|
||
exit 0 |