Changeset 14477 for trunk/base
- Timestamp:
- Oct 8, 2005, 7:54:40 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/portmgr/IndexRegen.sh
r14472 r14477 6 6 # e-mail: jmpp@opendarwin.org 7 7 # Updated by Paul Guyot, <pguyot@kallisys.net> 8 # Date: 2005/10/48 # $Id: IndexRegen.sh,v 1.5 2005/10/08 07:54:40 pguyot Exp $ 9 9 #### 10 10 11 11 # Configuration 12 12 # ROOT directory, where everything is. This must exist. 13 ROOT=/Users/p aul/darwinports-portindex13 ROOT=/Users/pguyot/dp-portindex 14 14 # SSH key. This must exist. 15 15 SSH_KEY=${ROOT}/id_dsa 16 16 # DP user. 17 DP_USER=p aul17 DP_USER=pguyot 18 18 # DP group. 19 DP_GROUP= admin19 DP_GROUP=darwinports 20 20 # CVS user. 21 21 CVS_USER=pguyot … … 43 43 # Something went wrong. 44 44 FAILED=0 45 # Output of portindex.46 PORTINDEX_LOG=${ROOT}/portindex.log47 45 # Commit message. 48 46 COMMIT_MSG=${ROOT}/commit.msg … … 83 81 ./configure \ 84 82 --prefix=${PREFIX} \ 85 --with-tcl -package=${TCLPKG} \83 --with-tclpackage=${TCLPKG} \ 86 84 --with-install-user=${DP_USER} \ 87 85 --with-install-group=${DP_GROUP} > $FAILURE_LOG 2>&1 \ 88 86 || { echo "./configure failed" >> $FAILURE_LOG ; FAILED=1 ; } 87 fi 88 89 # clean 90 # (cleaning is useful because we don't want the indexing to fail because dependencies aren't properly computed). 91 if [ $FAILED -eq 0 ]; then 92 { cd ${TREE}/${CVS_MODULE}/base/ && \ 93 make clean > $FAILURE_LOG 2>&1 ; } \ 94 || { echo "make clean failed" >> $FAILURE_LOG ; FAILED=1 ; } 89 95 fi 90 96 … … 106 112 if [ $FAILED -eq 0 ]; then 107 113 { cd ${TREE}/${CVS_MODULE}/dports/ && \ 108 ${PREFIX}/bin/portindex | tee $PORTINDEX_LOG> $FAILURE_LOG 2>&1 ; } \114 ${PREFIX}/bin/portindex > $FAILURE_LOG 2>&1 ; } \ 109 115 || { echo "portindex failed" >> $FAILURE_LOG ; FAILED=1 ; } 110 116 fi … … 119 125 if [ $FAILED -eq 0 ]; then 120 126 # Use the last 5 lines of the log for the commit message. 121 tail -n 5 $ PORTINDEX_LOG > $COMMIT_MSG127 tail -n 5 $FAILURE_LOG > $COMMIT_MSG 122 128 123 129 # Actually commit the file. … … 132 138 else 133 139 # trash log files 134 rm -f $ PORTINDEX_LOG $COMMIT_MSG $FAILURE_LOG140 rm -f $COMMIT_MSG $FAILURE_LOG 135 141 fi 136 142
Note: See TracChangeset
for help on using the changeset viewer.