- Timestamp:
- Jun 27, 2014, 4:48:54 PM (10 years ago)
- Location:
- branches/fault_tolerance/softs/tsar_boot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fault_tolerance/softs/tsar_boot/Makefile
r724 r727 90 90 all: $(TARGET) 91 91 92 $(BUILD_DIR)/version.o: $(BUILD_DIR) $(OBJS) versionversion.sh92 $(BUILD_DIR)/version.o: $(BUILD_DIR) $(OBJS) VERSION version.sh 93 93 $(ECHO) "[version.sh]" 94 94 ./version.sh > $(BUILD_DIR)/version.c … … 143 143 $(DU) -D $@ > $@.txt 144 144 145 .SILENT: -
branches/fault_tolerance/softs/tsar_boot/version.sh
r724 r727 8 8 9 9 reporev=$(svn info 2>/dev/null) 10 if [ $? -eq 0];10 if [[ $? > 0 ]]; 11 11 then 12 repotype="svn" 13 reporev=$(echo "$reporev" | awk -F: '$1 == "Last Changed Rev" {print $2}') 14 else 15 repotype="git" 16 reporev=$(git rev-parse HEAD) 12 reporev=$(git svn info 2>/dev/null) 17 13 fi 18 14 15 reporev=$(echo "$reporev" | awk -F: '$1 == "Last Changed Rev" {print $2}') 19 16 printf "%s" \ 20 "const char versionstr[]=\"$n $v ($u@$h $t) ( $repotyperevision $reporev)\n\r\";"17 "const char versionstr[]=\"$n $v ($u@$h $t) (svn revision $reporev)\n\r\";"
Note: See TracChangeset
for help on using the changeset viewer.