mirror of
https://github.com/fltk/fltk.git
synced 2026-05-26 01:46:58 +08:00
Finalize makesrcdist (internal use only)
This commit is contained in:
+11
-9
@@ -47,8 +47,8 @@ fi
|
|||||||
|
|
||||||
# These are the release and snapshot download URL's currently in use:
|
# These are the release and snapshot download URL's currently in use:
|
||||||
|
|
||||||
DOWNLOAD='http://fltk.org/pub/fltk'
|
DOWNLOAD='https://www.fltk.org/pub/fltk'
|
||||||
SNAPSHOT='http://fltk.org/pub/fltk/snapshots'
|
SNAPSHOT='https://www.fltk.org/pub/fltk/snapshots'
|
||||||
|
|
||||||
DATE="`date +'%Y%m%d'`"
|
DATE="`date +'%Y%m%d'`"
|
||||||
|
|
||||||
@@ -62,11 +62,9 @@ echo "Getting distribution..."
|
|||||||
if test $# = 0 -o "x$1" = "xsnapshot"; then
|
if test $# = 0 -o "x$1" = "xsnapshot"; then
|
||||||
echo Getting snapshot revision...
|
echo Getting snapshot revision...
|
||||||
rev="`git rev-parse --short=8 HEAD`"
|
rev="`git rev-parse --short=8 HEAD`"
|
||||||
version="${VS}-git"
|
version="${VS}-${rev}"
|
||||||
fileversion="${VS}.x-${DATE}-$rev"
|
fileversion="${VS}.x-${DATE}-$rev"
|
||||||
fileurl="$SNAPSHOT/fltk-$fileversion.tar.gz"
|
fileurl="$SNAPSHOT/fltk-$fileversion.tar.gz"
|
||||||
echo "fileversion = $fileversion"
|
|
||||||
echo "fileurl = $fileurl"
|
|
||||||
else
|
else
|
||||||
if test ! -e "documentation/html/"; then
|
if test ! -e "documentation/html/"; then
|
||||||
echo "ERROR: Please generate the HTML documentation before distributing:"
|
echo "ERROR: Please generate the HTML documentation before distributing:"
|
||||||
@@ -89,10 +87,15 @@ else
|
|||||||
|
|
||||||
if test "x$2" = "xtag"; then
|
if test "x$2" = "xtag"; then
|
||||||
echo "Creating Git tag 'release-$version' ..."
|
echo "Creating Git tag 'release-$version' ..."
|
||||||
git tag -a -m "Tag $version" release-$version || exit 1
|
git tag -a -m "Release $version" release-$version || exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Debug:
|
||||||
|
# echo "version = $version"
|
||||||
|
# echo "fileversion = $fileversion"
|
||||||
|
# echo "fileurl = $fileurl"
|
||||||
|
|
||||||
echo Exporting $version to /tmp/fltk-$version/...
|
echo Exporting $version to /tmp/fltk-$version/...
|
||||||
rm -rf /tmp/fltk-$version
|
rm -rf /tmp/fltk-$version
|
||||||
mkdir /tmp/fltk-$version
|
mkdir /tmp/fltk-$version
|
||||||
@@ -107,17 +110,16 @@ fi
|
|||||||
echo Applying version number...
|
echo Applying version number...
|
||||||
cd /tmp/fltk-$version
|
cd /tmp/fltk-$version
|
||||||
|
|
||||||
fileurl=`echo $fileurl | sed -e '1,$s/\\//\\\\\\//g'`
|
|
||||||
sed -e '1,$s/@VERSION@/'$version'/' \
|
sed -e '1,$s/@VERSION@/'$version'/' \
|
||||||
-e '1,$s/@RELEASE@/'$rev'/' \
|
-e '1,$s/@RELEASE@/'$rev'/' \
|
||||||
-e '1,$s/^Source:.*/Source: '$fileurl'/' \
|
-e '1,$s#^Source:.*#Source: '$fileurl'#' \
|
||||||
<fltk.spec.in >fltk.spec
|
<fltk.spec.in >fltk.spec
|
||||||
|
|
||||||
echo Creating configure script...
|
echo Creating configure script...
|
||||||
autoconf -f
|
autoconf -f
|
||||||
|
|
||||||
echo Creating config.guess and config.sub \(ignore any other errors\)...
|
echo Creating config.guess and config.sub \(ignore any other errors\)...
|
||||||
automake --add-missing --copy
|
automake --add-missing --copy 2>/dev/null
|
||||||
|
|
||||||
echo Cleaning developer files...
|
echo Cleaning developer files...
|
||||||
rm -rf OpenGL autom4te* bc5 config forms glut images packages themes
|
rm -rf OpenGL autom4te* bc5 config forms glut images packages themes
|
||||||
|
|||||||
Reference in New Issue
Block a user