Giter VIP home page Giter VIP logo

Comments (3)

jhnc avatar jhnc commented on August 15, 2024

Thank you for the report. The typo is fixed in git but I haven't tagged a new release yet.

Exit codes are documented at: https://github.com/jhnc/findimagedupes#return-value

The version is obtained from git and patched into the program. If you are using a version someone else packaged, you should let them know (eg. debian recently fixed their build process).

If you are building yourself, you'll need to perform a similar process to that done by the Makefile and patchver script (or just edit the variable manually):

findimagedupes/Makefile

Lines 26 to 27 in 34dd0dc

git describe --tags > VERSION
./patchver

perl -i -pe 's/^(my \$Id = ).*/$1"'$(cat VERSION)'";/' findimagedupes

from findimagedupes.

tenzap avatar tenzap commented on August 15, 2024

Oh ok, thanks. I checked exit codes but wasn't careful enough.

I just took the raw file from github on a tag without any other change.
Well, I did some changes, especially DIRECTORY and the shebang to /usr/bin/env perl

Actually I was installing this way: #8 (comment)

from findimagedupes.

jhnc avatar jhnc commented on August 15, 2024

Thanks for providing your install notes. Hopefully they will help someone. 👍

If you are just pulling the raw file, you could parameterise the tag version to a variable in your script and then also use it in an extra gsed line that does the equivalent of patchver. (All the gsed commands can be a single invocation.) For example:

VERSION=2.20.1
# ...
wget https://raw.githubusercontent.com/jhnc/findimagedupes/$VERSION/findimagedupes
# ..
gsed -i "
    /^#\!/s#perl#env &#
    /DIRECTORY =>/s#'.*'#\$ENV{HOME}#
    /my \$Id/s#'.*'#'$VERSION'#
" findimagedupes
# ...

from findimagedupes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.