Bladeren bron

vcc: add 'backup'

intirain 4 jaren geleden
bovenliggende
commit
d97283e5de
2 gewijzigde bestanden met toevoegingen van 8 en 4 verwijderingen
  1. 6 2
      Makefile
  2. 2 2
      include/vcc/version.h

+ 6 - 2
Makefile

@@ -1,7 +1,7 @@
 VCC_MAJOR 		= 1
 VCC_MINOR 		= 37
-VCC_PATCH 		= 0
-VCC_STR 		= -rc 
+VCC_PATCH 		= 1
+VCC_STR 		= -rc
 
 # change this to '/usr/share/' or '/opt/vcc/' etc
 INSTALL 		= $(shell pwd)
@@ -10,6 +10,7 @@ MO_DIR 			= $(INSTALL)/lang/zh_CN/LC_MESSAGES
 VCC_COMPILE_TIME 	= $(shell date)
 VCC_COMPILE_BY 		= $(shell whoami)
 VCC_SEMVER 		= vcc $(VCC_MAJOR).$(VCC_MINOR).$(VCC_PATCH)$(VCC_STR)
+VCC_SEMVER_NS 		= vcc-$(VCC_MAJOR).$(VCC_MINOR).$(VCC_PATCH)$(VCC_STR)
 
 macro_srcs 		= gnr_theme_macros.m4 gnr_load_themes.m4 
 macro_objs 		= gnr_theme_macros.s gnr_load_themes.s 
@@ -54,6 +55,9 @@ $(target) : 	$(objs) $(srcs)
 	@$(CC) -c $(CFLAGS) $*.c 
 	@echo -e "CC\t\t\t$*.c"
 
+backup : clean
+	(dir=$$(basename `pwd`); cd ..; tar cf $(VCC_SEMVER_NS).tar.gz $$dir/*)
+
 .PHONY : clean
 clean :
 	$(RM) $(objs) $(target) $(macro_objs) -f 

+ 2 - 2
include/vcc/version.h

@@ -1,2 +1,2 @@
-#define VCC_VERSION "vcc 1.37.0 Sun Jun 19 07:35:09 PM CST 2022 root"
-#define VCC_SEMVER "vcc 1.37.0-rc "
+#define VCC_VERSION "vcc 1.37.0 Sun Jun 19 08:39:21 PM CST 2022 root"
+#define VCC_SEMVER "vcc 1.37.0-rc"