File indexing completed on 2025-01-05 04:00:16

0001 #!/bin/bash
0002 
0003 # Script to create KF6 framework manifest.
0004 #
0005 # Copyright (c) 2015-2024 by Gilles Caulier  <caulier dot gilles at gmail dot com>
0006 #
0007 # Redistribution and use is allowed according to the terms of the BSD license.
0008 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0009 #
0010 
0011 set -e
0012 set -C
0013 
0014 ORIG_WD="`pwd`"
0015 KF6_GITREV_LST=$ORIG_WD/data/kf6_manifest.txt
0016 
0017 echo "List git sub-module revisions in $KF6_GITREV_LST"
0018 
0019 if [ -f $KF6_GITREV_LST ] ; then
0020     rm -f $KF6_GITREV_LST
0021 fi
0022 
0023 currentDate=`date +"%Y-%m-%d"`
0024 echo "+KF6 Snapshot $currentDate" > $KF6_GITREV_LST
0025 
0026 # --- List git revisions for all sub-modules
0027 
0028 for COMPONENT in $FRAMEWORK_COMPONENTS ; do
0029 
0030     SUBDIR=$BUILDING_DIR/ext_kf6/$COMPONENT-prefix/src/$COMPONENT
0031     cd $SUBDIR
0032     echo "$(basename "$SUBDIR"):$(git rev-parse HEAD)" >> $KF6_GITREV_LST
0033     cd $ORIG_WD
0034 
0035 done
0036 
0037 cat $KF6_GITREV_LST
0038