1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-28 07:43:34 +01:00

Mangle pathnames in the XPI to foil the fastload cache on upgrade and fix the command line option handler in fresh installs.

This commit is contained in:
Kris Maglione
2010-12-30 21:34:13 -05:00
parent 04731384f6
commit 47288b3456
11 changed files with 43 additions and 36 deletions

View File

@@ -45,8 +45,8 @@ copytext() {
sed -e "s,@VERSION@,$VERSION,g" \
-e "s,@DATE@,$BUILD_DATE,g" \
<"$1" >"$2"
cmp -s "$1" "$2" ||
( echo "modified: $1"; diff -u "$1" "$2" | grep '^[-+][^-+]' )
cmp -s -- "$1" "$2" ||
( echo "modified: $1"; diff -u -- "$1" "$2" | grep '^[-+][^-+]' )
}
[ -e "$top/$jar" ] && rm -rf "$top/$jar"
@@ -62,7 +62,7 @@ do
for f in $(getfiles "$bin" "$dir")
do
mkdir -p "$stage/${f%/*}"
cp $f "$stage/$f"
cp -- $f "$stage/$f"
done
for f in $(getfiles "$text" "$dir")
do
@@ -82,8 +82,8 @@ done
set -e;
cd $stage;
case $jar in
(*/) if [ "$stage" != "$top/$jar" ]; then mv * $top/$jar; fi;;
(*) zip -9r "$top/$jar" *;;
(*/) if [ "$stage" != "$top/$jar" ]; then mv -- * $top/$jar; fi;;
(*) zip -9r "$top/$jar" -- *;;
esac
) || exit 1