mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-21 10:21:03 +00:00
Uploadability from package building using dropbox API (all inside a makefile with magics)
This commit is contained in:
parent
c42a853e0b
commit
6900e50289
1 changed files with 18 additions and 2 deletions
|
@ -1,8 +1,12 @@
|
|||
UNAME := $(shell uname -m)
|
||||
DROPBOX := dropbox_uploader.sh
|
||||
UNAME := $(shell uname -m)
|
||||
ifneq ($(shell uname -m), x86_64)
|
||||
$(error Cannot build packages without an x86_64 capable CPU)
|
||||
endif
|
||||
|
||||
.NOTPARALLEL: base
|
||||
.NOTPARALLEL: upload
|
||||
|
||||
base:
|
||||
$(MAKE) -C deb/
|
||||
$(MAKE) -C deb/ CARCH=i686
|
||||
|
@ -11,8 +15,20 @@ base:
|
|||
@mv deb/*.deb ./
|
||||
@mv archlinux/this/*pkg.tar.xz ./
|
||||
|
||||
upload:
|
||||
@echo "APPKEY:76vh3q42hnvmzm3" > dropbox_config
|
||||
@echo "APPSECRET:tmeecht2cmh72xa" >> dropbox_config
|
||||
@echo "ACCESS_LEVEL:sandbox" >> dropbox_config
|
||||
@echo "OAUTH_ACCESS_TOKEN:w0bxzf0dft8edfq" >> dropbox_config
|
||||
@echo "OAUTH_ACCESS_TOKEN_SECRET:9vosx7x8gy4kgjk" >> dropbox_config
|
||||
@wget -q "http://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh"
|
||||
@chmod +x dropbox_uploader.sh
|
||||
@sed -i -e "s/~\/.dropbox_uploader/.\/dropbox_config/g" $$(basename $(DROPBOX))
|
||||
@find . -type f -regex ".*/.*\.\(xz\|deb\)" -exec ./$$(basename $(DROPBOX)) upload {} \;
|
||||
@rm dropbox_config dropbox_uploader.sh
|
||||
|
||||
clean:
|
||||
@rm -f *.deb
|
||||
@rm -f *.pkg.tar.xz
|
||||
|
||||
all: base
|
||||
all: base upload
|
||||
|
|
Loading…
Reference in a new issue