diff --git a/_scripts/Set-DescriptionFromReadme.ps1 b/_scripts/Set-DescriptionFromReadme.ps1
new file mode 100644
index 0000000..668f706
--- /dev/null
+++ b/_scripts/Set-DescriptionFromReadme.ps1
@@ -0,0 +1,35 @@
+<#
+.SYNOPSIS
+ Updates nuspec file description from README.md
+
+.DESCRIPTION
+ This script should be called in au_AfterUpdate to put the text in the README.md
+ into description tag of the Nuspec file. The current description will be replaced.
+ Function will throw an error if README.md is not found.
+
+.PARAMETER SkipFirst
+ Number of start lines to skip from the README.md, by default 0.
+
+
+.PARAMETER SkipLast
+ Number of end lines to skip from the README.md, by default 0.
+
+.EXAMPLE
+ function global:au_AfterUpdate { Set-DescriptionFromReadme -SkipFirst 2 }
+#>
+function Set-DescriptionFromReadme([int]$SkipFirst=0, [int]$SkipLast=0) {
+ if (!(Test-Path README.md)) { throw 'Set-DescriptionFromReadme: README.md not found' }
+
+ Write-Host 'Setting README.md to Nuspec description tag'
+ $description = gc README.md -Encoding UTF8
+ $endIdx = $description.Length - $SkipLast
+ $description = $description | select -Index ($SkipFirst..$endIdx) | Out-String
+
+ $nuspecFileName = $Latest.PackageName + ".nuspec"
+ $nu = gc $nuspecFileName -Raw
+ $nu = $nu -replace "(?smi)(\).*?(\)", "`${1}$($description)`$2"
+
+ $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding($False)
+ $NuPath = (Resolve-Path $NuspecFileName)
+ [System.IO.File]::WriteAllText($NuPath, $nu, $Utf8NoBomEncoding)
+}
diff --git a/_scripts/all.ps1 b/_scripts/all.ps1
new file mode 100644
index 0000000..83b1f0d
--- /dev/null
+++ b/_scripts/all.ps1
@@ -0,0 +1 @@
+ls $PSScriptRoot\*.ps1 -Exclude all.ps1 | % { . $_ }
diff --git a/copyq/README.md b/copyq/README.md
new file mode 100644
index 0000000..533e89c
--- /dev/null
+++ b/copyq/README.md
@@ -0,0 +1,33 @@
+#
[CopyQ](https://chocolatey.org/packages/copyq)
+
+CopyQ monitors system clipboard and saves its content in customized tabs. Saved clipboard can be later copied and pasted directly into any application.
+
+Items can be:
+
+* edited with internal editor or with preferred text editor,
+* moved to other tabs,
+* drag'n'dropped to applications,
+* marked with tag or a note,
+* passed to or changed by custom commands, or simply removed.
+
+## Features
+
+* Support for Linux, Windows and OS X 10.9+
+* Store text, HTML, images or any other custom formats
+* Quickly browse and filter items in clipboard history
+* Sort, create, edit, remove, copy/paste, drag'n'drop items in tabs
+* Add notes or tags to items
+* System-wide shortcuts with customizable commands
+* Paste items with shortcut or from tray or main window
+* Fully customizable appearance
+* Advanced command-line interface and scripting
+* Ignore clipboard copied from some windows or containing some text
+* Support for simple Vim-like editor and shortcuts
+* Many more features
+
+## Package parameters
+
+* `NoDesktopIcon` - do not create desktop icon
+* `NoStartup` - do not run CopyQ on OS startup
+
+
diff --git a/copyq/copyq.nuspec b/copyq/copyq.nuspec
index c6ceddd..194425d 100644
--- a/copyq/copyq.nuspec
+++ b/copyq/copyq.nuspec
@@ -1,16 +1,15 @@
-
+
copyq
CopyQ
- 2.7.1.20160708
+ 2.9.0
Lukas Holocek
- Miodrag Milić
+ Miodrag Milic
Cross-platform clipboard manager with advanced features
-
-CopyQ monitors system clipboard and saves its content in customized tabs. Saved clipboard can be later copied and pasted directly into any application.
+ CopyQ monitors system clipboard and saves its content in customized tabs. Saved clipboard can be later copied and pasted directly into any application.
Items can be:
@@ -20,8 +19,7 @@ Items can be:
* marked with tag or a note,
* passed to or changed by custom commands, or simply removed.
-Features
---------
+## Features
* Support for Linux, Windows and OS X 10.9+
* Store text, HTML, images or any other custom formats
@@ -37,17 +35,18 @@ Features
* Many more features

+
https://hluk.github.io/CopyQ
- admin clipboard copyq
+ admin clipboard copyq cross-platform foss
https://github.com/hluk/CopyQ/blob/master/LICENSE
false
https://cdn.rawgit.com/majkinetor/chocolatey/master/copyq/icon.png
-
+
-
+ https://github.com/hluk/CopyQ/releases/tag/v2.9.0
https://github.com/hluk/CopyQ/wiki
https://github.com/hluk/CopyQ/issues
https://github.com/hluk/CopyQ
@@ -55,5 +54,6 @@ Features
+
diff --git a/less/tools/copying b/copyq/legal/LICENSE.txt
similarity index 100%
rename from less/tools/copying
rename to copyq/legal/LICENSE.txt
diff --git a/copyq/legal/VERIFICATION.txt b/copyq/legal/VERIFICATION.txt
new file mode 100644
index 0000000..9cacf43
--- /dev/null
+++ b/copyq/legal/VERIFICATION.txt
@@ -0,0 +1,25 @@
+VERIFICATION
+
+Verification is intended to assist the Chocolatey moderators and community
+in verifying that this package's contents are trustworthy.
+
+Package can be verified like this:
+
+1. Go to
+
+ x32: https://github.com/hluk/CopyQ/releases/download/v2.9.0/copyq-v2.9.0-setup.exe
+
+ to download the installer.
+
+2. You can use one of the following methods to obtain the SHA256 checksum:
+ - Use powershell function 'Get-FileHash'
+ - Use Chocolatey utility 'checksum.exe'
+
+ checksum32:
+
+Using AU:
+
+ Get-RemoteChecksum https://github.com/hluk/CopyQ/releases/download/v2.9.0/copyq-v2.9.0-setup.exe
+
+File 'license.txt' is obtained from:
+ https://raw.githubusercontent.com/hluk/CopyQ/master/LICENSE
diff --git a/copyq/tools/chocolateyInstall.ps1 b/copyq/tools/chocolateyInstall.ps1
index 4e85032..ae6b0a9 100644
--- a/copyq/tools/chocolateyInstall.ps1
+++ b/copyq/tools/chocolateyInstall.ps1
@@ -1,27 +1,33 @@
$ErrorActionPreference = 'Stop'
$packageName = 'copyq'
-$url32 = 'https://github.com/hluk/CopyQ/releases/download/v2.7.1/copyq-2.7.1-setup.exe'
-$checksum32 = '781787EF7DB6801A843DED62900380CCCF31A0E9917FA13A55B19932A8F35DAC'
-$running = if (ps $packageName -ea 0) { $true } else { $false }
+
+$fileType = 'exe'
+$toolsDir = Split-Path $MyInvocation.MyCommand.Definition
+$embedded_path = gi "$toolsDir\*.$fileType"
+
+$pp = Get-PackageParameters
+$tasks=@()
+if (!$pp.NoStartup) { Write-Host 'Automatically start with Windows'; $tasks += 'startup'}
+if (!$pp.NoDesktopIcon) { Write-Host 'Create desktop icon'; $tasks += 'desktopicon' }
$packageArgs = @{
- packageName = $packageName
- fileType = 'EXE'
- url = $url32
- checksum = $checksum32
- checksumType = 'sha256'
- silentArgs = '/VERYSILENT'
- validExitCodes = @(0)
- registryUninstallerKey = $packageName
+ packageName = $packageName
+ fileType = $fileType
+ file = $embedded_path
+ silentArgs = '/VERYSILENT /TASKS=' + ($tasks -join ',')
+ validExitCodes = @(0)
+ softwareName = $packageName
}
-Install-ChocolateyPackage @packageArgs
+Install-ChocolateyInstallPackage @packageArgs
+rm $embedded_path -ea 0
-$installLocation = Get-AppInstallLocation $packageArgs.registryUninstallerKey
-if ($installLocation) { Write-Host "$packageName installed to '$installLocation'" }
-else { Write-Warning "Can't find $PackageName install location" }
+$packageName = $packageArgs.packageName
+$installLocation = Get-AppInstallLocation $packageName
+if (!$installLocation) { Write-Warning "Can't find $packageName install location"; return }
+Write-Host "$packageName installed to '$installLocation'"
-if ($installLocation -and $running) {
- Write-Host "CopyQ was running before update, starting it up again"
- start "$installLocation\copyq.exe"
-}
+Register-Application "$installLocation\$packageName.exe"
+Write-Host "$packageName registered as $packageName"
+
+start "$installLocation\$packageName.exe"
diff --git a/copyq/update.ps1 b/copyq/update.ps1
index f140d44..377ec58 100644
--- a/copyq/update.ps1
+++ b/copyq/update.ps1
@@ -1,16 +1,30 @@
import-module au
+. $PSScriptRoot\..\_scripts\all.ps1
-$releases = 'https://github.com/hluk/CopyQ/releases'
+$releases = 'https://github.com/hluk/CopyQ/releases'
function global:au_SearchReplace {
- @{
+ @{
".\tools\chocolateyInstall.ps1" = @{
- "(^[$]url32\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
- "(^[$]checksum32\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
+ "(?i)(^\s*[$]packageName\s*=\s*)('.*')"= "`$1'$($Latest.PackageName)'"
+ "(?i)(^\s*[$]fileType\s*=\s*)('.*')" = "`$1'$($Latest.FileType)'"
+ }
+
+ "$($Latest.PackageName).nuspec" = @{
+ "(\).*?(\)" = "`${1}$($Latest.ReleaseNotes)`$2"
+ }
+
+ ".\legal\VERIFICATION.txt" = @{
+ "(?i)(\s+x32:).*" = "`${1} $($Latest.URL32)"
+ "(?i)(checksum32:).*" = "`${1} $($Latest.Checksum32)"
+ "(?i)(Get-RemoteChecksum).*" = "`${1} $($Latest.URL32)"
}
}
}
+function global:au_BeforeUpdate { Get-RemoteFiles -Purge }
+function global:au_AfterUpdate { Set-DescriptionFromReadme -SkipFirst 2 }
+
function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases
@@ -20,7 +34,11 @@ function global:au_GetLatest {
$version = $url -split '-|.exe' | select -Last 1 -Skip 2
- return @{ URL32 = $url; Version = $version }
+ return @{
+ URL32 = $url
+ Version = $version.Replace('v','')
+ ReleaseNotes = "$releases/tag/${version}"
+ }
}
-update -ChecksumFor 32
+update -ChecksumFor none
diff --git a/html-tidy/html-tidy.nuspec b/html-tidy/html-tidy.nuspec
deleted file mode 100644
index 67ed1c6..0000000
--- a/html-tidy/html-tidy.nuspec
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
- html-tidy
- HTML Tidy with HTML5 support
- 5.2.0.20160708
- HTACG
- Miodrag Milić
- Tidy is a console application for Mac OS X, Linux, Windows, UNIX, and more. It corrects and cleans up HTML and XML documents by fixing markup errors and upgrading legacy code to modern standards
-
-Tidy is a console application for Mac OS X, Linux, Windows, UNIX, and more. It corrects and cleans up HTML and XML documents by fixing markup errors and upgrading legacy code to modern standards.
-
- http://www.html-tidy.org/
- x-platform xml html tidy html5
- HTACG
- https://github.com/htacg/tidy-html5/blob/master/README/LICENSE.md
- false
-
-
- http://www.html-tidy.org/documentation
- https://github.com/htacg/tidy-html5/issues
- https://github.com/htacg/tidy-html5
- https://github.com/majkinetor/chocolatey/tree/master/html-tidy
-
-
-
-
-
diff --git a/html-tidy/tools/chocolateyInstall.ps1 b/html-tidy/tools/chocolateyInstall.ps1
deleted file mode 100644
index 36b1cfa..0000000
--- a/html-tidy/tools/chocolateyInstall.ps1
+++ /dev/null
@@ -1,19 +0,0 @@
-$ErrorActionPreference = 'Stop'
-
-$packageName = 'html-tidy'
-$url32 = 'https://github.com/htacg/tidy-html5/releases/download/5.2.0/tidy-5.2.0-win32.zip'
-$url64 = 'https://github.com/htacg/tidy-html5/releases/download/5.2.0/tidy-5.2.0-win64.zip'
-$checksum32 = '94D653498B4F93B14F12A55CA06154E19C540C9B276E5D163F1CF84FA078F97A'
-$checksum64 = 'DD9FD814CC44BC2FFA9B9E547B1A6CBB42B6BE7B9358542D3EE7F6E10B676423'
-
-$packageArgs = @{
- packageName = $packageName
- url = $url32
- url64Bit = $url64
- checksum = $checksum32
- checksum64 = $checksum64
- checksumType = 'sha256'
- checksumType64 = 'sha256'
- unzipLocation = Split-Path $MyInvocation.MyCommand.Definition
-}
-Install-ChocolateyZipPackage @packageArgs
diff --git a/html-tidy/update.ps1 b/html-tidy/update.ps1
deleted file mode 100644
index c85905b..0000000
--- a/html-tidy/update.ps1
+++ /dev/null
@@ -1,31 +0,0 @@
-import-module au
-
-$releases = 'https://github.com/htacg/tidy-html5/releases'
-
-function global:au_SearchReplace {
- @{
- 'tools\chocolateyInstall.ps1' = @{
- "(^[$]url64\s*=\s*)('.*')" = "`$1'$($Latest.URL64)'"
- "(^[$]url32\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
- "(^[$]checksum32\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
- "(^[$]checksum64\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'"
- }
- }
-}
-
-function global:au_GetLatest {
- $download_page = Invoke-WebRequest -Uri $releases
-
- #tidy-5.1.25-win64.zip
- $re = "tidy-.+-win(32|64).zip"
- $url = $download_page.links | ? href -match $re | select -First 2 -expand href
-
- $version = $url[0] -split '-' | select -Last 1 -Skip 1
- $url32 = 'https://github.com' + $url[0]
- $url64 = 'https://github.com' + $url[1]
-
- $Latest = @{ URL32 = $url32; URL64 = $url64; Version = $version }
- return $Latest
-}
-
-update
diff --git a/less/less.nuspec b/less/less.nuspec
index 74ac682..43480aa 100644
--- a/less/less.nuspec
+++ b/less/less.nuspec
@@ -1,8 +1,9 @@
+
less
- 4.81.1.20160913
+ 4.87
Less for Windows
Mark Nudelman
Miodrag Milić
diff --git a/less/tools/VERIFICATION.txt b/less/tools/VERIFICATION.txt
new file mode 100644
index 0000000..60b6988
--- /dev/null
+++ b/less/tools/VERIFICATION.txt
@@ -0,0 +1,18 @@
+VERIFICATION
+
+Verification is intended to assist the Chocolatey moderators and community
+in verifying that this package's contents are trustworthy.
+
+Package can be verified like this:
+
+1. Go to
+
+ x32: http://guysalias.tk/misc/less/less-487-win32-static-x86.7z.7z
+
+ to download the zip package.
+
+2. You can use one of the following methods to obtain the checksum:
+ - Use powershell function 'Get-FileHash'
+ - Use Chocolatey utility 'checksum.exe'
+
+ checksum32:
diff --git a/less/tools/checksums.txt b/less/tools/checksums.txt
deleted file mode 100644
index 5191d22..0000000
--- a/less/tools/checksums.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5(less.exe)= d1c06d128de75a28ac3b4e195df12a85
-SHA1(less.exe)= a4d7da5ddc97150725f3f85e19f2515f6b209d20
-SHA256(less.exe)= f25459a58f03cd36fb2f8499e78c054a50265c7e6529428891395a52d2d43b9c
-MD5(lesskey.exe)= e2545a509c52450c3c5734adf0c9c80a
-SHA1(lesskey.exe)= 631c05477ab7b8fc619f7542638d0356fa081ee7
-SHA256(lesskey.exe)= 382fa8941dfe180311e829035ccfd64a6e079739c677684bb96b3bbbfc869b0a
diff --git a/less/tools/less.exe b/less/tools/less.exe
index 277dbf6..28a5188 100644
Binary files a/less/tools/less.exe and b/less/tools/less.exe differ
diff --git a/less/tools/lesskey.exe b/less/tools/lesskey.exe
index 1510bc7..3465041 100644
Binary files a/less/tools/lesskey.exe and b/less/tools/lesskey.exe differ
diff --git a/less/tools/license b/less/tools/license
deleted file mode 100644
index 376b8c8..0000000
--- a/less/tools/license
+++ /dev/null
@@ -1,27 +0,0 @@
- Less License
- ------------
-
-Less
-Copyright (C) 1984-2015 Mark Nudelman
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
- notice in the documentation and/or other materials provided with
- the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
-OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
diff --git a/less/tools/news b/less/tools/news
deleted file mode 100644
index 43f1247..0000000
--- a/less/tools/news
+++ /dev/null
@@ -1,902 +0,0 @@
-
- NEWS about less
-
-======================================================================
-
- For the latest news about less, see the "less" Web page:
- http://www.greenwoodsoftware.com/less
- You can also download the latest version of less from there.
-
- To report bugs, suggestions or comments, send email to bug-less@gnu.org
-
-======================================================================
-
- Major changes between "less" versions 458 and 481
-
-* Don't overwrite history file; just append to it.
-
-* New command ESC-G goes to end of currently buffered data in a pipe.
-
-* Disable history feature when compiled with LESSHISTFILE set to "-".
-
-* In more-compatible mode, make the -p option apply to every file opened,
- not just the first one.
-
-* In more-compatible mode, change the -e option to work like -E, not -EF.
-
-* Treat multiple CRs before LF are like one CR (all the CRs are hidden).
-
-* Allow "extra" string in lesskey file to append to a multi-char command
- (like a search pattern), without executing the command.
-
-* Ignore -u/-U setting while viewing help file, so that
- underline and bold chars are displayed correctly.
-
-* Improve detection of "binary" files in UTF-8 mode.
-
-* Fix bug with ++ commands.
-
-* Fix bug where prompt was sometimes not displayed with +G.
-
-* Fix possible memory corruption
-
-* Fix bugs and improve performance in ampersand filtering.
-
-* Automate construction of Unicode tables from Unicode database.
-
-* Allow %% escape sequence in LESSOPEN variable.
-
-======================================================================
-
- Major changes between "less" versions 451 and 458
-
-* Allow backslash escaping of metacharacters in LESS environment variable
- after the --use-backslash option.
-
-* Don't quit if syntax errors are found in command line options.
-
-* Increase sizes of some internal buffers.
-
-* Fix configure bug with --with-regex=none.
-
-* Fix crash with "stty rows 0".
-
-* Fix Win32 attribute display bug.
-
-* Fix display bug when using up/down arrow on the command line.
-
-======================================================================
-
- Major changes between "less" versions 444 and 451
-
-* Add ESC-F command to keep reading data until a pattern is found.
-
-* Use exit code of LESSOPEN script if LESSOPEN starts with "||".
-
-* When up/down arrow is used on the command line immediately after
- typing text, the next command starting with that text is found.
-
-* Add support for GNU regex.
-
-* Add configure option --with-regex=none and fix compile errors
- when compiling with no regex library.
-
-* Fix bugs handling SGR sequences in Win32.
-
-* Fix possible crashes caused by malformed LESSOPEN or
- LESSCLOSE variables.
-
-* Fix bug highlighting text which is discontiguous in the file
- due to backspace processing.
-
-* Fix bug in displaying status column when scrolling backwards
- with -J and -S in effect.
-
-======================================================================
-
- Major changes between "less" versions 443 and 444
-
-* Fix bug in unget handling that can cause strange effects on the
- command line.
-
-* Remove vestiges of obsolete -l option that can cause a crash.
-
-======================================================================
-
- Major changes between "less" versions 436 and 443
-
-* Change search behavior such that when a search is given an explicit
- pattern, the entire displayed screen is included in the search and
- not just the portion after the target line.
-
-* Add -A option to change search behavior to the old way: only
- the portion of the screen after the target line is searched.
-
-* Add %F formatting to prompt strings, replaced by the last component
- of the input file.
-
-* Control-G while editing a command exits the command.
-
-* Less now exits with status 2 if control-C is pressed and -K is in effect.
-
-* Fix "ungetc overflow" when passing long commands via the -p option.
-
-* Fix bug in using line filtering via the & command
- in combination with -i and -I.
-
-* Fix bug in handling negative arguments to the -j option.
-
-* Fix bug in handling %t in prompt strings.
-
-* Improve handling of long option names.
-
-* Improve percentage calculation for very large files.
-
-======================================================================
-
- Major changes between "less" versions 429 and 436
-
-* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-".
-
-* Allow a fraction as the argument to the -# (--shift) option.
-
-* Fix highlight bug when underlined/overstruck text matches at end of line.
-
-* Fix non-regex searches with ctrl-R.
-
-======================================================================
-
- Major changes between "less" versions 424 and 429
-
-* LESSOPEN pipe will now be used on standard input, if the LESSOPEN
- environment variable begins with "|-".
-
-* The -D option with one number now means use the normal background color.
-
-* Don't change permissions on history file if it is not a regular file.
-
-* Fix non-ANSI-compliant code that caused problems with some compilers.
-
-* Fix binary file detection in UTF-8 mode.
-
-* Fix display problems with long lines on "ignaw" terminals.
-
-* Fix problem interrupting the line number calculation for initial prompt.
-
-* Fix SGR emulation when dealing with multiple attributes (eg. bold+underline).
-
-* Fix highlight bug when searching for underlined/overstruck text.
-
-======================================================================
-
- Major changes between "less" versions 418 and 424
-
-* New "&" command allows filtering of lines based on a pattern.
-
-* Status column now displays a search match, even if the matched
- string is scrolled off screen because -S is in effect.
-
-* Improve behavior of -F option.
-
-* Allow CSI character (0x9B) to work in UTF-8 mode.
-
-* Output carriage return at startup in case terminal doesn't default
- to column 1.
-
-* Fix bug in '' (quote, quote) command after G command.
-
-======================================================================
-
- Major changes between "less" versions 416 and 418
-
-* Color escape sequences are now supported in WIN32 build.
-
-* Makefile now uses EXEEXT feature of autoconf.
-
-* Fix search bug when using -R and text contains ANSI color escape sequences.
-
-* Fix crash when using -r with UTF-8 text containing 0x9B bytes.
-
-* Fix display bug when using ' command to move less than one page forward.
-
-* Update GPL to version 3.
-
-======================================================================
-
- Major changes between "less" versions 409 and 416
-
-* New --follow-name option makes F command follow the name of a file
- rather than the file descriptor if an open file is renamed.
-
-* Make searching with -i/-I work correctly with non-ASCII text.
-
-* Fix DJGPP build.
-
-======================================================================
-
- Major changes between "less" versions 406 and 409
-
-* Support CSI escape sequences, like SGR escape sequences.
-
-* Fix bug which caused screen to fail to repaint when window is resized.
-
-* Fix bug in using -i and -I flags with non-ASCII text.
-
-* Fix configure bug on systems which don't support langinfo.h.
-
-* Fix crash when searching text containing certain invalid UTF-8 sequences.
-
-======================================================================
-
- Major changes between "less" versions 394 and 406
-
-* Allow decimal point in number for % (percent) command.
-
-* Allow decimal point in number for -j option (fraction of screen height).
-
-* Make n command fetch previous pattern from history file on first search.
-
-* Don't rewrite history file if it has not changed.
-
-* Don't move to bottom of screen on first page.
-
-* Don't output extraneous newlines, so copy & pasting lines from the
- output works better.
-
-* The -c option has been made identical with the -C option.
-
-* Allow "/dev/null" as synomym for "-" in LESSHISTFILE to indicate
- that no history file should be used.
-
-* Search can now find text which follows a null byte, if the PCRE
- library is used, or if no-regex searching (ctrl-R) is used.
-
-* Better compatibility with POSIX more specification.
-
-* Make -f work for directories.
-
-* Make "t" cmd traverse tags in the correct order.
-
-* Allow a few binary characters in the input file before warning
- that the file is binary.
-
-* Don't warn that file is binary if it merely contains ANSI color sequences
- and -R is in effect.
-
-* Update Unicode character tables.
-
-* Support DESTDIR in Makefile.
-
-* Fix bug when filename contains certain shell metacharacters such as "$".
-
-* Fix bug when resizing the window while waiting for input from a pipe.
-
-* Fix configure bugs.
-
-======================================================================
-
- Major changes between "less" versions 382 and 394
-
-* Add history file to save search and shell command history between
- invocations of less.
-
-* Improve behavior of history list for search and shell commands.
-
-* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C.
-
-* Improve handling of UTF-8 files and commands, including better
- line wrapping and handling double-width chars.
-
-* Added LESSUTFBINFMT environment variable to control display of
- non-printable characters in a UTF-8 file.
-
-* Add --with-secure option to configure, to make it easier to
- build a secure version of less.
-
-* Show search matches in the status column even if search highlights
- are disabled via the -G option or the ESC-u command.
-
-* Improve performance when the file contains very long lines.
-
-* Add "windows" charset.
-
-* Add man page for lessecho.
-
-* Add support for erase2 character, treated same as erase.
-
-* Use ASCII lowercase/uppercase logic when operating on the command line.
-
-* Update makefile for Borland C++ 5.5.1.
-
-* Fix bug in calculating number of pages for %D prompt.
-
-* Fix bug in handling tag file error.
-
-* Fix obscure bug if input file is deleted while viewing help.
-
-* Fix bug handling filenames which include square brackets.
-
-* Fix possible buffer overflow in "global" tag search.
-
-* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE.
-
-* Fix buffer overflow in reverse search.
-
-======================================================================
-
- Major changes between "less" versions 381 and 382
-
-* Removed some old copyrighted code.
- This probably breaks OS/9 support.
-
-======================================================================
-
- Major changes between "less" versions 378 and 381
-
-* New -L option to disable LESSOPEN processing.
-
-* Further support for large (64 bit) file addressing.
- Large file support is now set up by the configure script.
-
-* Use autoconf 2.54.
- Replace configure.in, acconfig.h, defines.h.top with configure.ac.
-
-* Overstriking underscore with underscore is now bold or underlined
- depending on context.
-
-* Use only 7 spaces for line numbers in -N mode, if possible.
-
-* Fix some bugs in handling overstriking in UTF-8 files.
-
-* Fix some nroff issues in the man page.
-
-======================================================================
-
- Major changes between "less" versions 376 and 378
-
-* Bug fixes:
- Default buffer space is now 64K as documented.
- Search highlighting works properly when used with -R.
- Windows version works properly when input file contains carriage returns.
- Clean up some compiler warnings.
-
-======================================================================
-
- Major changes between "less" versions 358 and 376
-
-* -x option can now specify multiple variable-width tab stops.
-
-* -X option no longer disables keypad initialization.
- New option --no-keypad disables keypad initialization.
-
-* New commands t and T step through multiple tag matches.
- Added support for "global(1)" tags
- (see http://www.gnu.org/software/global/global.html).
-
-* New prompt style set by option -Pw defines the message printed
- while waiting for data in the F command.
-
-* System-wide lesskey file now defaults to sysless in etc directory
- instead of .sysless in bin directory.
- Use "configure --sysconfdir=..." to change it.
- (For backwards compatibility, .sysless in bin is still recognized.)
-
-* Pressing RightArrow or LeftArrow while entering a number now shifts
- the display N columns rather than editing the number itself.
-
-* Status column (enabled with -J) now shows search results.
-
-* Windows version sets window title.
-
-* Default LESSCHARSET for MS-DOS versions is now "dos".
-
-* Searching works better with ANSI (SGR) escape sequences.
- ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version.
-
-* Improved performance in reading very large pipes.
-
-* Eliminated some dependencies on file offets being 32 bits.
-
-* Fixed problems when viewing files with very long lines.
-
-* Fixed overstriking in UTF-8 mode, and overstriking tabs.
-
-* Improved horizontal shifting of text using -R option with ANSI color.
-
-* Improved handling of filenames containing shell metacharacters.
-
-* Some fixes for EBCDIC systems.
-
-* Some fixes for OS/2 systems.
-
-======================================================================
-
- Major changes between "less" versions 354 and 358
-
-* Add -J (--status-column) option to display a status column.
-
-* Add -# (--shift) option to set default horizontal shift distance.
- Default horizontal shift distance is now one-half screen width.
-
-* Horizontal shifting does not shift line numbers if -N is in effect.
-
-* Horizontal shifting acts as though -S were set, to avoid confusion.
-
-======================================================================
-
-
- Major changes between "less" versions 352 and 354
-
-* Allow space after numeric-valued command line options.
-
-* Fix problem with configuring terminal libraries on some systems.
-
-* Add support for PCRE regular expression library.
-
-* Add --with-regex option to configure to allow manually selecting
- a regular expression library.
-
-* Fix bug compiling with SECURE = 1.
-
-======================================================================
-
-
- Major changes between "less" versions 346 and 352
-
-* Enable UTF-8 if "UTF-8" appears in locale-related environment variables.
-
-* Add --with-editor option to configure script.
-
-* The -M prompt and = message now show the top and bottom line number.
-
-* Fix bug in running the editor on a file whose name contains quotes, etc.
-
-* Fix bug in horizontal scrolling of long lines.
-
-* Fix bug in doing :d on a file which contains marks.
-
-* Fix bug causing cleared lines to sometimes be filled with standout,
- bold, underline, etc. on certain terminals.
-
-* Fixes for MS-DOS (DJGPP) version.
-
-======================================================================
-
-
- Major changes between "less" versions 340 and 346
-
-* The UTF-8 character set is now supported.
-
-* The default character set is now latin1 rather than ascii.
-
-* New option -R (--RAW-CONTROL-CHARS) is like -r but handles
- long (wrapped) lines correctly, as long as the input contains only
- normal text and ANSI color escape sequences.
-
-* New option -F (--quit-if-one-screen) quits if the text fits on
- the first screen.
-
-* The -w option now highlights the target line of a g or p command.
-
-* A system-wide lesskey file is supported (LESSKEY_SYSTEM).
-
-* New escape for prompt strings: %c is replaced by column number.
-
-* New escape for prompt strings: %P is replaced by percentage into
- file, based on line number rather than byte offset.
-
-* HOME and END keys now jump to beginning of file or end of file.
-
-======================================================================
-
-
- Major changes between "less" versions 337 and 340
-
-* Command line options for less may now be given in either the old
- single-letter form, or a new long name form (--option-name).
- See the less man page or "less --help" for the list of long option names.
-
-* Command line options for lesskey may now be given in a new long name
- form. See the lesskey man page for the list of long option names.
-
-* New command -- toggles an option using the long option name.
-
-* New command __ queries an option using the long option name.
-
-* The old -- command is renamed as -!.
-
-* If a ^P is entered between the dash and the option letter of the -
- command, the message describing the new setting is suppressed.
-
-* Lesskey files may now contain \k escape sequences to represent the
- "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE).
-
-* New command :d removes the current file from the list of files.
-
-* New option -~ (like -w before version 335)
- suppresses tildes after end-of-file.
-
-* Less is now released under the GNU General Public License.
-
-======================================================================
-
-
- Major changes between "less" versions 335 and 337
-
-* Fixed bugs in "make install".
-
-======================================================================
-
-
- Major changes between "less" versions 332 and 335
-
-* The old -w flag (suppress tildes after end-of-file) has been removed.
-
-* New -w flag highlights the first new line after a forward-screen.
-
-* New -W flag highlights the first new line after any forward movement.
-
-* Window resize works even if LINES and/or COLUMNS environment
- variables are incorrect.
-
-* New percent escapes for prompt strings:
- %d is replaced by the page number, and
- %D is replaced by the number of pages in the file.
-
-* Added charsets "iso8859" and "ebcdic".
-
-* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined.
-
-* Fixed some bugs causing incorrect display on DOS/Windows.
-
-======================================================================
-
-
- Major changes between "less" versions 330 and 332
-
-* Filenames from the command line are entered into the command history,
- so UPARROW/DOWNARROW can be used to retrieve them from the :e command.
-
-* Now works correctly on Windows when using a scrolling terminal
- window (buffer larger than display window).
-
-* On Windows, now restores the console screen on exit.
- Use -X to get the old behavior.
-
-* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed.
-
-* Fixed bug on Windows when piping output of an interactive program.
-
-* Fixed bug in tags file processing when tags file has DOS-style
- line terminators (CR/LF).
-
-* Fixed compilation problem on OS/2.
-
-======================================================================
-
-
- Major changes between "less" versions 321 and 330
-
-* Now supports filenames containing spaces (in double quotes).
- New option -" can be used to change the quoting characters.
-
-* In filename completion, a slash is appended to a directory name.
- If the environment variable LESSSEPARATOR is set, the value of
- that variable, rather than a slash, is appended.
-
-* LeftArrow and RightArrow are same as ESC-[ and ESC-].
-
-* Added commands ESC-( and ESC-), same as ESC-[ and ESC-].
-
-* A "quit" command defined in a lesskey file may now have an "extra"
- string, which is used to return an exit code from less when it quits.
-
-* New environment variables LESSMETACHARS and LESSMETAESCAPE provide
- more control over how less interfaces to the shell.
-
-* Ported to Microsoft Visual C compiler for Windows.
-
-* Ported to DJGPP compiler for MS-DOS.
-
-* Bug fixes.
-
-======================================================================
-
-
- Major changes between "less" versions 291 and 321
-
-* Command line at bottom of screen now scrolls, so it can be longer
- than the screen width.
-
-* New commands ESC-] and ESC-[ scroll the display horizontally.
-
-* New command ESC-SPACE scrolls forward a full screen, even if it
- hits end-of-file.
-
-* Alternate modifiers for search commands: ^N is same as !,
- ^F is same as @, and ^E is same as *.
-
-* New modifier for search commands: ^K means highlight the matches
- currently on-screen, but don't move to the first match.
-
-* New modifier for search commands: ^R means don't use regular
- expressions in the search.
-
-* Environment variable LESSKEY gives name of default lesskey file.
-
-* Environment variable LESSSECURE will force less to run in
- "secure" mode.
-
-* Command line argument "--" signals that the rest of the arguments
- are files (not option flags).
-
-* Help file (less.hlp) is no longer installed. Help text is now
- embedded in the less executable itself.
-
-* Added -Ph to change the prompt for the help text.
- Added -Ps to change the default short prompt (same as plain -P).
-
-* Ported to the Borland C compiler for MS-DOS.
-
-* Ported to Windows 95 & Windows NT.
-
-* Ported to OS-9.
-
-* Ported to GNU Hurd.
-
-======================================================================
-
-
- Major changes between "less" versions 290 and 291
-
-* Less environment variables can be specified in lesskey files.
-
-* Fixed MS-DOS build.
-
-======================================================================
-
-
- Major changes between "less" versions 278 and 290
-
-* Accepts GNU-style options "--help" and "--version".
-
-* OS/2 version looks for less.ini in $HOME before $INIT and $PATH.
-
-* Bug fixes
-
-======================================================================
-
-
- Major changes between "less" versions 252 and 278
-
-* A LESSOPEN preprocessor may now pipe the converted file data to less,
- rather than writing it to a temporary file.
-
-* Search pattern highlighting has been fixed. It now highlights
- reliably, even if a string is split across two screen lines,
- contains TABs, etc.
-
-* The -F flag (which suppress search highlighting) has been changed
- to -G. A new flag, -g, changes search highlighting to highlight
- only the string found by the last search command, instead of all
- strings which match the last search command.
-
-* New flag -I acts like -i, but ignores case even if the search
- pattern contains uppercase letters.
-
-* Less now checks for the environment variable VISUAL before EDITOR.
-
-* Ported to OS/2.
-
-======================================================================
-
-
- Major changes between "less" versions 237 and 252
-
-* Changes in line-editing keys:
- The literal key is now ^V or ^A rather than \ (backslash).
- Filename completion commands (TAB and ^L) are disabled
- when typing a search pattern.
-
-* Line-editing command keys can be redefined using lesskey.
-
-* Lesskey with no input file defaults to $HOME/.lesskey
- rather than standard input.
-
-* New option -V displays version number of less.
-
-* New option -V displays version number of lesskey.
-
-* Help file less.hlp is now installed by default in /usr/local/share
- rather than /usr/local/lib.
-
-
-======================================================================
-
-
- Major changes between "less" versions 170 and 237
-
-* By popular demand, text which matches the current search pattern
- is highlighted. New -F flag disables this feature.
-
-* Henry Spencer's regexp.c is now included, for systems which do not
- have a regular expression library.
- regexp.c is Copyright (c) 1986 by University of Toronto.
-
-* New line-editing keys, including command history (arrow keys) and
- filename completion (TAB).
-
-* Input preprocessor allows modification of input files (e.g. uncompress)
- via LESSOPEN/LESSCLOSE environment variables.
-
-* New -X flag disables sending termcap "ti" and "te" (initialize and
- deinitialize) strings to the terminal.
-
-* Changing -i from within less now correctly affects a subsequent
- repeated search.
-
-* Searching for underlined or overstruck text now works when the -u
- flag is in effect, rather than the -i flag.
-
-* Use setlocale (LANG and LC_CTYPE environment variables) to determine
- the character set if LESSCHARSET/LESSCHARDEF are not set.
-
-* The default format for displaying binary characters is now standout
- (reverse video) rather than blinking. This can still be changed by
- setting the LESSBINFMT environment variable.
-
-* Use autoconf installation technology.
-
-* Ported to MS-DOS.
-
- ********************************
- Things that may surprise you
- ********************************
-
-* When you enter text at the bottom of the screen (search string,
- filename, etc.), some keys act different than previously.
- Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L
- now have line editing functions.
-
-* Some previous unofficial versions of less were able to display
- compressed files. The new LESSOPEN/LESSCLOSE feature now provides
- this functionality in a different way.
-
-* Some previous unofficial versions of less provided a -Z flag to
- set the number of lines of text to retain between full screen scrolls.
- The -z-n flag (that is, -z with a negative number) provides this
- functionality.
-
-
-======================================================================
-
-
- Major changes between "less" versions 123 and 170
-
-* New option -j allows target lines to be positioned anywhere on screen.
-
-* New option -S truncates displayed line at the screen width,
- rather than wrapping onto the next line.
-
-* New option -y limits amount of forward scroll.
-
-* New option -T specifies a "tags" file.
-
-* Non-printable, non-control characters are displayed in octal.
- Such characters, as well as control characters, are displayed
- in blinking mode.
-
-* New command -+ sets an option to its default.
-* New command -- sets an option to the opposite of its default.
-
-* Lesskey file may have a string appended to a key's action,
- which acts as though typed in after the command.
-
-* New commands ESC-^F and ESC-^B match arbitrary types of brackets.
-
-* New command F monitors a growing file (like "tail -f").
-
-* New command | pipes a section of the input file into a shell command.
-
-* New command :x directly jumps to a file in the command line list.
-
-* Search commands have been enhanced and reorganized:
- n Repeat search, same direction.
- N Repeat search, opposite direction.
- ESC-/ Search forward thru file boundaries
- ESC-? Search backward thru file boundaries
- ESC-n Repeat search thru file boundaries, same direction.
- ESC-N Repeat search thru file boundaries, opposite direction.
- Special character * causes search to search thru file boundaries.
- Special character @ causes search to begin at start/end of file list.
-
-* Examining a new file adds it to the command line list.
- A list of files, or an expression which matches more than one file,
- may be examined; all of them are added to the command line list.
-
-* Environment variables LESSCHARSET and LESSCHARDEF can define
- a non-ASCII character set.
-
-* Partial support for MSDOS, including options -R for repainting screen
- on quit, -v/-V to select video mode, and -W to change window size.
-
-
-======================================================================
-
-
- Major changes between "less" versions 97 and 123
-
-* New option (-N) causes line numbers to be displayed in the
- text of the file (like vi "set nu").
-
-* New option (-?) prints help message immediately.
-
-* New option (-r) displays "raw" control characters, without
- mapping them to ^X notation.
-
-* New option (-f) forces less to open non-regular files
- (directories, etc).
-
-* New option (-k) can be used to specify lesskey files by name.
-
-* New option (-y) can be used to set a forward scroll limit
- (like -h sets a backward scroll limit).
-
-* File marks (set by the m command) are now preserved when a new
- file is edited. The ' command can thus be used to switch files.
-
-* New command ESC-/ searches all files (on the command line)
- for a pattern.
-
-* New command ESC-n repeats previous search, spanning files.
-
-* The N command has been changed to repeat the previous search
- in the reverse direction. The old N command is still available
- via :n.
-
-* New command ESC-N repeats previous search in the reverse
- direction and spanning files.
-
-* 8 bit characters are now supported. A new option (-g) can be
- used to strip off the eighth bit (the previous behavior).
-
-* Options which take a following string (like -t) may now
- optionally have a space between the option letter and the string.
-
-* Six new commands { } ( ) [ and ] can be used to match
- brackets of specific types, similar to vi % command.
-
-* New commands z and w move forward/backward one window and
- simultaneously set the window size.
-
-* Prompt string expansion now has %L for line number of the last
- line in the file, and %E for the name of the editor.
- Also, % escapes which refer to a line (b=bottom, t=top, etc.)
- can use j for the jump target line.
-
-* New environment variable LESSEDIT can be used to tailor the
- command string passed to the editor by the v command.
-
-* Examining a file which was previously examined will return
- to the same position in the file.
-
-* A "%" is expanded to the current filename and a "#" to the
- previous filename, in both shell commands and the E command.
- (Previously % worked only in shell commands and # worked
- only in the E command.)
-
-* New command ":ta" is equivalent to "-t".
-
-* New command "s" is equivalent to "-l".
-
-* The - command may be followed by "+X" to revert to the default
- for option X, or "-X" to get the opposite of the default.
-
-* Lesskey files may now include characters after the action as
- extra input to be parsed after the action; for example:
- "toggle-option X" to toggle a specific option X.
-
-
-
-
-
diff --git a/less/tools/readme b/less/tools/readme
deleted file mode 100644
index 726904d..0000000
--- a/less/tools/readme
+++ /dev/null
@@ -1,238 +0,0 @@
-
- Less, version 481
-
- This is the distribution of less, version 481, released 31 Aug 2015.
- This program is part of the GNU project (http://www.gnu.org).
-
- This program is free software. You may redistribute it and/or
- modify it under the terms of either:
-
- 1. The GNU General Public License, as published by the Free
- Software Foundation; either version 3, or (at your option) any
- later version. A copy of this license is in the file COPYING.
- or
- 2. The Less License, in the file LICENSE.
-
- Please report any problems to bug-less@gnu.org.
- See http://www.greenwoodsoftware.com/less for the latest info.
-
-=========================================================================
-
-This is the distribution of "less", a paginator similar to "more" or "pg".
-
-The formatted manual page is in less.man.
-The manual page nroff source is in less.nro.
-Major changes made since the last posted version are in NEWS.
-
-=======================================================================
-INSTALLATION (Unix systems only):
-
-1. Move the distributed source to its own directory and unpack it,
- if you have not already done so.
-
-2. Type "sh configure".
- This will generate a Makefile and a defines.h.
- Warning: if you have a GNU sed, make sure it is version 2.05 or later.
-
- The file INSTALL describes the usage of the configure program in
- general. In addition, these options to configure are supported:
-
- --with-editor=program
- Specifies the default editor program used by the "v" command.
- The default is "vi".
-
- --with-regex=lib
- Specifies the regular expression library used by less for pattern
- matching. The default is "auto", which means the configure program
- finds a regular expression library automatically. Other values are:
- gnu Use the GNU regex library.
- pcre Use the PCRE library.
- posix Use the POSIX-compatible regcomp.
- regcmp Use the regcmp library.
- re_comp Use the re_comp library.
- regcomp Use the V8-compatible regcomp.
- regcomp-local Use Henry Spencer's V8-compatible regcomp
- (source is supplied with less).
- none No regular expressions, only simple string matching.
- --with-secure
- Builds a "secure" version of less, with some features disabled
- to prevent users from viewing other files, accessing shell
- commands, etc.
-
-
-3. It is a good idea to look over the generated Makefile and defines.h
- and make sure they look ok. If you know of any peculiarities of
- your system that configure might not have detected, you may fix the
- Makefile now. Take particular notice of the list of "terminal"
- libraries in the LIBS definition in the Makefile; these may need
- to be edited. The terminal libraries will be some subset of
- -lncurses -lcurses -ltermcap -ltermlib
-
- If you wish, you may edit defines.h to remove some optional features.
- If you choose not to include some features in your version, you may
- wish to edit the manual page "less.nro" and the help page "less.hlp"
- to remove the descriptions of the features which you are removing.
- If you edit less.hlp, you should run "make -f Makefile.aut help.c".
-
-4. Type "make" and watch the fun.
-
-5. If the make succeeds, it will generate the programs "less",
- "lesskey" and "lessecho" in your current directory. Test the
- generated programs.
-
-6. When satisfied that it works, if you wish to install it
- in a public place, type "make install".
-
- The default install destinations are:
- Executables (less, lesskey, lessecho) in /usr/local/bin
- Documentation (less.nro, lesskey.nro) in /usr/local/man/man1
- If you want to install any of these files elsewhere, define
- bindir and/or mandir to the appropriate directories.
-
-If you have any problems building or running "less", suggestions,
-complaints, etc., you may mail to bug-less@gnu.org.
-
-Note to hackers: comments noting possible improvements are enclosed
-in double curly brackets {{ like this }}.
-
-(Note that the above note was originally written at a time when
-"hackers" most commonly meant "enthusiastic and dedicated computer
-programmers", not "persons who attempt to circumvent computer security".)
-
-
-
-=======================================================================
-INSTALLATION (MS-DOS systems only,
- with Microsoft C, Borland C, or DJGPP)
-
-1. Move the distributed source to its own directory.
- Depending on your compiler, you may need to convert the source
- to have CR-LF rather than LF as line terminators.
-
-2. If you are using Microsoft C, rename MAKEFILE.DSU to MAKEFILE.
- If you are using Borland C, rename MAKEFILE.DSB to MAKEFILE.
- If you are using DJGPP, rename MAKEFILE.DSG to MAKEFILE.
-
-3. Look at MAKEFILE to make sure that the definitions for CC and LIBDIR
- are correct. CC should be the name of your C compiler and
- LIBDIR should be the directory where the C libraries reside (for
- Microsoft C only). If these definitions need to be changed, you can
- either modify the definitions directly in MAKEFILE, or set your
- environment variables CC and/or LIBDIR to override the definitions
- in MAKEFILE.
-
-4. If you wish, you may edit DEFINES.DS to remove some optional features.
- If you choose not to include some features in your version, you may
- wish to edit the manual page LESS.MAN and the help page HELP.C
- to remove the descriptions of the features which you are removing.
-
-5. Run your "make" program and watch the fun.
- If your "make" requires a flag to import environment variables,
- you should use that flag.
- If your compiler runs out of memory, try running "make -n >cmds.bat"
- and then run cmds.bat.
-
-6. If the make succeeds, it will generate the programs "LESS.EXE" and
- "LESSKEY.EXE" in your current directory. Test the generated programs.
-
-7. When satisfied that it works, you may wish to install LESS.EXE and
- LESSKEY.EXE in a directory which is included in your PATH.
-
-
-
-=======================================================================
-INSTALLATION (Windows-95, Windows-98 and Windows-NT systems only,
- with Borland C or Microsoft Visual C++)
-
-1. Move the distributed source to its own directory.
-
-2. If you are using Borland C, rename Makefile.wnb to Makefile.
- If you are using Microsoft Visual C++, rename Makefile.wnm to Makefile.
-
-3. Check the Makefile to make sure the definitions look ok.
-
-4. If you wish, you may edit defines.wn to remove some optional features.
- If you choose not to include some features in your version, you may
- wish to edit the manual page less.man and the help page help.c
- to remove the descriptions of the features which you are removing.
-
-5. Type "make" and watch the fun.
-
-6. If the make succeeds, it will generate the programs "less.exe" and
- "lesskey.exe" in your current directory. Test the generated programs.
-
-7. When satisfied that it works, if you wish to install it
- in a public place, type "make install".
- See step 6 of the Unix installation instructions for details
- on how to change the default installation directories.
-
-
-
-=======================================================================
-INSTALLATION (OS/2 systems only,
- with EMX C)
-
-1. Move the distributed source to its own directory.
-
-2. Rename Makefile.o2e to Makefile.
-
-3. Check the Makefile to make sure the definitions look ok.
-
-4. If you wish, you may edit defines.o2 to remove some optional features.
- If you choose not to include some features in your version, you may
- wish to edit the manual page less.man and the help page help.c
- to remove the descriptions of the features which you are removing.
-
-5. Type "make" and watch the fun.
-
-6. If the make succeeds, it will generate the programs "less.exe" and
- "lesskey.exe" in your current directory. Test the generated programs.
-
-7. Make sure you have the emx runtime installed. You need the emx DLLs
- emx.dll and emxlibcs.dll and also the termcap database, termcap.dat.
- Make sure you have termcap.dat either in the default location or
- somewhere in a directory listed in the PATH or INIT environment
- variables.
-
-8. When satisfied that it works, you may wish to install less.exe,
- lesskey.exe and scrsize.exe in a directory which is included in
- your PATH. scrsize.exe is required only if you use a terminal
- emulator such as xterm or rxvt.
-
-
-
-=======================================================================
-INSTALLATION (OS-9 systems only,
- with Microware C or Ultra C)
-
-1. Move the distributed source to its own directory.
-
-2. If you are using Microware C, rename Makefile.o9c to Makefile.
- If you are using Ultra C, rename Makefile.o9u to Makefile.
-
-3. Check the Makefile to make sure the definitions look ok.
-
-4. If you wish, you may edit defines.o9 to remove some optional features.
- If you choose not to include some features in your version, you may
- wish to edit the manual page less.man and the help page help.c
- to remove the descriptions of the features which you are removing.
-
-5. Type "dmake" and watch the fun.
- The standard OS-9 "make" will probably not work. If you don't
- have dmake, you can get a copy from os9archive.rtsi.com.
-
-6. If the make succeeds, it will generate the programs "less" and
- "lesskey" in your current directory. Test the generated programs.
-
-7. When satisfied that it works, if you wish to install it
- in a public place, type "dmake install".
- See step 6 of the Unix installation instructions for details
- on how to change the default installation directories.
-
-=======================================================================
-ACKNOWLEDGMENTS:
- Some versions of the less distribution are packaged using
- Info-ZIP's compression utility.
- Info-ZIP's software is free and can be obtained as source
- code or executables from various anonymous-ftp sites,
- including ftp.uu.net:/pub/archiving/zip.
diff --git a/less/update.ps1 b/less/update.ps1
index 1280f39..d76c05e 100644
--- a/less/update.ps1
+++ b/less/update.ps1
@@ -3,33 +3,44 @@ import-module au
$releases = 'http://guysalias.tk/misc/less/'
function global:au_SearchReplace {
- @{}
+ @{
+ ".\tools\VERIFICATION.txt" = @{
+ "(?i)(\s+x32:).*" = "`${1} $($Latest.URL32)"
+ "(?i)(checksum32:).*" = "`${1} $($Latest.Checksum32)"
+ }
+ }
}
function global:au_BeforeUpdate {
+ set-alias 7z $Env:chocolateyInstall\tools\7z.exe
+
$lessdir = "$PSScriptRoot\less-*-win*"
rm $lessdir -Recurse -Force -ea ignore
- Invoke-WebRequest $Latest.URL -OutFile less.7z
- 7za x $PSScriptRoot\less.7z
+ iwr $Latest.URL32 -OutFile "$PSScriptRoot\less.7z"
+ 7z x $PSScriptRoot\less.7z
- rm $PSScriptRoot\tools\* -Recurse -Force
+ rm $PSScriptRoot\tools\* -Recurse -Force -Exclude VERIFICATION.txt
mv $lessdir\* $PSScriptRoot\tools -Force
rm $lessdir -Recurse -Force -ea ignore
rm $PSScriptRoot\less.7z -ea ignore
}
function global:au_GetLatest {
- $download_page = Invoke-WebRequest -Uri $releases
+ $download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing
- $re = 'less-.+win.+\.7z'
- $url = $download_page.links | ? href -match $re | select -First 1 -expand href
-
- $version = ($url -split '-' | select -Index 1) / 100
- $url = $releases + $url
-
- $Latest = @{ URL = $url; Version = $version }
- return $Latest
+ $re = 'less-.+win.+\.7z$'
+ $url = $download_page.links | ? href -match $re | select -First 1 -expand href
+ $version = "$( ($url -split '-' | select -Index 1) / 100 )"
+ @{
+ URL32 = $releases + $url
+ Version = $version
+ }
}
-update
+try {
+ update -ChecksumFor none
+} catch {
+ $ignore = 'Unable to connect to the remote server'
+ if ($_ -match $ignore) { Write-Host $ignore; 'ignore' } else { throw $_ }
+}
diff --git a/librecad/librecad.nuspec b/librecad/librecad.nuspec
new file mode 100644
index 0000000..18092a3
--- /dev/null
+++ b/librecad/librecad.nuspec
@@ -0,0 +1,33 @@
+
+
+
+
+ librecad
+ 2.1.3
+ LibreCAD
+ chocolatey
+ LibreCAD community
+ https://github.com/LibreCAD/LibreCAD/blob/master/LICENSE
+ http://librecad.org/cms/home.html
+ https://github.com/LibreCAD/LibreCAD
+ http://wiki.librecad.org/
+ http://librecad.org/cms/home/get-help/forum.html
+ https://github.com/LibreCAD/LibreCAD/issues
+ https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/edba4a5849ff756e767cba86641bea97ff5721fe/icons/librecad.svg
+ false
+
+LibreCAD is a free Open Source CAD application for Windows, Apple and Linux. Support and documentation is free from our large, dedicated community of users, contributors and developers.
+
+ Open Source CAD application
+ https://github.com/LibreCAD/LibreCAD/releases/tag/2.1.3
+
+ CAD 2D admin
+ https://github.com/chocolatey/chocolatey-coreteampackages/tree/master/automatic/librecad
+
+
+
+
+
+
+
+
diff --git a/librecad/tools/chocolateyInstall.ps1 b/librecad/tools/chocolateyInstall.ps1
new file mode 100644
index 0000000..11f1592
--- /dev/null
+++ b/librecad/tools/chocolateyInstall.ps1
@@ -0,0 +1,16 @@
+$ErrorActionPreference = 'Stop'
+
+$packageArgs = @{
+ packageName = 'librecad'
+ fileType = 'exe'
+ softwareName = 'LibreCAD'
+
+ checksum = '4c0855316934fbb9af712df2bdbc7c11e46b4569af2e6f2d4d7e6574d13f05cb'
+ checksumType = 'sha256'
+ url = 'https://github.com/LibreCAD/LibreCAD/releases/download/2.1.3/LibreCAD-Installer-2.1.3.exe'
+
+ silentArgs = '/S'
+ validExitCodes = @(0)
+}
+
+Install-ChocolateyPackage @packageArgs
diff --git a/librecad/tools/chocolateyUninstall.ps1 b/librecad/tools/chocolateyUninstall.ps1
new file mode 100644
index 0000000..e1ac298
--- /dev/null
+++ b/librecad/tools/chocolateyUninstall.ps1
@@ -0,0 +1,27 @@
+$ErrorActionPreference = 'Stop';
+
+$packageName = 'librecad'
+
+$uninstalled = $false
+[array]$key = Get-UninstallRegistryKey -SoftwareName 'LibreCAD'
+
+if ($key.Count -eq 1) {
+ $key | % {
+ $packageArgs = @{
+ packageName = $packageName
+ fileType = 'EXE'
+ silentArgs = '/S'
+ validExitCodes = @(0)
+ file = "$($_.UninstallString.Trim('"'))"
+ }
+
+ Uninstall-ChocolateyPackage @packageArgs
+ }
+} elseif ($key.Count -eq 0) {
+ Write-Warning "$packageName has already been uninstalled by other means."
+} elseif ($key.Count -gt 1) {
+ Write-Warning "$key.Count matches found!"
+ Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
+ Write-Warning "Please alert package maintainer the following keys were matched:"
+ $key | % {Write-Warning "- $_.DisplayName"}
+}
diff --git a/librecad/update.ps1 b/librecad/update.ps1
new file mode 100644
index 0000000..d81ea35
--- /dev/null
+++ b/librecad/update.ps1
@@ -0,0 +1,36 @@
+import-module au
+
+$domain = 'https://github.com'
+$releases = "$domain/LibreCAD/LibreCAD/releases/latest"
+
+function global:au_SearchReplace {
+ @{
+ ".\tools\chocolateyInstall.ps1" = @{
+ "(?i)(^\s*url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
+ "(?i)(^\s*checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
+ "(?i)(^\s*checksumType\s*=\s*)('.*')" = "`$1'$($Latest.ChecksumType32)'"
+ }
+ ".\librecad.nuspec" = @{
+ "\.+" = "$($Latest.ReleaseNotes)"
+ }
+ }
+}
+
+function global:au_GetLatest {
+ $download_page = Invoke-WebRequest -UseBasicParsing -Uri $releases
+
+ $re = '\.exe$'
+ $url = $download_page.links | ? href -match $re | select -First 1 -expand href
+
+ $version = ($url -split '/' | select -Last 1 -Skip 1)
+
+ $releaseNotesUrl = "$domain/LibreCAD/LibreCAD/releases/tag/" + $version
+
+ @{
+ URL32 = $domain + $url
+ Version = $version
+ ReleaseNotes = $releaseNotesUrl
+ }
+}
+
+update -ChecksumFor 32
diff --git a/plantuml/icon.png b/plantuml/icon.png
deleted file mode 100644
index a890ed9..0000000
Binary files a/plantuml/icon.png and /dev/null differ
diff --git a/plantuml/plantuml.nuspec b/plantuml/plantuml.nuspec
deleted file mode 100644
index aa4b9d7..0000000
--- a/plantuml/plantuml.nuspec
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
- plantuml
- 1.8047
- PlantUML
- Arnaud Roques
- Yoshimov, Miodrag Milić
- http://www.gnu.org/copyleft/gpl.html
- http://plantuml.com
- false
- PlantUML is a component that allows to quickly write UML diagrams using simple and intuitive language.
-
-PlantUML is a component that allows to quickly write:
-
-- [sequence diagram](http://plantuml.com/sequence.html)
-- [use case diagram](http://plantuml.com/usecase.html)
-- [class diagram](http://plantuml.com/classes.html)
-- [activity diagram](http://plantuml.com/activity2.html)
-- [component diagram](http://plantuml.com/component.html)
-- [state diagram](http://plantuml.com/state.html)
-- [deployment diagram](http://plantuml.com/deployment.html)
-- [object diagram](http://plantuml.com/objects.html)
-- [wireframe graphical interface](http://plantuml.com/salt.html)
-
-Diagrams are defined using a simple and intuitive language. This can be used within many other tools.
-Images can be generated in PNG, in SVG or LaTeX format. It is also possible to generate ASCII art diagrams (only for sequence diagrams).
-
-Try it online using [plantuml online server](http://www.plantuml.com/plantuml/beta).
-
-
-
-
- http://plantuml.com/changes.html
- https://cdn.rawgit.com/majkinetor/chocolatey/master/plantuml/icon.png
- © 2009 Arnaud Roques
- plantuml uml diagram graph
-
-
-
-
- https://sourceforge.net/p/plantuml/code/
- https://github.com/majkinetor/chocolatey/tree/master/plantuml
- http://plantuml.sourceforge.net/qa
- http://plantuml.com/PlantUML_Language_Reference_Guide.pdf
-
-
-
-
-
diff --git a/plantuml/screenshot.png b/plantuml/screenshot.png
deleted file mode 100644
index 2eebcad..0000000
Binary files a/plantuml/screenshot.png and /dev/null differ
diff --git a/plantuml/tools/chocolateyInstall.ps1 b/plantuml/tools/chocolateyInstall.ps1
deleted file mode 100644
index b81fada..0000000
--- a/plantuml/tools/chocolateyInstall.ps1
+++ /dev/null
@@ -1,25 +0,0 @@
-$ErrorActionPreference = 'Stop'
-
-$packageName = 'plantuml'
-$url = 'http://sourceforge.net/projects/plantuml/files/plantuml.8047.jar/download'
-$checksum = '955ad9dab7e53c8df427d1d56eafa40e558c6e551dcf64f161bb7aaa20c34185'
-$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
-$tmpPath = "$Env:TMP\chocolatey\$packagename"
-$cmdPath = join-path $env:ChocolateyInstall bin\plantuml.cmd
-
-$params = @{
- PackageName = $packageName
- FileFullPath = "$tmpPath\plantuml.jar"
- Url = $url
- Url64Bit = $url
- checksum = $checksum
- checksum64 = $checksum
- checksumType = 'sha256'
- checksumType64 = 'sha256'
-}
-Get-ChocolateyWebFile @params
-
-cp "$tmpPath\plantuml.jar" $toolsPath
-"start java -jar ""$toolsPath\plantuml.jar"" %*" | out-file $cmdPath -Encoding ascii
-
-Write-Host "Plantuml installed in: $toolsPath\plantuml"
diff --git a/plantuml/update.ps1 b/plantuml/update.ps1
deleted file mode 100644
index 725a37a..0000000
--- a/plantuml/update.ps1
+++ /dev/null
@@ -1,26 +0,0 @@
-import-module au
-
-$releases = 'http://plantuml.com/changes.html'
-
-function global:au_SearchReplace {
- @{
- ".\tools\chocolateyInstall.ps1" = @{
- "(^[$]url\s*=\s*)('.*')" = "`$1'$($Latest.URL)'"
- "(^[$]checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'"
- }
- }
-}
-
-function global:au_GetLatest {
- $download_page = Invoke-WebRequest -Uri $releases
- if ($download_page.Content -match 'V\d{4,4}')
- {
- $version = "1." + $Matches[0].Substring(1)
- $url = "http://sourceforge.net/projects/plantuml/files/plantuml." + $version.Substring(2) + '.jar/download'
- }
- else { throw "Can't match version 'V\d{4,4}'" }
-
- return @{ URL = $url; Version = $version }
-}
-
-update -ChecksumFor 64
diff --git a/prey/prey.nuspec b/prey/prey.nuspec
new file mode 100644
index 0000000..de27cb1
--- /dev/null
+++ b/prey/prey.nuspec
@@ -0,0 +1,33 @@
+
+
+
+
+ prey
+ 1.6.6
+ Prey
+ chocolatey
+ Fork Ltd
+ https://www.gnu.org/licenses/gpl.html
+ http://preyproject.com/
+ https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/3954a1a1afd46d88381ec1e87c3e4cd3dad16066/icons/prey.png
+ false
+
+Prey lets you keep track of your laptop, phone and tablet whenever stolen or missing – easily and all in one place. It’s lightweight, open source software that gives you full and remote control, 24/7.
+
+### Notes
+
+- To pass your `API_KEY` you can use `choco install prey -y -ia "'/API_KEY=foobarr123'`
+- You may need to run `C:\Windows\Prey\current\bin\prey config gui -f` after installation to configure Prey.
+
+ Prey is a lightweight application to track a laptop or mobile if it gets stolen or missing.
+ https://github.com/prey/prey-node-client/releases
+
+ prey anti-theft lockdown tracking admin
+ https://github.com/chocolatey/chocolatey-coreteampackages/tree/master/automatic/prey
+ https://github.com/prey/prey-node-client
+ http://help.preyproject.com/
+
+
+
+
+
diff --git a/prey/tools/chocolateyInstall.ps1 b/prey/tools/chocolateyInstall.ps1
new file mode 100644
index 0000000..23f5388
--- /dev/null
+++ b/prey/tools/chocolateyInstall.ps1
@@ -0,0 +1,18 @@
+#http://help.preyproject.com/article/188-prey-unattended-install-for-computers
+
+$ErrorActionPreference = 'Stop'
+
+$packageArgs = @{
+ packageName = 'prey'
+ fileType = 'msi'
+ url = 'https://github.com/prey/prey-node-client/releases/download/v1.6.6/prey-windows-1.6.6-x86.msi'
+ url64bit = 'https://github.com/prey/prey-node-client/releases/download/v1.6.6/prey-windows-1.6.6-x64.msi'
+ checksum = 'b38c383da6cfc283d9e59ab22629688f82cc4007f166563084a18680cfc450d3'
+ checksum64 = '49cbdd7dc73c3a675d1f0c6615db4a7e2809475120109ffda4f27465b4871843'
+ checksumType = 'sha256'
+ checksumType64 = 'sha256'
+ silentArgs = '/qn'
+ validExitCodes = @(0)
+ softwareName = 'prey*'
+}
+Install-ChocolateyPackage @packageArgs
diff --git a/prey/update.ps1 b/prey/update.ps1
new file mode 100644
index 0000000..de2a81e
--- /dev/null
+++ b/prey/update.ps1
@@ -0,0 +1,30 @@
+import-module au
+
+$releases = 'https://github.com/prey/prey-node-client/releases'
+
+function global:au_SearchReplace {
+ @{
+ ".\tools\chocolateyInstall.ps1" = @{
+ "(?i)(^\s*url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
+ "(?i)(^\s*url64bit\s*=\s*)('.*')" = "`$1'$($Latest.URL64)'"
+ "(?i)(^\s*checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
+ "(?i)(^\s*checksum64\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'"
+ }
+ }
+}
+
+function global:au_GetLatest {
+ $download_page = Invoke-WebRequest -Uri $releases
+
+ $url64 = $download_page.links | ? href -match '.msi$' | % href | select -First 1
+ $url32 = $url64 -replace 'x64.msi$', 'x86.msi'
+ $version = (Split-Path ( Split-Path $url32 ) -Leaf).Substring(1)
+
+ @{
+ URL32 = 'https://github.com' + $url32
+ URL64 = 'https://github.com' + $url64
+ Version = $version
+ }
+}
+
+update