General TC > Programming & Scripting - Unofficial
urlencode_build script
mocore:
makefile for building gridsite urlencode
* modified/updated version of https://github.com/2ion/urlencode
--- Code: ---URL="http://raw.githubusercontent.com/CESNET/gridsite/gridsite-core_branch_2_0_5_cherry"
urlencode: get-source
gcc -02 -i ./interface src/urlencode.c src/grst_http.c -o urlencode
get-source:
install -m 0700 -d src
wget -Psrc $(URL)/src/urlencode.c
wget -Psrc $(URL)/src/grst_http.c
install -m 0700 -d interface
wget -Pinterface $(URL)/interface.c
clean:
-rm -rf src interface
-rm urlencode
--- End code ---
build-deps
---
openssl-dev
linux- ${KERNEL} _api_headers.tcz
---
gerald_clark:
And your question?
mocore:
I was just posting the make file and build deps , so i dont forget/loose the info and just in case it was of any use/intrest to any one !
I hope that is no problem... ( it should work but might have errors as it was a made by hand copy , idk if tab's will survive )
I might get round to building a tcz and submiting it at some point , just not this one!
gerald_clark:
Blogging is not allowed.
The script accomplishes nothing useful for Core.
mocore:
--- Quote from: gerald_clark on August 11, 2015, 11:16:53 AM ---Blogging is not allowed.
The script accomplishes nothing useful for Core.
--- End quote ---
It lets me build some bin i was missing in core ,
any way the above had some errors so ..
This (hopfuly more useful) make script builds a tcz + tcz.lst and tcz.md5.txt 4core
--- Code: ---URL="http://raw.githubusercontent.com/CESNET/gridsite/gridsite-core_branch_2_0_5_cherry"
mk-tcz: urlencode
mkdir -p /tmp/urlencode/usr/local/bin
cp ./urlencode /tmp/urlencode/usr/local/bin
mksquashfs urlencode urlencode.tcz
find /tmp/urlencode -not -type d | cut -b 15- > urlencode.tcz.list
md5sum urlencode.tcz > urlencode.tcz.md5.txt
urlencode: get-source
gcc -O2 -I ./interface src/urlencode.c src/grst_http.c -o urlencode
get-source:
install -m 0700 -d src
[ -f ./src/urlencode.c ] || wget -Psrc $(URL)/src/urlencode.c
[ -f ./src/grst_http.c ] || wget -Psrc $(URL)/src/grst_http.c
install -m 0700 -d interface
[ -f ./interface/gridsite.h ] || wget -Pinterface $(URL)/interface/gridsite.h
clean:
-rm -rf /tmp/urlencode
-rm urlencode urlencode.tcz urlencode.tcz.list urlencode.tcz.md5.txt
# -rm -rf src interface
--- End code ---
Question's
Will the buildscripts/tree/ ever contain any scripts ?
Could this script 'usefull' enough to be included in it?
Navigation
[0] Message Index
[#] Next page
Go to full version