mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 16:15:45 +01:00
Fix 'make install' on Cygwin and make_jar.sh on Cygwin and BSD-ish systems. Closes issue #43.
This commit is contained in:
@@ -9,19 +9,29 @@ text=$4
|
||||
bin=$5
|
||||
shift 5;
|
||||
files="$@"
|
||||
HG=${HG:-hg}
|
||||
|
||||
stage="$top/${jar%.*}"
|
||||
mkdir -p $stage
|
||||
|
||||
if hg root >/dev/null 2>&1
|
||||
sed=$(which sed)
|
||||
if [ "xoo" = x$(echo foo | sed -E 's/f(o)/\1/' 2>/dev/null) ]
|
||||
then sed() { $sed -E "$@"; }
|
||||
else sed() { $sed -r "$@"; }
|
||||
fi
|
||||
|
||||
if $HG root >/dev/null 2>&1
|
||||
then
|
||||
root="$(hg root)"
|
||||
mf="$(hg --config ui.debug=false --config ui.verbose=false manifest)"
|
||||
root="$($HG root)"
|
||||
which cygpath >/dev/null 2>&1 && root=$(cygpath $root)
|
||||
|
||||
mf="$($HG --config ui.debug=false --config ui.verbose=false manifest)"
|
||||
find=$(which find)
|
||||
find() {
|
||||
$find "$@" -name '*.jar'
|
||||
echo "$mf" | sed -n "s!$(pwd | sed "s!$root/\?!!")/\?!!p" |
|
||||
echo "$mf" | sed -n "s!$(pwd | sed "s!$root/?!!")/?!!p" |
|
||||
grep "^$1"
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user