mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-28 23:10:08 +00:00
scripts: first batch of hg->git conversion
Replace calls to 'hg' with as-close-as-possible equivalents in git. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
parent
bdf731eead
commit
a11b51c254
@ -2,7 +2,6 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ([2.67])
|
AC_PREREQ([2.67])
|
||||||
#AC_INIT([crosstool-NG], [hg], [crossgcc@sourceware.org])
|
|
||||||
AC_INIT([crosstool-NG], [m4_esyscmd_s([cat .version])], [crossgcc@sourceware.org])
|
AC_INIT([crosstool-NG], [m4_esyscmd_s([cat .version])], [crossgcc@sourceware.org])
|
||||||
AC_CONFIG_AUX_DIR([scripts])
|
AC_CONFIG_AUX_DIR([scripts])
|
||||||
|
|
||||||
@ -360,10 +359,8 @@ AS_IF(
|
|||||||
[PACKAGE_VERSION="${V}"],
|
[PACKAGE_VERSION="${V}"],
|
||||||
[AS_CASE(
|
[AS_CASE(
|
||||||
[${PACKAGE_VERSION}],
|
[${PACKAGE_VERSION}],
|
||||||
[hg|*+hg],
|
[git|*+git],
|
||||||
[rev_id="$( hg log -r . --template '{branch}-{node|short}\n' \
|
[rev_id="$( git describe --tags 2>/dev/null )"
|
||||||
2>/dev/null \
|
|
||||||
|| true )"
|
|
||||||
PACKAGE_VERSION="${PACKAGE_VERSION}+${rev_id:-unknown-$( date +%Y%m%d.%H%M%S )}"
|
PACKAGE_VERSION="${PACKAGE_VERSION}+${rev_id:-unknown-$( date +%Y%m%d.%H%M%S )}"
|
||||||
])])
|
])])
|
||||||
# Arrange to have no / in the directory name, no need to create an
|
# Arrange to have no / in the directory name, no need to create an
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Broken, fix hg->git conversion first" >&2
|
||||||
|
exit 1
|
||||||
|
|
||||||
repos="$1"
|
repos="$1"
|
||||||
pdir="$2"
|
pdir="$2"
|
||||||
if [ -z "${repos}" -o ! -d "${repos}" -o -z "${pdir}" -o ! -d "${pdir}" ];then
|
if [ -z "${repos}" -o ! -d "${repos}" -o -z "${pdir}" -o ! -d "${pdir}" ];then
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -x
|
|
||||||
|
echo "Broken, fix hg->git conversion first" >&2
|
||||||
|
exit 1
|
||||||
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Yes, this is supposed to be a POSIX-compliant shell script.
|
# Yes, this is supposed to be a POSIX-compliant shell script.
|
||||||
|
|
||||||
|
echo "Broken, fix hg->git conversion first" >&2
|
||||||
|
exit 1
|
||||||
|
|
||||||
# Parses all samples on the command line, and for each of them, prints
|
# Parses all samples on the command line, and for each of them, prints
|
||||||
# the versions of the main tools
|
# the versions of the main tools
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user