mirror of https://github.com/vitalif/e2fsprogs
30 lines
747 B
Plaintext
30 lines
747 B
Plaintext
#
|
|
# This is the actual gots of substitute_sh. It is in a separate file to
|
|
# protect it from autoconf substitutions
|
|
#
|
|
|
|
$SED -e "s%@AWK@%$AWK%g" \
|
|
-e "s%@SED@%$SED%g" \
|
|
-e "s%@ET_DIR@%$ET_DIR%g" \
|
|
-e "s%@SS_DIR@%$SS_DIR%g" \
|
|
-e "s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g" \
|
|
-e "s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g" \
|
|
-e "s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g" \
|
|
-e "s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g" \
|
|
-e "s%@SIZEOF_LONG@%$SIZEOF_LONG%g" \
|
|
-e "s%@SIZEOF_INT@%$SIZEOF_INT%g" \
|
|
-e "s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g" \
|
|
$1 > $2.tmp
|
|
|
|
if [ -f $2 ]; then
|
|
if cmp $2 $2.tmp > /dev/null 2>&1 ; then
|
|
$RM $2.tmp
|
|
else
|
|
echo "substitute_sh: Replacing $2"
|
|
$MV $2.tmp $2
|
|
fi
|
|
else
|
|
echo "substitute_sh: Creating $2"
|
|
$MV $2.tmp $2
|
|
fi
|