Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2018-02-27 00:00:00Z and 2018-02-28 00:00:00Z
Avatar
ChillerDragon 2018-02-27 12:43:22Z
yo i have some c files and i want to compile all of them except one? how do i do it using bash and clang? i tried: clang *.c !(error.c)
Avatar
ChillerDragon 2018-02-27 12:55:09Z
found a hacky solution for interested ppl clang `find . -name "*.c" -not -name "error.c"` (edited)
Avatar
that's not hacky 🙂
Avatar
[quakenet] <Learath2> much cleaner than what I would have come up with to be certain :P
Avatar
find . -name "*.c" -not -name "error.c" -print0 | xargs -0 clang
13:38
to handle files with weird characters like spaces
Avatar
that even works for file names with hyphens 😉
13:38
because each file name has a . in the beginning
Avatar
[quakenet] <Learath2> find | grep -E ".cpp$" | grep -v fs.cpp | tr '\n' ' ' | xargs clang
Avatar
tr '\n' ' ' is useless
13:42
this also compiles files like abcpp
13:42
doesn't compile hfs.cpp
13:42
😛
Avatar
[quakenet] <Learath2> find | grep -E ".cpp$" | grep -Ev "^fs.cpp$" | sed s/^/"/ | sed s/$/"/ | tr '\n' ' ' | xargs clang
13:43
[quakenet] <Learath2> find | grep -E ".cpp$" | grep -Ev "^fs.cpp$" | sed s/^/"/ | sed s/$/"/ | tr '\n' ' ' | xargs clang
Avatar
how is that better than "find -name '.cpp' -not -name 'fs.cpp' -print0 | xargs -0 clang"?
Avatar
xargs has no problems with line breaks
Avatar
(except my stars get eaten by discord)
Avatar
@deen your solution was already perfect 😛
13:45
xargs does have problems with quotes that you hand to it, @Learath2
Avatar
[quakenet] <Learath2> It's what I would have come up with is all
Avatar
[quakenet] <Learath2> obv much worse then yours or chillers :P
Avatar
No worries, at work I have some ugly 500 character pipe-scripts to analyze code a bit 😄
Avatar
[quakenet] <Learath2> clang $(find | grep -E ".cpp$" | grep -Ev "^fs.cpp$" | sed s/^/"/ | sed s/$/"/ | tr '\n' ' ')
13:47
[freenode] <nemo> what sadist would put spaces in a code file name ☺
13:47
[quakenet] <Learath2> is my final answer :P
13:47
[freenode] <nemo> I'd reject that patch on general principles
Avatar
ChillerDragon 2018-02-27 13:48:50Z
a great thx
Avatar
Learath2: have you tried it on a folder?
13:50
I think it wouldn't work due to the quotes you added
Avatar
[quakenet] <Learath2> clang "src/toast.cpp" wouldn't work?
13:50
[quakenet] <heinrich5991> that would
13:50
[quakenet] <Learath2> then this should aswell, no?
13:50
[quakenet] <heinrich5991> but that's not how $() `` or xargs work IIRC
13:51
[quakenet] <heinrich5991> because clang is going to see the equivalent of
13:51
[quakenet] <heinrich5991> clang '"src/toast.cpp"'
13:53
[quakenet] <Learath2> yeah definitely doesn't work
13:54
[quakenet] <Learath2> I'd give up at that point and revert to mv error.c error.t && clang *.c && mv error.t error.c
Avatar
^^
Avatar
[freenode] <nemo> commit a new non-error.c revision then revert ☺
Avatar
use a proper build system 😉
Avatar
ChillerDragon 2018-02-27 14:12:49Z
mv error.c error.t is funny c: i should have done that
14:13
well i failed everything anyways and this command doesnt help xd
Avatar
[freenode] <nemo> heinrich5991: hey. you guys use opus right?
14:37
[quakenet] <heinrich5991> yes
14:37
[freenode] <nemo> great
14:37
[freenode] <nemo> heinrich5991: I was poking at this in #hedgewars - you mind telling me if I'm wildly off-base?
14:37
[freenode] <nemo> heinrich5991: was hoping to crib off you guys again
14:38
[quakenet] <heinrich5991> k, checking
Avatar
@Learath2 can you give me an example of a blacklisted dnsbl entry?
Avatar
who thought this was a good idea?
Avatar
/r was never a good idea
Avatar
on homeserver for testing its perfect.
15:29
i have it bound to r since forever
Avatar
sv_rescue_delay 0?
Avatar
thanks
Avatar
ChillerDragon 2018-02-27 15:34:47Z
bind super lol
15:34
@Im 'corneum
Avatar
i have
Avatar
ChillerDragon 2018-02-27 15:35:09Z
so no need for /r
Avatar
lol yes. i dont want to go back to where i came from all the time. also its one button press more
Avatar
ChillerDragon 2018-02-27 15:36:23Z
hm ye
15:36
one press more?
Avatar
i have 2 buttons bound to super and unsuper.
Avatar
ChillerDragon 2018-02-27 15:37:03Z
ah
15:37
i bound unusper on fore
15:37
fire*
15:37
so its like 1 key
Avatar
@ChillerDragon "Remove unused team function"
Avatar
ChillerDragon 2018-02-27 15:37:48Z
ye?
15:37
teams sucks
15:37
remove em
Avatar
and capital letter at the start
Avatar
ChillerDragon 2018-02-27 15:38:22Z
is there a problem with my big R ? .-.
15:38
ah
15:38
well i made a small one
Avatar
do you know how to edit a commit message?
Avatar
ChillerDragon 2018-02-27 15:38:59Z
no
Avatar
git commit --amend
Avatar
ChillerDragon 2018-02-27 15:39:06Z
is there a problem with the small r?
15:39
i mostly start my commits small
Avatar
commit messages are formatted like this: "Add feature xyz". afterwards the summary you can add a explanation, but for this commit you probably don't need one
Avatar
ChillerDragon 2018-02-27 15:40:15Z
so i have to rename i in "Removed unused teams function" ?
Avatar
"Remove unused teams function"
15:40
present tense
Avatar
ChillerDragon 2018-02-27 15:40:47Z
hm
15:40
but it already happend
15:41
15:41
didnt work too good
Avatar
git push origin +master
Avatar
ChillerDragon 2018-02-27 15:42:43Z
duuude
Avatar
git itself uses present-tense and capitalization as well: Merge branch xyz into abc
Avatar
ChillerDragon 2018-02-27 15:42:57Z
ok i gonna check it out later
Avatar
or Revert "Foo bar"
Avatar
ChillerDragon 2018-02-27 15:43:18Z
conventions over conventions
15:43
im 12yr haxx0r having fun in ze interwebz
15:43
btw i didnt check for compile errors :p
15:44
bcs i got confused with cmake
Avatar
that's why I didn't tell you on the first PR
Avatar
ChillerDragon 2018-02-27 15:44:09Z
bam for lyfe
15:44
ye i try to improve my commit messages atleast for ddnet
Avatar
mkdir build;cd build;cmake ..;cmake --build .
Avatar
ChillerDragon 2018-02-27 15:44:39Z
ah ty
Avatar
(like in the readme :P)
Avatar
ChillerDragon 2018-02-27 15:44:49Z
xxxD
15:45
oh true
Avatar
[ddnet/ddnet] New branch created: staging.tmp
15:45
c1e3dec Remove unused teams function - ChillerDragon 40d2ec9 [ci skip] -bors-staging-tmp-1054 - bors[bot]
15:45
c1e3dec Remove unused teams function - ChillerDragon 5890c4e Merge #1054 - bors[bot]
Avatar
ChillerDragon 2018-02-27 15:45:47Z
spammer banhammer
15:46
woot u didnt wait for checks?
15:46
build might fail
15:46
ah bors does the checks am i right?
Avatar
yes
Avatar
ChillerDragon 2018-02-27 15:48:04Z
wait what happend to my commit message
15:48
it shpuld be updated shpuldnt it be?
15:48
ah it did
Avatar
it is updated
Avatar
ChillerDragon 2018-02-27 15:48:30Z
a great
15:48
but not the pr name
Avatar
you can change that too, if you want
Avatar
c1e3dec Remove unused teams function - ChillerDragon 5890c4e Merge #1054 - bors[bot]
Avatar
@deen found out the best host for u
17:00
17:01
da best
Avatar
@ChillerDragon make a habit of writing good commit messages or you end up like me, I still commit stuff like "Oops" "Shit", "Just wtf?"
17:29
much easier to do it at the beginning 😄
Avatar
[freenode] <nemo> $ hg log -Tx -r 'grep(oops)'
17:34
[freenode] <nemo> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
17:34
[freenode] <nemo> hg log -Tx -r 'user(nemo) and grep(oops)'
17:34
[freenode] <nemo> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
17:34
[freenode] <nemo> apparently about half of 'em are me ☺
17:35
[freenode] <nemo> ok. 77 out of 177 to skip the entertaining bars
17:36
[freenode] <nemo> hum. not so many WTFs...
17:36
[freenode] <nemo> and I think we are too polite for "shit"
17:37
[freenode] <nemo> fail seems popular tho
17:37
[freenode] <nemo> ooooh I should mozilla since I have that checked out
17:38
[quakenet] <Learath2> shit I use in private repos mostly :P
17:38
[freenode] <nemo> haha. 28,126 revisions to pull
17:38
[freenode] <nemo> it's been a while since I updated this machine
17:40
[freenode] <nemo> s/should/should grep/
Avatar
[freenode] <nemo> apparently mozilla-central is too disciplined with its commit messages
18:19
[freenode] <nemo> $ hg summary
18:19
[freenode] <nemo> parent: 405497:b184be598740 tip
18:19
[freenode] <nemo> 405 thousand commits and not a single oops
18:20
[freenode] <nemo> shit
18:20
[freenode] <nemo> orrrr
18:21
[freenode] <nemo> oh. oops. I typed "wc -l" stupid reflexes
18:21
[freenode] <nemo> 149 wtfs - that's more promising
18:22
[freenode] <nemo> 242 shits
18:23
[freenode] <nemo> haha
18:23
[freenode] <nemo> user: Michael Yoshitaka Erlewine <mitcho@mitcho.com>
18:23
[freenode] <nemo> ooops
18:24
[freenode] <nemo> js/src/yarr/jswtfbridge.h
18:24
[freenode] <nemo> meh
18:25
[freenode] <nemo> js/src/assembler/wtf/Platform.h
18:25
[freenode] <nemo> boooring
18:26
[freenode] <nemo> hah. I love this commit message tho https://hg.mozilla.org/mozilla-central/rev/552bca1bc885
18:28
[freenode] <nemo> (w[h])oops seems to be real at least
18:29
[freenode] <nemo> well apart from false matches on "loops" - guess I should toss a regex in there
18:30
Avatar
@Deleted User I had a better idea. Since I have 7 ms ping at home, I'll just host "DDNet deen" running on my desktop computer
Avatar
ah x), gud idea
Avatar
ChillerDragon 2018-02-27 19:40:03Z
@deen ddos alert system inclusive ...
Avatar
@heinrich5991 circle 1 is getting nuked soon
Avatar
?
23:28
@Learath2 what do you mean?
Avatar
CircleCI is phasing out the old api
Avatar
ah
Exported 175 message(s)