Merge remote-tracking branch 'origin/3.3' into 3.4
This commit is contained in:
commit
7a1efdbab6
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# run with
|
# Scan for new official sources and download file
|
||||||
# debian/get-orig-source.sh [x.y.z]
|
# run with debian/get-orig-source.sh [x.y.z]
|
||||||
|
|
||||||
tmpdir=$(mktemp -d)
|
tmpdir=$(mktemp -d)
|
||||||
echo "tmpdir = $tmpdir"
|
echo "tmpdir = $tmpdir"
|
||||||
@ -13,28 +13,11 @@ uscan --noconf --force-download --no-symlink --verbose --destdir=$tmpdir $uscan_
|
|||||||
cd $tmpdir
|
cd $tmpdir
|
||||||
|
|
||||||
tgzfile=$(echo *.tgz)
|
tgzfile=$(echo *.tgz)
|
||||||
version=$(echo "$tgzfile" | perl -pi -e 's/^dolibarr_//; s/\.zip$//; s/_/./g; s/\+nmu1//; s/$/+dfsg/;')
|
version=$(echo "$tgzfile" | perl -pi -e 's/^dolibarr-//; s/\.tgz$//; s/_/./g; s/\+nmu1//; ')
|
||||||
|
|
||||||
# Extract the zip file
|
|
||||||
tar -xvf $tgzfile
|
|
||||||
srcdir=$(find . -maxdepth 1 -mindepth 1 -type d | sed -e 's/\.\///')
|
|
||||||
|
|
||||||
if [ ! -d "$srcdir" ]; then
|
|
||||||
echo "ERROR: Failed to identify the extracted directory in $tmpdir (got $srcdir)" >&2
|
|
||||||
rm -rf $tmpdir
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Repack as tar.xz
|
|
||||||
tar Jcf dolibarr_${version}.orig.tar.xz $srcdir
|
|
||||||
|
|
||||||
cd - >/dev/null
|
cd - >/dev/null
|
||||||
|
|
||||||
if [ -e ../dolibarr_${version}.orig.tar.xz ]; then
|
mv $tmpdir/dolibarr-${version}.tgz ../
|
||||||
echo "Not overwriting ../dolibarr_${version}.orig.tar.xz";
|
echo "File ../dolibarr-${version}.tgz is ready for git-import"
|
||||||
else
|
|
||||||
echo "Created ../dolibarr_${version}.orig.tar.xz"
|
|
||||||
mv $tmpdir/dolibarr_${version}.orig.tar.xz ../
|
|
||||||
fi
|
|
||||||
|
|
||||||
#rm -rf $tmpdir
|
rm -rf $tmpdir
|
||||||
|
|||||||
@ -37,8 +37,6 @@ htdocs/customleave
|
|||||||
htdocs/customgoogle
|
htdocs/customgoogle
|
||||||
htdocs/document
|
htdocs/document
|
||||||
htdocs/documents
|
htdocs/documents
|
||||||
htdocs/includes/ckeditor/_source
|
|
||||||
htdocs/includes/ckeditor/*_source.js
|
|
||||||
htdocs/includes/fckeditor/_samples
|
htdocs/includes/fckeditor/_samples
|
||||||
htdocs/includes/fckeditor/_testcases
|
htdocs/includes/fckeditor/_testcases
|
||||||
htdocs/includes/nusoap/samples
|
htdocs/includes/nusoap/samples
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user