Skip to content

支持编译目录下的符号链接目录 #36

Description

@voidint
total 8240
-rw-r--r--   1 voidint  staff   634B  9 11 21:58 Dockerfile
-rw-r--r--   1 voidint  staff    11K 12 17  2016 LICENSE
-rw-r--r--   1 voidint  staff    13K  9 11 21:59 README.md
drwxr-xr-x   4 voidint  staff   136B  9 11 21:58 build
drwxr-xr-x  10 voidint  staff   340B  9 11 21:58 cmd
drwxr-xr-x   4 voidint  staff   136B  9 11 21:58 config
-rwxr-xr-x   1 voidint  staff   4.0M  9 19 14:09 gbb
-rw-r--r--   1 voidint  staff   455B  9 11 22:08 gbb.json
-rw-r--r--   1 voidint  staff   181B 12 17  2016 main.go
lrwxr-xr-x   1 voidint  staff    24B  9 13 13:35 ngrok -> /Users/voidint/bin/ngrok
drwxr-xr-x   8 voidint  staff   272B  9 11 21:58 tool
lrwxr-xr-x   1 voidint  staff    18B  9 19 13:59 tty -> /Users/voidint/tty
lrwxr-xr-x   1 voidint  staff    19B  9 13 13:52 tty2 -> /Users/voidint/tty2
drwxr-xr-x  10 voidint  staff   340B  9 19 13:28 util
drwxr-xr-x  10 voidint  staff   340B  9 11 21:58 variable
drwxr-xr-x   4 voidint  staff   136B  9  3  2017 vendor

以上面这个工程目录为例,要求做到如下几点:

  • 若链接源不存在,则给出错误提示。
  • 若链接的是一个非目录文件,则跳过,不作任何处理。如ngrok
  • 若提供了-a的命令行选项,则需要对链接的源目录及其子孙目录进行编译。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions