Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / debian / get-orig-source.sh
blob625e075733a72f6787d5da863cb624cd5dcb2eaa
1 #!/bin/sh
3 set -ex
5 UPSTREAM_VERSION=$2
6 ORIG_TARBALL=../ace_${UPSTREAM_VERSION}.orig.tar.xz
8 REAL_TARBALL=`readlink -f ${ORIG_TARBALL}`
10 WORKING_DIR=`dirname ${ORIG_TARBALL}`
12 ORIG_TARBALL_DFSG=`echo ${ORIG_TARBALL} | sed -e "s/\(${UPSTREAM_VERSION}\)\(\.orig\)/\1+dfsg\2/g" | sed -e 's/xz/gz/g'`
13 ORIG_TARBALL_DIR=`echo ${ORIG_TARBALL_DFSG} | sed -e "s/_\(${UPSTREAM_VERSION}\)/-\1/g" -e "s/\.tar\.gz//g"`
14 ORIG_TARBALL_DIR_STRIP=`basename ${ORIG_TARBALL_DIR}`
16 mkdir -p ${ORIG_TARBALL_DIR}
17 tar --directory=${ORIG_TARBALL_DIR} --strip 1 -xf ${REAL_TARBALL} || exit 1
18 rm -f ${ORIG_TARBALL} ${REAL_TARBALL}
20 cd ${ORIG_TARBALL_DIR}
22 GZIP=-9 tar --remove-files -czf ${ORIG_TARBALL_DFSG} ${ORIG_TARBALL_DIR} || exit 1
24 exit 0