mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Update NSS to 3.35-RTM
This commit is contained in:
parent
fe49ad404e
commit
66dd670b60
388 changed files with 39075 additions and 20752 deletions
|
|
@ -7,18 +7,18 @@ if [ $# -lt 3 ]; then
|
|||
exit 2
|
||||
fi
|
||||
|
||||
REPO=$1
|
||||
COMMIT=$2
|
||||
DIR=$3
|
||||
REPO="$1"
|
||||
COMMIT="$2"
|
||||
DIR="$3"
|
||||
|
||||
echo "Copy '$COMMIT' from '$REPO' to '$DIR'"
|
||||
if [ -f $DIR/.git-copy ]; then
|
||||
CURRENT=$(cat $DIR/.git-copy)
|
||||
if [ $(echo -n $COMMIT | wc -c) != "40" ]; then
|
||||
if [ -f "$DIR"/.git-copy ]; then
|
||||
CURRENT=$(cat "$DIR"/.git-copy)
|
||||
if [ $(echo -n "$COMMIT" | wc -c) != "40" ]; then
|
||||
# On the off chance that $COMMIT is a remote head.
|
||||
ACTUAL=$(git ls-remote $REPO $COMMIT | cut -c 1-40 -)
|
||||
ACTUAL=$(git ls-remote "$REPO" "$COMMIT" | cut -c 1-40 -)
|
||||
else
|
||||
ACTUAL=$COMMIT
|
||||
ACTUAL="$COMMIT"
|
||||
fi
|
||||
if [ "$CURRENT" = "$ACTUAL" ]; then
|
||||
echo "Up to date."
|
||||
|
|
@ -26,8 +26,9 @@ if [ -f $DIR/.git-copy ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
git init -q $DIR
|
||||
git -C $DIR fetch -q --depth=1 $REPO $COMMIT:git-copy-tmp
|
||||
git -C $DIR reset --hard git-copy-tmp
|
||||
git -C $DIR rev-parse --verify HEAD > $DIR/.git-copy
|
||||
rm -rf $DIR/.git
|
||||
rm -rf "$DIR"
|
||||
git init -q "$DIR"
|
||||
git -C "$DIR" fetch -q --depth=1 "$REPO" "$COMMIT":git-copy-tmp
|
||||
git -C "$DIR" reset --hard git-copy-tmp
|
||||
git -C "$DIR" rev-parse --verify HEAD > "$DIR"/.git-copy
|
||||
rm -rf "$DIR"/.git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue