-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store temporary project folder name into variable
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 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 |
---|---|---|
|
@@ -132,19 +132,21 @@ echo "Please specify the release version number (e.g., 14.8.8)" | |
read version | ||
if [ ! -z "$version" ]; then | ||
name="pH7Builder" | ||
git clone [email protected]:pH7Software/pH7-Social-Dating-CMS.git --depth=1 | ||
tmp_project_folder="pH7-Social-Dating-CMS" | ||
|
||
echo "Moving to 'pH7-Social-Dating-CMS/' folder." | ||
cd pH7-Social-Dating-CMS | ||
git clone [email protected]:pH7Software/pH7-Social-Dating-CMS.git $tmp_project_folder --depth=1 | ||
|
||
echo "Moving to '${tmp_project_folder}/' folder." | ||
cd $tmp_project_folder | ||
|
||
run-packaging-cleanup | ||
zip -qr ../${name}-${version}.zip . | ||
|
||
echo "Moving back to previous main folder '../'" | ||
cd .. | ||
|
||
echo "Removing unnecessary 'pH7-Social-Dating-CMS/' folder." | ||
rm -rf pH7-Social-Dating-CMS | ||
echo "Removing unnecessary '${tmp_project_folder}/' folder." | ||
rm -rf $tmp_project_folder | ||
|
||
echo "Done! pH7Builder has been successfully packaged. Ready to be distributed!" | ||
echo "The zip file is available here: ${PWD}/${name}-${version}.zip" | ||
|