all deb DEBS_PATH home vagrant deb DEBBUILDER fakeroot dpkg-deb --buil

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
all: deb
DEBS_PATH = /home/vagrant/deb
DEBBUILDER = fakeroot dpkg-deb --build ./specs
VERSION = 0.6.0.3
APPNAME = unity3d-client
APPS_PATH = ~/debs/
HOSTNAME := $(shell hostname)
APT_PLATFORM := apt/precise
PUB_DIR = /home/unity3d/pub/
PUB_HOST = unity3d@playanyday.net
DIRNAME = ./specs/srv/web/assets/unity-client
deb:
rm -rf $(DIRNAME)
mkdir $(DIRNAME)
cp -r -L ./prep/* $(DIRNAME)
$(DEBBUILDER) $(DEBS_PATH)/$(APPNAME)-$(VERSION).deb
pub:
scp $(DEBS_PATH)/$(APPNAME)-$(VERSION).deb $(PUB_HOST):$(PUB_DIR)
ssh $(PUB_HOST) freight-add -c /home/unity3d/unity/etc/freight.conf $(PUB_DIR)/$(APPNAME)-$(VERSION).deb $(APT_PLATFORM)
ssh $(PUB_HOST) freight-cache -c /home/unity3d/unity/etc/freight.conf