Skip to content

Commit

Permalink
Store temporary project folder name into variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed May 11, 2019
1 parent efae566 commit 9001a5c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packaging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9001a5c

Please sign in to comment.