···11-* Implement `xcode-select`
21* Stub out tons of Apple private frameworks to have `xcodebuild` working
32
+4-4
src/xcselect/xcode-select.c
···11/*
22This file is part of Darling.
3344-Copyright (C) 2017 Lubos Dolezel
44+Copyright (C) 2017-2020 Lubos Dolezel
5566Darling is free software: you can redistribute it and/or modify
77it under the terms of the GNU General Public License as published by
···2323#include <string.h>
2424#include <unistd.h>
2525#include <errno.h>
2626+#include <sys/stat.h>
2627#include "xcselect.h"
27282829void printUsage(void);
···7576 }
7677 else
7778 {
7878- printf("Please visit https://developer.apple.com/download/more/ and download\n"
7979- "a package named \"Command Line Tools\".\n\n"
8080- "After that, install them by running `installer -pkg file.pkg -target /`.\n");
7979+ int status = system("/usr/libexec/darling/clt_install.py");
8080+ return WEXITSTATUS(status);
8181 }
8282 }
8383 else if (strcmp(argv[1], "-r") == 0 || strcmp(argv[1], "--reset") == 0)