mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
Slackware support to website generation.
This commit is contained in:
parent
a93a28230d
commit
6a4e175f86
3 changed files with 14 additions and 2 deletions
|
@ -15,9 +15,12 @@ base:
|
||||||
$(MAKE) -C archlinux/this/
|
$(MAKE) -C archlinux/this/
|
||||||
$(MAKE) -C archlinux/this/ CARCH=i686
|
$(MAKE) -C archlinux/this/ CARCH=i686
|
||||||
$(MAKE) -C win32/
|
$(MAKE) -C win32/
|
||||||
|
$(MAKE) -C slackware/this/
|
||||||
|
$(MAKE) -C slackware/this/ CARCH=i686
|
||||||
@mv deb/*.deb ./
|
@mv deb/*.deb ./
|
||||||
@mv archlinux/this/*pkg.tar.xz ./
|
@mv archlinux/this/*pkg.tar.xz ./
|
||||||
@mv win32/*.zip ./
|
@mv win32/*.zip ./
|
||||||
|
@mv slackware/this/*.txz ./
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
@echo "APPKEY:76vh3q42hnvmzm3" > dropbox_config
|
@echo "APPKEY:76vh3q42hnvmzm3" > dropbox_config
|
||||||
|
@ -28,7 +31,7 @@ upload:
|
||||||
@wget -q "http://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh"
|
@wget -q "http://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh"
|
||||||
@chmod +x dropbox_uploader.sh
|
@chmod +x dropbox_uploader.sh
|
||||||
@sed -i -e "s/~\/.dropbox_uploader/.\/dropbox_config/g" $$(basename $(DROPBOX))
|
@sed -i -e "s/~\/.dropbox_uploader/.\/dropbox_config/g" $$(basename $(DROPBOX))
|
||||||
@find . -type f -regex ".*/.*\.\(xz\|deb\|zip\)" -exec ./$$(basename $(DROPBOX)) upload {} \;
|
@find . -type f -regex ".*/.*\.\(xz\|deb\|zip\|txz\)" -exec ./$$(basename $(DROPBOX)) upload {} \;
|
||||||
@rm dropbox_config dropbox_uploader.sh
|
@rm dropbox_config dropbox_uploader.sh
|
||||||
|
|
||||||
website:
|
website:
|
||||||
|
@ -49,5 +52,6 @@ clean:
|
||||||
@rm -f *.zip
|
@rm -f *.zip
|
||||||
@rm -f *.gen
|
@rm -f *.gen
|
||||||
@rm -f *.html
|
@rm -f *.html
|
||||||
|
@rm -f *.txz
|
||||||
|
|
||||||
all: base upload
|
all: base upload
|
||||||
|
|
|
@ -5,7 +5,7 @@ MAJOR := $(shell sed -n -e '/GMQCC_VERSION_MAJOR/{s/.* .* //;p;q;}' $(HEADER))
|
||||||
MINOR := $(shell sed -n -e '/GMQCC_VERSION_MINOR/{s/.* .* //;p;q;}' $(HEADER))
|
MINOR := $(shell sed -n -e '/GMQCC_VERSION_MINOR/{s/.* .* //;p;q;}' $(HEADER))
|
||||||
PATCH := $(shell sed -n -e '/GMQCC_VERSION_PATCH/{s/.* .* //;p;q;}' $(HEADER))
|
PATCH := $(shell sed -n -e '/GMQCC_VERSION_PATCH/{s/.* .* //;p;q;}' $(HEADER))
|
||||||
CARCH := $(shell uname -m)
|
CARCH := $(shell uname -m)
|
||||||
PKGDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH)-$(CARCH)-git
|
PKGDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH)-$(CARCH)
|
||||||
PKG := $(PKGDIR).txz
|
PKG := $(PKGDIR).txz
|
||||||
PKGINFO := $(PKGDIR)/.PKGINFO
|
PKGINFO := $(PKGDIR)/.PKGINFO
|
||||||
DESTDIR := distro/slackware/this/$(PKGDIR)
|
DESTDIR := distro/slackware/this/$(PKGDIR)
|
||||||
|
|
|
@ -74,6 +74,9 @@ int security_decode(unsigned char *dest, const unsigned char *src, int srclen) {
|
||||||
#define DEBIAN_64_REF "%sgmqcc-%c.%c.%c-x86_64.deb%s"
|
#define DEBIAN_64_REF "%sgmqcc-%c.%c.%c-x86_64.deb%s"
|
||||||
#define WINDOWS_32_REF "%sgmqcc-%c.%c.%c-win32.zip%s"
|
#define WINDOWS_32_REF "%sgmqcc-%c.%c.%c-win32.zip%s"
|
||||||
#define WINDOWS_64_REF "%sgmqcc-%c.%c.%c-win64.zip%s"
|
#define WINDOWS_64_REF "%sgmqcc-%c.%c.%c-win64.zip%s"
|
||||||
|
#define SLACKWARE_32_REF "%sgmqcc-%c.%c.%c-i686.txz%s"
|
||||||
|
#define SLACKWARE_64_REF "%sgmqcc-%c.%c.%c-x86_64.txz%s"
|
||||||
|
|
||||||
|
|
||||||
#define HTML "\
|
#define HTML "\
|
||||||
<!doctype html>\
|
<!doctype html>\
|
||||||
|
@ -121,6 +124,10 @@ int security_decode(unsigned char *dest, const unsigned char *src, int srclen) {
|
||||||
<td><a href=\"%s\">Download</a></td>\
|
<td><a href=\"%s\">Download</a></td>\
|
||||||
<td><a href=\"%s\">Download</a></td>\
|
<td><a href=\"%s\">Download</a></td>\
|
||||||
</tr>\
|
</tr>\
|
||||||
|
<tr>\
|
||||||
|
<td>Slackware</td>\
|
||||||
|
<td><a href=\"%s\">Download</a></td>\
|
||||||
|
<td><a href=\"%s\">Download</a></td>\
|
||||||
<tr>\
|
<tr>\
|
||||||
<td>Windows</td>\
|
<td>Windows</td>\
|
||||||
<td><a href=\"%s\">Download</a></td>\
|
<td><a href=\"%s\">Download</a></td>\
|
||||||
|
@ -140,6 +147,7 @@ int security_decode(unsigned char *dest, const unsigned char *src, int srclen) {
|
||||||
static char build_table[][4096] = {
|
static char build_table[][4096] = {
|
||||||
ARCHLINUX_32_REF, ARCHLINUX_64_REF,
|
ARCHLINUX_32_REF, ARCHLINUX_64_REF,
|
||||||
DEBIAN_32_REF, DEBIAN_64_REF,
|
DEBIAN_32_REF, DEBIAN_64_REF,
|
||||||
|
SLACKWARE_32_REF, SLACKWARE_64_REF,
|
||||||
WINDOWS_32_REF, WINDOWS_64_REF
|
WINDOWS_32_REF, WINDOWS_64_REF
|
||||||
};
|
};
|
||||||
/* </tag> */
|
/* </tag> */
|
||||||
|
|
Loading…
Reference in a new issue