GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Small collection of scripts to manage wordpress
Homepage: http://people.warp.es/~koke/wordpress-scripts/
Clone URL: git://github.com/koke/wordpress-scripts.git
Updated publish.sh to use config file
koke (author)
Tue May 13 13:12:36 -0700 2008
commit  12ad0a3d6a25979a56500684ad580a0f1f54f4d1
tree    1135043a5e727f236382cb3eba8566062ac2b9ff
parent  e246fef0ca0a70d661d047b3c1518c3b05e5a234
...
7
8
9
 
 
 
 
 
 
 
 
10
11
12
...
27
28
29
30
 
31
...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
...
35
36
37
 
38
39
0
@@ -7,6 +7,14 @@ fi
0
 
0
 PLUGIN=$1
0
 VERSION=$2
0
+BASEURL=$( cat ~/.wpplugins )
0
+
0
+if [ "x$BASEURL" == "x" ]; then
0
+ echo "You need to write where to upload the plugin in the ~/.wpplugins file"
0
+ echo "Example:"
0
+ echo " echo myserver.example.com:public_html/plugins/ > ~/.wpplugins"
0
+ exit 3
0
+fi
0
 
0
 if [ ! -d "wp-content" ]; then
0
     echo "You need to run this script from the wordpress base directory"
0
@@ -27,5 +35,5 @@ git tag -s v$VERSION -m "Version $VERSION"
0
 git push --mirror
0
 git archive --format=tar --prefix=$PLUGIN/ v$VERSION | gzip -c9 > $PLUGIN-$VERSION.tar.gz
0
 tar tzvf $PLUGIN-$VERSION.tar.gz
0
-scp $PLUGIN-$VERSION.tar.gz moe.warp.es:public_html/wp-plugins/$PLUGIN/
0
+scp $PLUGIN-$VERSION.tar.gz $BASEURL/$PLUGIN/
0
 popd

Comments

    No one has commented yet.