Permalink
Browse files

Now the main package can be directly added as submodule

  • Loading branch information...
1 parent 353b2da commit 408668631bc95a698c5d4a201af3c12dd38457c8 @mrimann committed Feb 21, 2012
Showing with 29 additions and 2 deletions.
  1. +28 −0 FLOW3Distributor.sh
  2. +1 −2 ideas.rst
View
@@ -101,6 +101,34 @@ while true; do
done
+# ask whether an own package shall be included
+echo
+echo
+echo "Now we're almost done, but we could add a package if you'd like...?"
+echo "Note: The package to be included needs to be available as a Git repo that we can add as a submodule."
+while true; do
+ read -p "Do you want to package an other package into this distribution? (y/n)" yn
+ case $yn in
+ [Yy]* ) read -p "Please enter the package Name including the VendorPrefix (e.g. \"Acme.Example\"): " packageName
+ read -p "Please enter the URL to the Git repository of this package: " packageRepoUrl
+ git submodule add ${packageRepoUrl} Packages/Application/${packageName}
+ ./flow3 package:activate ${packageName}
+ echo
+ echo
+ echo "Do not forget to run ./flow3 doctrine:migrate and to flush the FLOW3 caches!"
+ echo
+ break;;
+ [Nn]* ) echo "OK, no additional Package for you - let's finish with the other stuff..."
+ echo
+ break;;
+ * ) echo "Please answer yes or no.";;
+ esac
+done
+
+
+
+
+
# ignore certain files from being versioned by Git
touch .gitignore
View
@@ -5,10 +5,9 @@ Instead of using the issues/ticket functionality of GitHub, I'd rather have a sh
Priority "Would love to have that in"
-------------------------------------
-- asking for the package name that should be packaged into this distribution (and it's git repo URL so it can be directly hooked in as a submodule)
+ asking for the package name that should be packaged into this distribution (and it's git repo URL so it can be directly hooked in as a submodule)
✔ asking for the Distribution name to build
✔ asking whether the Admin-Package should be integrated and activated
-- instead of using the current folder script should as for the target directory
- remove the routes for the welcome package from the routes.yaml file
- adding the admin routes to routes.yaml if the Admin Package is included

0 comments on commit 4086686

Please sign in to comment.