From 6a4e175f86c5f8b292f545ca8bf7748bab0abd33 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Mon, 19 Aug 2013 23:15:41 +0000 Subject: [PATCH] Slackware support to website generation. --- distro/Makefile | 6 +++++- distro/slackware/this/Makefile | 2 +- doc/html/download.c | 8 ++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/distro/Makefile b/distro/Makefile index 96ddce2..49555b8 100644 --- a/distro/Makefile +++ b/distro/Makefile @@ -15,9 +15,12 @@ base: $(MAKE) -C archlinux/this/ $(MAKE) -C archlinux/this/ CARCH=i686 $(MAKE) -C win32/ + $(MAKE) -C slackware/this/ + $(MAKE) -C slackware/this/ CARCH=i686 @mv deb/*.deb ./ @mv archlinux/this/*pkg.tar.xz ./ @mv win32/*.zip ./ + @mv slackware/this/*.txz ./ upload: @echo "APPKEY:76vh3q42hnvmzm3" > dropbox_config @@ -28,7 +31,7 @@ upload: @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\|zip\)" -exec ./$$(basename $(DROPBOX)) upload {} \; + @find . -type f -regex ".*/.*\.\(xz\|deb\|zip\|txz\)" -exec ./$$(basename $(DROPBOX)) upload {} \; @rm dropbox_config dropbox_uploader.sh website: @@ -49,5 +52,6 @@ clean: @rm -f *.zip @rm -f *.gen @rm -f *.html + @rm -f *.txz all: base upload diff --git a/distro/slackware/this/Makefile b/distro/slackware/this/Makefile index 3f70b8b..294c396 100644 --- a/distro/slackware/this/Makefile +++ b/distro/slackware/this/Makefile @@ -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)) PATCH := $(shell sed -n -e '/GMQCC_VERSION_PATCH/{s/.* .* //;p;q;}' $(HEADER)) CARCH := $(shell uname -m) -PKGDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH)-$(CARCH)-git +PKGDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH)-$(CARCH) PKG := $(PKGDIR).txz PKGINFO := $(PKGDIR)/.PKGINFO DESTDIR := distro/slackware/this/$(PKGDIR) diff --git a/doc/html/download.c b/doc/html/download.c index cfcf636..0059c03 100644 --- a/doc/html/download.c +++ b/doc/html/download.c @@ -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 WINDOWS_32_REF "%sgmqcc-%c.%c.%c-win32.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 "\ \ @@ -121,6 +124,10 @@ int security_decode(unsigned char *dest, const unsigned char *src, int srclen) { Download\ Download\ \ + \ + Slackware\ + Download\ + Download\ \ Windows\ Download\ @@ -140,6 +147,7 @@ int security_decode(unsigned char *dest, const unsigned char *src, int srclen) { static char build_table[][4096] = { ARCHLINUX_32_REF, ARCHLINUX_64_REF, DEBIAN_32_REF, DEBIAN_64_REF, + SLACKWARE_32_REF, SLACKWARE_64_REF, WINDOWS_32_REF, WINDOWS_64_REF }; /* */ -- 2.39.2