mklinkfromlnk

command module
v1.0.3-amd64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2020 License: MIT Imports: 13 Imported by: 0

README

Do

On msys2 when tar huge file aosp-last.tar to windows all link files were changed to *.lnk format.This tool mainly execute mklink command to create soft link(symlink) instead.

Execution flow

  • admin right neaded(which requested by nac.manifest)
  • parse *.lnk file(s) under root dirs first,and then each subdir of them
    • make symlink for every *.lnk by executing mklink
    • delete *.lnk file(s) if -e switch on

Build

  • change current dir to project dir
  • rsrc -manifest nac.manifest -o nac.syso if nac.manifest changed
  • go install -v -gcflags "-N -l" ./...

Release

  • latest-release v1.0.3-amd64

Usage:

mklinkfromlnk version: 1.0.3
Usage: mklinkfromlnk [-h] [-e] [-r] [-s]  [-c maximum-numbers-of-coroutines] [-r use-relative-path]   
    [-printerror] [-printstack [-printerror]] [-v [-s -printerror]] [-oledebug [-printstack -printerror]] [-vv [-v -printstack -oledebug]]
    [-checksymlink]
    [-checksame]
    [-d directory] [directory...]
Options:
  -c int
    	minimum 20,maximum numbers of coroutines  (default 50)
  -checksame 	
    	correct target with the name of symlink
  -checksymlink
    	convert '/' to '\' in symlink 
  -d string
    	which directory to search (default ".")
  -e	delete *.lnk
  -h	print help
  -oledebug
    	show ole errors
  -printerror
    	print errors
  -printstack
    	print stack when some errors occured
  -r	create with relative path
  -s	show parsing dir
  -skip string
    	skip directory pattern
  -v	show infos verbosely
  -vv
    	show infos more verbosely
Entry

Example:

The follow command create symlink with relative path, delete the .lnk file and skip all objects dirs objects\.. of git repo

  • mklinkfromlnk -r -e -skip "objects\\[0-9a-z]{2}$"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL