sudar / wp-plugin-in-github

Collection of shell scripts that I am using to manage and deploy WordPress Plugins from github into svn
http://sudarmuthu.com/blog/developing-wordpress-plugins-in-github
76 stars 20 forks source link

Install script #19

Closed Mte90 closed 10 years ago

Mte90 commented 10 years ago

Is possible add a script or command for install and update this scripts?

sudar commented 10 years ago

Can you explain it a bit more? I am not sure if I fully understood what you are asking for.

Mte90 commented 10 years ago

This repo contain many scripts but install require a manually solution (also for the update). Is possible create a script that download, place for example in /usr/local/bin (auto completation for the console) and add the execution permission?

sudar commented 10 years ago

All you need to do right now to install these scripts is to just do a git clone and then add the path to the directory to $PATH.

Even if we have an install script, the users have to someone get that install script into their machine. So I am not sure if it would be super helpful.

But if you feel that there is a valid usecase then let me know and I will see if I can create one.

Mte90 commented 10 years ago

This is the script :-D

cd /tmp
git clone https://github.com/sudar/wp-plugin-in-github
chmod +x ./wp-plugin-in-github/*.sh
mv ./wp-plugin-in-github/*.sh /usr/local/bin/
rm -r ./wp-plugin-in-github
sudar commented 10 years ago

I actually just do git clone and add the directory to path. That way whenever there is update to the scripts they just have to do a git pull.

One small issue with the install script is that it is assuming nix (or nix like) system.

Mte90 commented 10 years ago

This is better because you don't need to add the directory path. Also the scripts of this repo are bash so Windows support is not required.