developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 4 years ago

#607 closed task (wontfix)

Add a datetime stamp to the archive of jelix snapshots

Reported by: maurice Owned by:
Priority: lowest Milestone:
Component: tools:jelix build Version: 1.0.4
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

As "jelix-1.1a1pre-dev.tar.gz" keep the same name while changing everu day, I think the name should contain the "datetime" information (in the archive name and in the directory name)

this would make easier to compare (and keep trace of) several instable versions of jelix (or its documentation?)

Here is a part of a Makefile I use in every directory I like to frequently erchive:

#
# Archivage du répertoire courant dans le répertoire parent
# 
arc:    tgz
arC:    tbz

# Compression avec gzip
tgz:
	# $(MAKE) clean
	date=`date +%Y%m%d-%Hh%Mmn`  			&& \
	lpath=`pwd`				&& \
	bname=`basename $$lpath`		     	&& \
	datename=$$bname-$$date				&& \
	cd ..				&& \
	cp -pR $$bname $$datename 				&& \
	tar cf - $$datename | gzip > $$datename.tgz	&& \
	\rm -rf $$datename
	
# Compression avec bzip2
tbz:
	# $(MAKE) clean
	date=`date +%Y%m%d-%Hh%Mmn` 				&& \
	lpath=`pwd`				&& \
	bname=`basename $$lpath`				&& \
	datename=$$bname-$$date				&& \
	cd ..				&& \
	cp -pR $$bname $$datename 				&& \
	tar cf - $$datename | bzip2 > $$datename.tbz	&& \
	\rm -rf $$datename
	
# Compression avec zip
zip:
	# $(MAKE) clean
	date=`date +%Y%m%d-%Hh%Mmn` 				&& \
	lpath=`pwd`				&& \
	bname=`basename $$lpath`				&& \
	datename=$$bname-$$date				&& \
	cd ..				&& \
	cp -pR $$bname $$datename 				&& \
	zip -r -y -o -q -9  $$datename.zip $$datename	&& \
	\rm -rf $$datename

Maurice

Change History (7)

comment:1 Changed 12 years ago by maurice

  • Type changed from bug to task

comment:2 Changed 12 years ago by laurentj

Why not to have a different name for each build. But using the svn revision number is better than using the current date.

And there are some issue to fix if we want a different name each time :

  • we should create a symlink jelix-1.1a1pre-dev.tar.gz in the directory to the new archive, so we don't have to change the url on the download page each time we generate a new file
  • old archives should be removed periodically. I don't think that keeping old archives is useful.

comment:3 Changed 12 years ago by maurice

  • Priority changed from low to lowest

we should create a symlink jelix-1.1a1pre-dev.tar.gz in the directory to the new archive, so we don't have to change the url on the download page each time we generate a new file

Yes

old archives should be removed periodically. I don't think that keeping old archives is useful

No need to keep any old version (if there is currently no previous version), but if a user report a bug, he will can tell the reference of the snapshot (date or svn number). And he will can easier switch between several snap version.

comment:4 Changed 12 years ago by maurice

  • Cc Maurice.diamantini@… removed

comment:5 Changed 11 years ago by laurentj

  • Component changed from jelix to tools:jelix build

comment:6 Changed 9 years ago by laurentj

  • Status changed from new to delayed

comment:7 Changed 4 years ago by laurentj

  • Resolution set to wontfix
  • Status changed from delayed to closed

Jelix 1.7 sera installable par Composer.

Note: See TracTickets for help on using tickets.