Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script customize-app not available for Windows #3

Open
schumacher-cgn opened this issue Apr 24, 2015 · 1 comment
Open

Script customize-app not available for Windows #3

schumacher-cgn opened this issue Apr 24, 2015 · 1 comment

Comments

@schumacher-cgn
Copy link

The script "customize-app" is a .sh Script, that does not run on Windows. Could you provide a Windows Script as well?

Thanks
Maik

@twbocklertorch
Copy link

This worked for me using Git Bash on Windows:
#!/bin/bash

if [ $# -ne 2 ]
then
echo "This script requires exactly 2 arguments: brand_name followed by app_name"
echo "For example: ./customize-app.sh Geometrixx ShapesCon"
exit 1
fi

find . -depth -type d -name brand_name_placeholder -execdir mv {} $1 ;
find . -depth -type d -name app_name_placeholder -execdir mv {} $2 ;
find . -depth -type d -name app_name_placeholder-dev -execdir mv {} $2-dev ;

find . -depth -type f ( -name '.xml' -o -name '.jsp' -o -name index.html -o -name config.json ) -exec sed -i s/brand_name_placeholder/$1/g {} ;
find . -depth -type f ( -name '.xml' -o -name '.jsp' -o -name index.html -o -name config.json ) -exec sed -i s/app_name_placeholder/$2/g {} ;

echo "Finished customizing app with $1 brand name and $2 app name."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants