#!/bin/sh
CWD=$(pwd)
root=$(cd ../../../../.. && pwd)
outputs=$root/slint-testing/source/global-building/big_upgrade/outputs
oldtarball=$root/slint-14.2/source/slint-user-settings/slint-user-settings.tar.xz
newtarball=$root/slint-testing/source/slint-user-settings/slint-user-settings.tar.xz
old=$(mktemp -d)
new=$(mktemp -d)
dummy=$(mktemp)
dummy2=$(mktemp)
cp $oldtarball $old
cp $newtarball $new
(cd $old
	tar -xf *xz
	rm *xz
)
(cd $new
	tar -xf *xz
	rm *xz
)
	mv $old /tmp/old
	mv $new /tmp/nw
#diff -qr $old $new > $dummy
#diff -ru $old $new > $dummy2
#sed "s,$old,old,;s,$new,new," $dummy > $outputs/user-settings.diff
#sed "s,$old,old,;s,$new,new," $dummy2 > $outputs/user-settings-details.diff
#rm -r $old $new $dummy $dummy2
