Skip to content

Commit

Permalink
Fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mterron committed Dec 5, 2019
1 parent ecc13e3 commit c24fc52
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
Empty file modified .gitignore
100755 → 100644
Empty file.
Empty file modified .travis.yml
100755 → 100644
Empty file.
Empty file modified LICENSE
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions Makefile
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ vpath swuniq ./bin

all : swuniq.c xxhash.h
mkdir -p bin
$(CC) -O2 swuniq.c -o bin/swuniq
$(CC) -O2 swuniq.c -o bin/swuniq -march=native -mtune=native

static : swuniq.c xxhash.h
mkdir -p bin
$(CC) -O2 -static swuniq.c -o bin/swuniq
$(CC) -O2 -static swuniq.c -o bin/swuniq -march=native -mtune=native

install: swuniq all
install -D bin/swuniq $(DESTDIR)/usr/local/bin/swuniq
Expand Down
Empty file modified README.md
100755 → 100644
Empty file.
13 changes: 7 additions & 6 deletions swuniq.c
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
* swuniq - sliding window uniq
*
*
* MIT License
*
*
* Copyright (c) 2018 Miguel Terron
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand Down Expand Up @@ -42,6 +42,7 @@
#include <inttypes.h>
#include <ctype.h>

#define XXH_STATIC_LINKING_ONLY
#define XXH_PRIVATE_API
#include "xxhash.h"

Expand Down Expand Up @@ -90,7 +91,7 @@ int main (int argc, char *argv[]){
break;
case 'h':
default:
fprintf(stderr,"Usage: swuniq [-w N]\nFilter matching lines (within a configurable window) from INPUT\n(or standard input), writing to standard output.\n\n\t-w N Size of the sliding window to use for deduplication\nNote: By default swuniq will use a window of 10 lines.\n\n");
fprintf(stderr,"Usage: swuniq [-w N] INPUT\nFilter matching lines (within a configurable window) from INPUT\n(or stdin), writing to stdout.\n\n\t-w N Size of the sliding window to use for deduplication\nNote: By default swuniq will use a window of 10 lines.\n\n");
exit(1);
}
}
Expand Down
Empty file modified utarray.h
100755 → 100644
Empty file.
Empty file modified utringbuffer.h
100755 → 100644
Empty file.

0 comments on commit c24fc52

Please sign in to comment.