Changed versioning and tarball name to match unpack directory name

This commit is contained in:
Thomas Schmitt 2010-02-22 19:54:48 +00:00
parent 9d8676c3ef
commit 5d79606532
4 changed files with 49 additions and 19 deletions

View File

@ -12,21 +12,21 @@
# libisofs libburn libisoburn # libisofs libburn libisoburn
# obtained by following instructions on http://libburnia-project.org. # obtained by following instructions on http://libburnia-project.org.
# #
# It creates a standalone tree for building GNU xorriso # It creates a new directory tree
# from the contents of a unified libburnia development tree. # xorriso-standalone
# for building GNU xorriso.
# #
# The ./bootstrap script gets applied and a source tarball # The ./bootstrap script gets applied and a source tarball
# is made. # is made.
# #
# From that tree can be build a binary xorriso/xorriso # From that tree can be build a binary xorriso/xorriso which at runtime
# which at runtime depends only on libc and libpthread. # does not depend on installed libburnia libraries.
# Execute in $lone_dir : # Execute in xorriso-standalone :
# #
# ./configure && make # ./configure && make
# #
# By the following variable setting # By the variable setting create_gnu_xorriso="yes"
# create_gnu_xorriso="yes"
# the result will become a GNU xorriso tarball under GPLv3+. # the result will become a GNU xorriso tarball under GPLv3+.
# Without this setting, the result is technically equivalent but # Without this setting, the result is technically equivalent but
# stays under GPLv2+. In that case the files xorriso/*_gnu_xorriso # stays under GPLv2+. In that case the files xorriso/*_gnu_xorriso
@ -41,10 +41,10 @@ current_dir=$(pwd)
lone_dir="$current_dir"/"xorriso-standalone" lone_dir="$current_dir"/"xorriso-standalone"
xorriso_rev=0.4.9 xorriso_rev=0.4.9
# For unstable uploads: # For unstable uploads and patch level 0 of stable releases:
xorriso_pl="" xorriso_pl=""
# For stable releases: # For higher patch levels of stable releases:
## xorriso_pl=".pl00" ## xorriso_pl=".pl01"
with_bootstrap_tarball=1 with_bootstrap_tarball=1
@ -247,7 +247,7 @@ fi
if test "$with_bootstrap_tarball" = 1 if test "$with_bootstrap_tarball" = 1
then then
tarball_dir="$current_dir"/xorriso-"$xorriso_rev" tarball_dir="$current_dir"/xorriso-"$xorriso_rev""$xorriso_pl"
mv "$lone_dir" "$tarball_dir" mv "$lone_dir" "$tarball_dir"
goto_dir "$tarball_dir" goto_dir "$tarball_dir"
@ -270,6 +270,17 @@ rm -r ./autom4te.cache
chmod a+rx,go-w,u+w ./configure chmod a+rx,go-w,u+w ./configure
) )
if test "$create_gnu_xorriso" = "yes"
then
# ftp-upload@gnu.org dislikes my automake 1.9 and its chmod a+rwx
sed -e 's/by automake 1.9.6/by automake 1.11.1/' \
-e 's/-perm -777 -exec chmod a+rwx/-perm -755 -exec chmod u+rwx,go+rx/' \
< Makefile.in > new_Makefile.in
mv new_Makefile.in Makefile.in
fi
cd "$current_dir" cd "$current_dir"
tar czf ./xorriso-"$xorriso_rev""$xorriso_pl".tar.gz $(basename "$tarball_dir") tar czf ./xorriso-"$xorriso_rev""$xorriso_pl".tar.gz $(basename "$tarball_dir")

View File

