Bump to release version 2.0.0.
modified: portsreinstall
modified: portsreinstall.8
modified: portsreinstall.8~
modified: portsreinstall~
# ================================================
APPNAME=`basename "$0"`
-MYVERSION=1.1.0+toward_2.0.0_20120810132451
+MYVERSION=2.0.0
PREFIX=${PREFIX:-/usr/local}
CONFFILE=${PREFIX}/etc/${APPNAME}.conf
save)
echo $*
chk_privilege
- [ -d "${DBDIR}" ] || { echo "ERROR: Database has not built yet." >&2; exit 1; }
+ [ -d "${DBDIR}" ] || { echo "ERROR: Database has not been built up yet." >&2; exit 1; }
savedir=$1
[ -n "$savedir" ] || { echo "ERROR: Directory to save the temporal database archive is not specified." >&2; exit 1; }
[ -d "$savedir" ] || { echo "ERROR: Directory [$savedir] is not found." >&2; exit 1; }
srcdir=`dirname "${DBDIR}"`
srcnode=`basename "${DBDIR}"`
- savefile=`realpath "$savedir"`/${APPNAME}_`date +%S%m%d_%H%M%S`.tar.gz
+ savefile=`realpath "$savedir"`/${APPNAME}_`date +%Y%m%d_%H%M%S`.tar.gz
echo "Starting to save the temporal database as [$savefile]..."
( cd "$srcdir" && tar czf "$savefile" "$srcnode" )
echo "Done"
# Order the ports considering dependencies
if [ ! -e "${DBDIR}/COMPLETE_ORDERED_ALL_DEPENDENCIES" ]
then
- echo "Starting order of dependencies at `timestamp`"
+ echo "Starting ordering of dependencies at `timestamp`"
[ ! -f "${DBDIR}/reinst_order.list.tmp" ] || echo "INFO: Restarting from the previously terminated point"
touch "${DBDIR}/reinst_order.list.tmp"
cd "${DBDIR}/requires"
.SH HISTORY
\fBportsreinstall\fR has been developed as below.
.TP
-2.0.0 (8 August 2012)
+2.0.0 (12 August 2012)
[NEW] Options \fB\-X\fR, \fB\-r\fR and \fB\-R\fR are added so as to compensate a fact that \fB\-x\fR, \fB\-t\fR and \fB\-T\fR cannot specify package names with commas.
[NEW] Commands of \fBshow requirements\fR and \fBshow dependents\fR are added.
[BUG FIX] Termination message is corrected (portsreinstall ok => portsreinstall ok add).
[BUG FIX] Values of BEFOREBUILD, BEFOREDEINSTALL and AFTERINSTALL were not correctly imported from pkgtools.conf(5).
+
+[BUG FIX] The file name given by save command was with a wrong time stamp.
.TP
1.1.0 (28 April 2012)
[NEW] Command of show deleted is newly added.
.SH HISTORY
\fBportsreinstall\fR has been developed as below.
.TP
-2.0.0 (8 August 2012)
+2.0.0 (11 August 2012)
[NEW] Options \fB\-X\fR, \fB\-r\fR and \fB\-R\fR are added so as to compensate a fact that \fB\-x\fR, \fB\-t\fR and \fB\-T\fR cannot specify package names with commas.
[NEW] Commands of \fBshow requirements\fR and \fBshow dependents\fR are added.
[CHANGED] The specification of \fBshow\fR command is changed to exclude irrelevant packages/ports and output messages about the matching targets when options \fB\-r\fR, \fB\-R\fR, \fB\-t\fR and \fB\-T\fR are enabled.
-[CHANGED] The default behavior in case that the temporal database is older than the ports tree is changed from warnings to automatic reconstruction.
+[CHANGED] The default behavior in case that the temporal database is older than the ports tree is changed from warnings to automatic reconstruction; the old behavior is recovered by option \fB\-c\fR.
[BUG FIX] Termination message is corrected (portsreinstall ok => portsreinstall ok add).
[BUG FIX] Values of BEFOREBUILD, BEFOREDEINSTALL and AFTERINSTALL were not correctly imported from pkgtools.conf(5).
+
+[BUG FIX] The file name given by save command was with a wrong time stamp.
.TP
1.1.0 (28 April 2012)
[NEW] Command of show deleted is newly added.
# ================================================
APPNAME=`basename "$0"`
-MYVERSION=1.1.0+toward_2.0.0_20120810130509
+MYVERSION=1.1.0+toward_2.0.0_20120811170759
PREFIX=${PREFIX:-/usr/local}
CONFFILE=${PREFIX}/etc/${APPNAME}.conf
save)
echo $*
chk_privilege
- [ -d "${DBDIR}" ] || { echo "ERROR: Database has not built yet." >&2; exit 1; }
+ [ -d "${DBDIR}" ] || { echo "ERROR: Database has not been built up yet." >&2; exit 1; }
savedir=$1
[ -n "$savedir" ] || { echo "ERROR: Directory to save the temporal database archive is not specified." >&2; exit 1; }
[ -d "$savedir" ] || { echo "ERROR: Directory [$savedir] is not found." >&2; exit 1; }
srcdir=`dirname "${DBDIR}"`
srcnode=`basename "${DBDIR}"`
- savefile=`realpath "$savedir"`/${APPNAME}_`date +%S%m%d_%H%M%S`.tar.gz
+ savefile=`realpath "$savedir"`/${APPNAME}_`date +%Y%m%d_%H%M%S`.tar.gz
echo "Starting to save the temporal database as [$savefile]..."
( cd "$srcdir" && tar czf "$savefile" "$srcnode" )
echo "Done"
# Order the ports considering dependencies
if [ ! -e "${DBDIR}/COMPLETE_ORDERED_ALL_DEPENDENCIES" ]
then
- echo "Starting order of dependencies at `timestamp`"
+ echo "Starting ordering of dependencies at `timestamp`"
[ ! -f "${DBDIR}/reinst_order.list.tmp" ] || echo "INFO: Restarting from the previously terminated point"
touch "${DBDIR}/reinst_order.list.tmp"
cd "${DBDIR}/requires"