Updated cdrskin tarball generator

This commit is contained in:
Thomas Schmitt 2007-10-25 09:37:06 +00:00
parent f3739013fa
commit 0f50c21888
2 changed files with 22 additions and 11 deletions

View File

@ -143,6 +143,9 @@ rm "$cdrskin_target"/doener_*.gif "$cdrskin_target"/doener_*.png
# Remove automatically generated HTML man page # Remove automatically generated HTML man page
rm "$cdrskin_target"/man_1_cdrskin.html rm "$cdrskin_target"/man_1_cdrskin.html
# Remove libcevap
rm -rf "$target"/libcevap
# Remove all add_ts_changes_to_libburn besides this one # Remove all add_ts_changes_to_libburn besides this one
for i in "$cdrskin_target"/add_ts_changes_to_libburn* for i in "$cdrskin_target"/add_ts_changes_to_libburn*
do do
@ -222,6 +225,8 @@ tar czf "$cdrskin_tarball" "$target"
"$compile_cmd" $compile_static_opts -libburn_svn -O2 -do_strip "$compile_cmd" $compile_static_opts -libburn_svn -O2 -do_strip
cp "$compile_result" "../$bintarget_static" cp "$compile_result" "../$bintarget_static"
fi fi
# "$compile_cmd" -libburn_svn -O2 -do_diet -do_strip
# cp "$compile_result" "../$bintarget_dynamic"_diet
"$man_to_html_cmd" "$man_to_html_cmd"
mv "$man_page_html" .. mv "$man_page_html" ..
) )
@ -234,7 +239,7 @@ rm -rf "$target"
./"$bintarget_dynamic" -version ./"$bintarget_dynamic" -version
./"$bintarget_static" -version ./"$bintarget_static" -version
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") ls -l $(basename "$man_page_html")

View File

@ -24,22 +24,22 @@ set -x
# The top level directory in the SVN snapshot is named # The top level directory in the SVN snapshot is named
intermediate="./libburn_pykix" intermediate="./libburn_pykix"
# libburn source used: http://libburnia.pykix.org # libburn source used: http://libburnia-project.org
# Downloaded by: # Downloaded by:
# $ svn co http://libburnia-svn.pykix.org/libburn/tags/... $intermediate # $ svn co http://libburnia-project.org/libburn/tags/... $intermediate
# 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 $intermediate # $ tar czf libburn_svn.tgz $intermediate
original="./libburn_svn_release.tgz" original="./libburn_svn.tgz"
# Historic moments: # Historic moments:
# original="./libburn_svn_A60815.tgz" # original="./libburn_svn_A60815.tgz"
# original="./libburn_cdrskin_A60819.tgz" # original="./libburn_cdrskin_A60819.tgz"
# My changes are in $changes , mainly in $changes/cdrskin # My changes are in $changes , mainly in $changes/cdrskin
changes="./libburn-release" changes="./libburn-develop"
skin_release="0.3.8" skin_release="0.4.1"
patch_level=".pl00" patch_level=""
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
@ -143,6 +143,9 @@ rm "$cdrskin_target"/doener_*.gif "$cdrskin_target"/doener_*.png
# Remove automatically generated HTML man page # Remove automatically generated HTML man page
rm "$cdrskin_target"/man_1_cdrskin.html rm "$cdrskin_target"/man_1_cdrskin.html
# Remove libcevap
rm -rf "$target"/libcevap
# Remove all add_ts_changes_to_libburn besides this one # Remove all add_ts_changes_to_libburn besides this one
for i in "$cdrskin_target"/add_ts_changes_to_libburn* for i in "$cdrskin_target"/add_ts_changes_to_libburn*
do do
@ -194,7 +197,7 @@ do
done done
# Repair non-portable shell code output of ./bootstrap # Repair non-portable shell code output of ./bootstrap
( (
cd "$compile_dir" || exit 1 cd "$compile_dir" || exit 1
sed -e 's/^for ac_header in$/test -z 1 \&\& for ac_header in dummy/' \ sed -e 's/^for ac_header in$/test -z 1 \&\& for ac_header in dummy/' \
< ./configure > ./configure-repaired < ./configure > ./configure-repaired
@ -206,6 +209,7 @@ done
chmod a+rx,go-w,u+w ./configure chmod a+rx,go-w,u+w ./configure
) )
# 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"
@ -214,13 +218,15 @@ tar czf "$cdrskin_tarball" "$target"
cd "$compile_dir" || exit 1 cd "$compile_dir" || exit 1
./configure ./configure
make make
"$compile_cmd" -O2 -do_strip "$compile_cmd" -libburn_svn -O2 -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 -O2 -do_strip "$compile_cmd" $compile_static_opts -libburn_svn -O2 -do_strip
cp "$compile_result" "../$bintarget_static" cp "$compile_result" "../$bintarget_static"
fi fi
# "$compile_cmd" -libburn_svn -O2 -do_diet -do_strip
# cp "$compile_result" "../$bintarget_dynamic"_diet
"$man_to_html_cmd" "$man_to_html_cmd"
mv "$man_page_html" .. mv "$man_page_html" ..
) )
@ -233,7 +239,7 @@ rm -rf "$target"
./"$bintarget_dynamic" -version ./"$bintarget_dynamic" -version
./"$bintarget_static" -version ./"$bintarget_static" -version
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") ls -l $(basename "$man_page_html")