-
Notifications
You must be signed in to change notification settings - Fork 1
/
One-Liners.txt
33 lines (20 loc) · 1.13 KB
/
One-Liners.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
set "PATH=%PATH%;C:\Dev\C++\Scripts"
pushd C:\Dev\C++ && call .\SetPath.cmd
$env:PATH+=';C:\Dev\C++\Scripts'
pushd C:\Dev\C++; . .\SetPath.ps1
setvars vc90-x86
setvars vc90-x64
set "PATH=%PATH%;C:\Program Files (x86)\WiX Toolset v3.11\bin"
$env:PATH += ';C:\Program Files (x86)\WiX Toolset v3.11\bin'
$env:PATH += ';C:\Program Files\Git\usr\bin'
for /r %d in (.) do @if exist "%d\.git" (echo *** %d *** && pushd %d && git status -s & popd)
for /r %d in (.) do @if exist "%d\.git" (echo *** %d *** && pushd %d && git commit -a -m "" & popd)
for /r %d in (.) do @if exist "%d\.git" (echo *** %d *** && pushd %d && git diff --unified=0 & popd)
for /r %d in (.) do @if exist "%d\.git" (echo *** %d *** && pushd %d && git push origin & popd)
for /r %d in (.) do @if exist "%d\HEAD" (echo *** %d *** && pushd %d && git push github & popd)
for /r %f in (*.cbp) do @CompareVCandCB %~dpf
ls -r *.* -Filter .git -Attributes Hidden |
foreach { Split-Path -Parent $_ } |
foreach { echo $_; pushd $_; git status -s; popd }
$cmd={ echo $_; pushd $_; git status -s; popd }
ls -r *.* -Filter .git -Attributes Hidden | % { Split-Path -Parent $_ } | % { & $cmd }