blob: b3c9f672802db385290a82ddb2979004d59b3bbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
set -e
if [ -z "$1" ]; then
echo "Usage: $0 <stack-archive.tar.bz2>"
exit 1
fi
SCRIPT_DIR=$(readlink -f `dirname $0`)
STACK_ARCHIVE_FILE_NAME=$(basename $1)
STACK_ARCHIVE_DIR_NAME=$(readlink -f `dirname $1`)
STACK_NAME=${1%.tar.bz2}
TMP_DIRECTORY_NAME=$(mktemp -d /tmp/${STACK_NAME}.XXXXXXXXXX)
cd $TMP_DIRECTORY_NAME
tar xjf ${STACK_ARCHIVE_DIR_NAME}/${STACK_ARCHIVE_FILE_NAME}
cp -r ${STACK_NAME} ${STACK_NAME}-orig
$SCRIPT_DIR/fix-python-scripts.sh ${TMP_DIRECTORY_NAME}/${STACK_NAME}
diff -Naur ${STACK_NAME}-orig ${STACK_NAME}
|