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
koke (author)
Tue May 27 01:23:25 -0700 2008
commit  e7336e4da8659986ebf2713654bdff9ff229d087
tree    ec592e10c44e21072bce35b0f42f81c5b5ab5800
parent  797b5556a5789719ea9f49578a039249249d5076
wordpress-scripts / Makefile
100644 28 lines (24 sloc) 0.775 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
VERSION := $(subst v,,$(lastword $(shell git tag -l 'v*' )))
PACKAGE_NAME = wordpress-scripts
RELEASE = $(PACKAGE_NAME)-$(VERSION)
REMOTE_HOST = moe.warp.es
REMOTE_PATH = public_html/wordpress-scripts
FILES = README.markdown \
    publish.sh \
    wp-import \
    wp-dump \
    wp-update-home
 
release: pkg/$(RELEASE).tar.gz
  @echo "Released version $(VERSION)"
  
pkg/$(PACKAGE_NAME)-%.tar.gz:
  mkdir -p pkg/
  git archive --format=tar --prefix=$(RELEASE)/ v$(VERSION) | gzip -c9 > $(RELEASE).tar.gz
  md5 < $(RELEASE).tar.gz > $(RELEASE).tar.gz.md5
  gpg --sign $(RELEASE).tar.gz.md5
  mv $(RELEASE).* pkg/
  ls -lR pkg/ | grep -v ls-lR > pkg/ls-lR
  @echo "Package ready in pkg/$(RELEASE).tar.gz"
  
upload: release
  scp pkg/$(RELEASE).* $(REMOTE_HOST):$(REMOTE_PATH)/
 
clean:
  rm -rf pkg