[SCM] Lisaac scripts branch, master, updated. 34c97b3e09572adab1e0f29601429847c7d16c08
Benoit Sonntag
sonntag at icps.u-strasbg.fr
Thu Nov 12 01:38:20 UTC 2009
The following commit has been merged in the master branch:
commit 34c97b3e09572adab1e0f29601429847c7d16c08
Author: Benoit Sonntag <sonntag at icps.u-strasbg.fr>
Date: Thu Nov 12 02:27:08 2009 +0100
update release script
diff --git a/build_distrib/make_distrib.sh b/build_distrib/make_distrib.sh
deleted file mode 100644
index 738038a..0000000
--- a/build_distrib/make_distrib.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#¡/bin/bash
-###############################################################################
-## Lisaac - Make Distribution ##
-## ##
-## LSIIT - ULP - CNRS - INRIA - FRANCE ##
-## ##
-## This program is free software; you can redistribute it and/or modify ##
-## it under the terms of the CeCILL v2 License as published by the ##
-## CEA - CNRS - INRIA. ##
-## ##
-## This program is distributed in the hope that it will be useful, ##
-## but WITHOUT ANY WARRANTY; without even the implied warranty of ##
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ##
-## CeCILL v2 License for more details. ##
-## ##
-## You should have received a copy of the CeCILL v2 license along with ##
-## this program. ##
-## If not, see <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt> ##
-## ##
-## http://isaacproject.u-strasbg.fr/ ##
-###############################################################################
-
-###############################################################################
-# This script allow us to build the lisaac.zip distribuable tarball for the #
-# lisaac compiler. #
-# #
-# Bug reports: Xavier Oswald <x.oswald at free.fr> #
-###############################################################################
-
-###############################################################################
-# NOTE: Please don't use it since this script is in development !!!!!!! #
-###############################################################################
-
-# Copy version
-cd ..
-mv lisaac lisaac_good
-cp -rf lisaac_good lisaac
-
-# Clean lisaac
-cd lisaac
-rm -f install_lisaac
-rm -f *~
-
-# Clean lisaac/bin
-cd bin
-rm -f lisaac shorter
-cd ..
-
-# Clean lisaac/example
-cd example
-./clean
-cd ..
-
-# Clean lisaac/src
-cd src
-./clean
-cd ..
-
-# Clean lisaac/lib_html
-cd lib_html
-rm -f *
-cd ..
-
-# Zip lisaac
-cd ..
-rm -f lisaac.zip
-zip -r lisaac.zip lisaac > /dev/null
-
-# Restore lisaac_good
-rm -rf lisaac
-mv lisaac_good lisaac
-cd lisaac
-
-echo Distrib : lisaac.zip
diff --git a/build_distrib/release.sh b/build_distrib/release.sh
new file mode 100755
index 0000000..1693b99
--- /dev/null
+++ b/build_distrib/release.sh
@@ -0,0 +1,115 @@
+#! /bin/bash
+
+version=`lisaac -version | head -n 1 | awk -F ":" '{ gsub(" ", "_"); print $2 }'`
+mkdir lisaac$version
+cd lisaac$version
+
+# Compiler
+
+cp -rf ~/compiler/* .
+
+# Editor
+
+mkdir editor
+cp -rf ~/editor/* editor/.
+
+# Lib extra + unstable
+
+mkdir lib/extra lib/unstable
+cp -rf ~/library/base lib/extra/.
+cp -rf ~/library/graphics lib/extra/.
+cp -rf ~/library/gui lib/extra/.
+cp -rf ~/library/gui_automatic lib/extra/.
+cp -rf ~/library/testing lib/extra/.
+
+cp -rf ~/library/expat-binding lib/unstable/.
+cp -rf ~/library/freetype lib/unstable/.
+cp -rf ~/library/graphics lib/unstable/.
+cp -rf ~/library/iup-binding lib/unstable/.
+cp -rf ~/library/lua-binding lib/unstable/.
+cp -rf ~/library/math lib/unstable/.
+cp -rf ~/library/opengl lib/unstable/.
+cp -rf ~/library/reflexivity lib/unstable/.
+cp -rf ~/library/sdl-binding lib/unstable/.
+cp -rf ~/library/small-binding lib/unstable/.
+cp -rf ~/library/sqlite-binding lib/unstable/.
+
+# Example
+
+mkdir example
+cp -rf ~/application/examples/standard/* example/.
+cp -rf ~/application/examples/misc/chess example/.
+cp -rf ~/application/examples/misc/gl_test example/.
+
+# Doc
+
+cp ~/documentation/manpage doc/.
+mkdir doc/pdf
+
+# Quick_start
+
+cd ~/documentation/quick_start
+latex quick_start_guide_fr.tex
+latex quick_start_guide_fr.tex
+dvips quick_start_guide_fr.dvi -o
+ps2pdf quick_start_guide_fr.ps
+cd -
+cp ~/documentation/quick_start/quick_start_guide_fr.pdf doc/pdf/quick_start.pdf
+
+# Reference manual
+
+cd ~/documentation/reference_manual
+latex Lisaac_RM.tex
+latex Lisaac_RM.tex
+dvips Lisaac_RM.dvi -o
+ps2pdf Lisaac_RM.ps
+cd -
+cp ~/documentation/reference_manual/Lisaac_RM.pdf doc/pdf/reference_manual.pdf
+
+# Slides
+
+cd ~/documentation/slides
+latex lisaac.tex
+latex lisaac.tex
+dvips lisaac.dvi -o
+ps2pdf lisaac.ps
+cd -
+cp ~/documentation/slides/lisaac.pdf doc/pdf/slides.pdf
+
+# Clean
+
+make clean
+for i in `find -name "*~"` ; do rm $i ; done
+mv bin/lisaac.c bin/lisaac.c.BAK
+mv install_lisaac.c install_lisaac.c.BAK
+for i in `find -name "*.c"` ; do rm $i ; done
+mv bin/lisaac.c.BAK bin/lisaac.c
+mv install_lisaac.c.BAK install_lisaac.c
+for i in `find -name "*.li.old"` ; do rm $i ; done
+for i in `find -name "*.exe"` ; do rm $i ; done
+for i in `find -name "avoir.txt"` ; do rm $i ; done
+for i in `find -name ".git"` ; do rm -rf $i ; done
+rm -f bin/lisaac bin/shorter src/lisaac src/shorter
+cd example
+./clean.sh
+cd ..
+for i in `find` ; do
+ if [[ -f $i ]]
+ then
+ chmod 644 $i
+ else
+ chmod 755 $i
+ fi
+done
+
+# Build
+
+cd ..
+tar -czvf lisaac$version.tar.gz lisaac$version
+zip -r lisaac$version.zip lisaac$version
+
+# Clean directory
+
+rm -rf lisaac$version
+
+
--
Lisaac scripts
More information about the Lisaac-commits
mailing list