mirror of
git://git.suckless.org/sbase
synced 2024-12-23 23:43:33 +00:00
da547fb294
do not override CC in config.mk
25 lines
447 B
C
25 lines
447 B
C
/* See LICENSE file for copyright and license details. */
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <getopt.h>
|
|
#include "util.h"
|
|
|
|
int
|
|
main(int argc, char *argv[])
|
|
{
|
|
bool sflag = false;
|
|
char c;
|
|
|
|
while((c = getopt(argc, argv, "s")) != -1)
|
|
switch(c) {
|
|
case 's':
|
|
sflag = true;
|
|
break;
|
|
default:
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
enmasse(argc - optind, &argv[optind], sflag ? symlink : link);
|
|
return EXIT_SUCCESS;
|
|
}
|