Updated cdrskin tarball generator

This commit is contained in:
Thomas Schmitt 2007-01-16 15:07:09 +00:00
parent 2f389c8cdd
commit 48c73f22d7
2 changed files with 54 additions and 29 deletions

View File

@ -22,7 +22,7 @@ set -x
# #
# libburn version used: http://libburn.pykix.org # libburn version used: http://libburn.pykix.org
# Downloaded by: # Downloaded by:
# $ svn co http://libburn-svn.pykix.org/trunk libburn_pykix # $ svn co http://libburn-svn.pykix.org/libburn/trunk libburn_pykix
# packed up in a tarball just to save it from inadverted changes by # packed up in a tarball just to save it from inadverted changes by
# $ tar czf libburn_svn.tgz libburn_pykix # $ tar czf libburn_svn.tgz libburn_pykix
original="./libburn_svn.tgz" original="./libburn_svn.tgz"
@ -33,14 +33,13 @@ original="./libburn_svn.tgz"
# The top level directory in that snapshot is named # The top level directory in that snapshot is named
intermediate="./libburn_pykix" intermediate="./libburn_pykix"
# My changes are in libburn-0.2.3.ts.develop , mainly in ./cdrskin # My changes are in libburn-develop , mainly in ./cdrskin
changes="./libburn-0.2.3.ts.develop" changes="./libburn-develop"
skin_release="0.2.6" skin_release="0.3.0"
patch_level=".pl01" patch_level=".pl00"
skin_rev="$skin_release""$patch_level" skin_rev="$skin_release""$patch_level"
# The result directory and the name of the result tarballs # The result directory and the name of the result tarballs
target="./cdrskin-${skin_release}" target="./cdrskin-${skin_release}"
cdrskin_tarball="./cdrskin-${skin_rev}.tar.gz" cdrskin_tarball="./cdrskin-${skin_rev}.tar.gz"
@ -54,6 +53,9 @@ compile_cmd="./cdrskin/compile_cdrskin.sh"
compile_static_opts="-static" compile_static_opts="-static"
compile_result="cdrskin/cdrskin" compile_result="cdrskin/cdrskin"
man_to_html_cmd="./cdrskin/convert_man_to_html.sh"
man_page_html="cdrskin/man_1_cdrskin.html"
bintarget_dynamic="cdrskin_${skin_rev}-x86-suse9_0" bintarget_dynamic="cdrskin_${skin_rev}-x86-suse9_0"
bintarget_static="$bintarget_dynamic"-static bintarget_static="$bintarget_dynamic"-static
@ -122,6 +124,8 @@ do
rm "$cdrskin_target"/cdrskin_"$i" rm "$cdrskin_target"/cdrskin_"$i"
fi fi
done done
# Remove eventual SVN stuff from cdrskin directory
for i in .deps .dirstamp .libs for i in .deps .dirstamp .libs
do do
if test -e "$cdrskin_target"/"$i" if test -e "$cdrskin_target"/"$i"
@ -130,6 +134,23 @@ do
fi fi
done done
# Remove GIFs of cdrskin_eng.html
rm "$cdrskin_target"/doener_*.gif
# Remove automatically generated HTML man page
rm "$cdrskin_target"/man_1_cdrskin.html
# Remove all add_ts_changes_to_libburn besides this one
for i in "$cdrskin_target"/add_ts_changes_to_libburn*
do
if test $(basename "$0") = $(basename "$i")
then
dummy=dummy
else
rm $i
fi
done
# Remove unwanted SVN stuff (TODO: avoid downloading it) # Remove unwanted SVN stuff (TODO: avoid downloading it)
for i in "$target"/.svn "$target"/*/.svn for i in "$target"/.svn "$target"/*/.svn
do do
@ -144,12 +165,6 @@ do
fi fi
done done
## No more : Add own libburn-README in toplevel
# cp -a "$changes"/README "$target"
## No more : Add modified Makefile.am
# cp -a "$changes"/Makefile.am "$target"
# Make SVN state tarball for the libburn team # Make SVN state tarball for the libburn team
tar czf "$cdrskin_tarball_svn" "$target" tar czf "$cdrskin_tarball_svn" "$target"
@ -179,18 +194,20 @@ done
# Pack it up to the new libburn+cdrskin-tarball # Pack it up to the new libburn+cdrskin-tarball
tar czf "$cdrskin_tarball" "$target" tar czf "$cdrskin_tarball" "$target"
# Produce a static and a dynamic binary # Produce a static and a dynamic binary, and a HTML man page
( (
cd "$compile_dir" || exit 1 cd "$compile_dir" || exit 1
./configure ./configure
make make
$compile_cmd -do_strip "$compile_cmd" -do_strip
cp "$compile_result" "../$bintarget_dynamic" cp "$compile_result" "../$bintarget_dynamic"
if test -n "$compile_static_opts" if test -n "$compile_static_opts"
then then
$compile_cmd $compile_static_opts -do_strip "$compile_cmd" $compile_static_opts -do_strip
cp "$compile_result" "../$bintarget_static" cp "$compile_result" "../$bintarget_static"
fi fi
"$man_to_html_cmd"
mv "$man_page_html" ..
) )
# Remove the build area # Remove the build area
@ -203,4 +220,5 @@ rm -rf "$target"
ls -l "$cdrskin_tarball" ls -l "$cdrskin_tarball"
ls -l "$bintarget_dynamic" ls -l "$bintarget_dynamic"
ls -l "$bintarget_static" ls -l "$bintarget_static"
ls -l $(basename "$man_page_html")