@ -19148,9 +19148,11 @@ int Xorriso_option_use_readline(struct XorrisO *xorriso, char *mode, int flag)
int Xorriso_option_version(struct XorrisO *xorriso, int flag) int Xorriso_option_version(struct XorrisO *xorriso, int flag)
{ {
#ifdef Xorriso_GNU_xorrisO #ifdef Xorriso_GNU_xorrisO
sprintf(xorriso->result_line, "GNU xorriso %s\n", Xorriso_program_versioN); sprintf(xorriso->result_line, "GNU xorriso %s%s\n",
Xorriso_program_versioN, Xorriso_program_patch_leveL);
#else #else
sprintf(xorriso->result_line, "xorriso %s\n", Xorriso_program_versioN); sprintf(xorriso->result_line, "xorriso %s%s\n",
Xorriso_program_versioN, Xorriso_program_patch_leveL);
#endif /* ! Xorriso_GNU_xorrisO */ #endif /* ! Xorriso_GNU_xorrisO */
Xorriso_result(xorriso, 0); Xorriso_result(xorriso, 0);
sprintf(xorriso->result_line, sprintf(xorriso->result_line,
@ -19159,7 +19161,8 @@ int Xorriso_option_version(struct XorrisO *xorriso, int flag)
"Copyright (C) 2010, Thomas Schmitt <scdbackup@gmx.net>, libburnia project.\n"); "Copyright (C) 2010, Thomas Schmitt <scdbackup@gmx.net>, libburnia project.\n");
Xorriso_result(xorriso, 0); Xorriso_result(xorriso, 0);
sprintf(xorriso->result_line, sprintf(xorriso->result_line,
"xorriso version : %s\n", Xorriso_program_versioN); "xorriso version : %s%s\n",
Xorriso_program_versioN, Xorriso_program_patch_leveL);
sprintf(xorriso->result_line+strlen(xorriso->result_line), sprintf(xorriso->result_line+strlen(xorriso->result_line),
"Version timestamp : %s\n",Xorriso_timestamP); "Version timestamp : %s\n",Xorriso_timestamP);
sprintf(xorriso->result_line+strlen(xorriso->result_line), sprintf(xorriso->result_line+strlen(xorriso->result_line),
@ -20607,6 +20610,12 @@ char *Xorriso__get_version_text(int flag)
} }
char *Xorriso__get_patch_level_text(int flag)
{
return(Xorriso_program_patch_leveL);
}
#endif /* ! Xorriso_without_subS */ #endif /* ! Xorriso_without_subS */
@ -20633,13 +20642,13 @@ char *Xorriso__get_version_text(int flag)
static void yell_xorriso() static void yell_xorriso()
{ {
fprintf(stderr, fprintf(stderr,
"%sxorriso %s : RockRidge filesystem manipulator, libburnia project.\n\n", "%sxorriso %s%s : RockRidge filesystem manipulator, libburnia project.\n\n",
#ifdef Xorriso_GNU_xorrisO #ifdef Xorriso_GNU_xorrisO
"GNU ", "GNU ",
#else #else
"", "",
#endif #endif
Xorriso_main_program_versioN); Xorriso_main_program_versioN, Xorriso_program_patch_leveL);
} }

View File

@ -17,18 +17,28 @@ struct XorrisO;
#define Xorriso_program_versioN "0.4.9" #define Xorriso_program_versioN "0.4.9"
#define Xorriso_program_patch_leveL ""
/* --------------------- Fundamental Management ------------------- */ /* --------------------- Fundamental Management ------------------- */
/* Get the version text (e.g. "0.4.2") of the program code. /* Get the version text (e.g. "0.4.2") of the program code.
This may differ from Xorriso_program_versioN if xorriso is dynamically
linked to an application.
@param flag unused yet, submit 0 @param flag unused yet, submit 0
@return readonly character string @return readonly character string
*/ */
char *Xorriso__get_version_text(int flag); char *Xorriso__get_version_text(int flag);
/* Get the patch level text (e.g. "" or ".pl01") of the program code.
@param flag unused yet, submit 0
@return readonly character string
*/
char *Xorriso__get_patch_level_text(int flag);
/* Mandatory call: /* Mandatory call:
Create a new xorriso object and tell it the program name to be used Create a new xorriso object and tell it the program name to be used
with messages and for decision of special behavior. with messages and for decision of special behavior.

View File

@ -1 +1 @@
#define Xorriso_timestamP "2010.02.19.172125" #define Xorriso_timestamP "2010.02.22.195623"