File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ bundle_is_not_to_be_installed() {
1010 # NOTE: Customize this list to exclude libraries you don't want copied into the bundle
1111 if [ " $1 " = " libsdrpp_core.dylib" ]; then echo 1; fi
1212 if [ " $1 " = " OpenGL" ]; then echo 1; fi
13+ if [ " $1 " = " libc++.1.dylib" ]; then echo 1; fi
1314 if [ " $1 " = " libSystem.B.dylib" ]; then echo 1; fi
1415 if [ " $1 " = " Cocoa" ]; then echo 1; fi
1516 if [ " $1 " = " IOKit" ]; then echo 1; fi
@@ -21,6 +22,7 @@ bundle_is_not_to_be_installed() {
2122 if [ " $1 " = " CoreAudio" ]; then echo 1; fi
2223 if [ " $1 " = " AudioToolbox" ]; then echo 1; fi
2324 if [ " $1 " = " AudioUnit" ]; then echo 1; fi
25+ if [ " $1 " = " libobjc.A.dylib" ]; then echo 1; fi
2426 if [ " $1 " = " CFNetwork" ]; then echo 1; fi
2527 if [ " $1 " = " SystemConfiguration" ]; then echo 1; fi
2628 if [ " $1 " = " Security" ]; then echo 1; fi
Original file line number Diff line number Diff line change 11#include < core.h>
22#include < stdio.h>
3+ #include < unistd.h>
4+
5+ extern char **environ;
6+
7+ int main (int argc, char * argv[], char * envp[]) {
8+ FILE* dump = fopen (" /Users/ryzerth/dump.txt" , " wb" );
9+
10+ char buf[1024 ];
11+ fprintf (dump, " Working directory: %s\n\n " , getcwd (buf, 1023 ));
12+
13+ fprintf (dump, " Arguments:\n " );
14+ fprintf (dump, " ----------\n " );
15+ for (int i = 0 ; i < argc; i++) {
16+ fprintf (dump, " %d: '%s'\n " , i, argv[i]);
17+ }
18+ fprintf (dump, " \n " );
19+
20+ fprintf (dump, " Environment Variables:\n " );
21+ fprintf (dump, " ----------\n " );
22+ for (char ** env = environ; *env; env++) {
23+ fprintf (dump, " %s\n " , *env);
24+ }
25+ fprintf (dump, " \n " );
26+
27+ fclose (dump);
328
4- int main (int argc, char * argv[]) {
529 return sdrpp_main (argc, argv);
630}
You can’t perform that action at this time.
0 commit comments