View File

@ -33,13 +33,15 @@ original="./libburn_svn.tgz"
# The top level directory in that snapshot is named # The top level directory in that snapshot is named
intermediate="./libburn_pykix" intermediate="./libburn_pykix"
# My changes are in libburn-0.2.3.ts.develop , mainly in ./cdrskin # My changes are in libburn-develop , mainly in ./cdrskin
changes="./libburn-0.2.3.ts.develop" changes="./libburn-develop"
skin_rev="0.2.7" skin_release="0.3.1"
patch_level=""
skin_rev="$skin_release""$patch_level"
# The result directory and the name of the result tarballs # The result directory and the name of the result tarballs
target="./cdrskin-${skin_rev}" target="./cdrskin-${skin_release}"
cdrskin_tarball="./cdrskin-${skin_rev}.tar.gz" cdrskin_tarball="./cdrskin-${skin_rev}.tar.gz"
cdrskin_tarball_svn="./cdrskin-${skin_rev}.svn.tar.gz" cdrskin_tarball_svn="./cdrskin-${skin_rev}.svn.tar.gz"
@ -123,10 +125,7 @@ do
fi fi
done done
# Remove automatically generated HTML man page # Remove eventual SVN stuff from cdrskin directory
rm "$cdrskin_target"/man_1_cdrskin.html
# Remove eventual SVN stuff from cdrskin driectory
for i in .deps .dirstamp .libs for i in .deps .dirstamp .libs
do do
if test -e "$cdrskin_target"/"$i" if test -e "$cdrskin_target"/"$i"
@ -138,6 +137,20 @@ done
# Remove GIFs of cdrskin_eng.html # Remove GIFs of cdrskin_eng.html
rm "$cdrskin_target"/doener_*.gif rm "$cdrskin_target"/doener_*.gif
# Remove automatically generated HTML man page
rm "$cdrskin_target"/man_1_cdrskin.html
# Remove all add_ts_changes_to_libburn besides this one
for i in "$cdrskin_target"/add_ts_changes_to_libburn*
do
if test $(basename "$0") = $(basename "$i")
then
dummy=dummy
else
rm $i
fi
done
# Remove unwanted SVN stuff (TODO: avoid downloading it) # Remove unwanted SVN stuff (TODO: avoid downloading it)
for i in "$target"/.svn "$target"/*/.svn for i in "$target"/.svn "$target"/*/.svn
do do
@ -152,12 +165,6 @@ do
fi fi
done done
## No more : Add own libburn-README in toplevel
# cp -a "$changes"/README "$target"
## No more : Add modified Makefile.am
# cp -a "$changes"/Makefile.am "$target"
# Make SVN state tarball for the libburn team # Make SVN state tarball for the libburn team
tar czf "$cdrskin_tarball_svn" "$target" tar czf "$cdrskin_tarball_svn" "$target"