Ada_EmptyAbstractPrepare and make your project easly with Ada over Gnu Linux with one command line : mainstart.sh PROJECT_NAME VERSIONFor to obtain an full project description with Gnu Public license heading. Ada is an portable programming languageStart quickly a new projectWith Ada_Empty-6.4.0.tar.gz and makeAda_Empty is small archive contening some tools to make Ada project including libraries.Content of archive
drwxr-xr-x 2 1004 1004 4096 Jun 12 12:22 bin bin repository
-rw-r--r-- 1 1004 1004 17990 Jun 8 11:08 gpl.txt Gnu Public License
-rw-r--r-- 1 1004 1004 878 Jun 10 00:35 head.adb head tool
-rw-r--r-- 1 1004 1004 2635 Jun 8 07:53 hello.adb hello mesg
-rw-r--r-- 1 1004 1004 8234 Nov 4 09:01 Makefile make file
-rw-r--r-- 1 1004 1004 924 Jun 6 21:24 process.adb to make project
-rw-r--r-- 1 1004 1004 6316 Nov 4 09:09 project.adb to obtain the header in file.
-rw-r--r-- 1 1004 1004 1793 Jun 10 00:35 tail.adb tail tool
-rw-r--r-- 1 1004 1004 39 Jun 7 03:04 TODO run mainstart.sh
File downloadAda_Empty-6.4.0.tgzmkdir Ada_Empty cd Ada_Empty tar -x -v -z -f Ada_Empty-6.4.0.tgz .bin/mainstart.sh PROJECT_NAME VERSION TODO
a) unarchive the archive tgz file.
b) run mainstart.sh PROJECT_NAME VERSION
Where PROJECT_NAME is the name of you project and VERSION the version.
c) Give the abstract of program
(press enter)
d) Give the list of subproject
- eg.
mysoft
mysoft
mylib
mylib-id
mylib-book
mylib-cd
mylib-dvd
mylib-title
mylib-user
mylib-library
mylib-main
(press enter)
e) Give the version
f) Give your name
Editting your projectAfter to have added the news entries in "PROJECT_NAME/Project.lst" file, put the new version in the file "PROJECT_NAME/Versions.lst" whith the command bellow : echo "VERSION" >> "Project_NAME/Versions.lst"Openning project with emacsscript lp.sh (list project)#!/bin/bash
for dir in `ls -d ./*`; do
version=`tail -1 $dir/Versions.lst`
pname=`basename -s -$version $dir`
name=`head -1 $dir/Project.lst`
table=`for i in \`/bin/ls -1 $pname-$version/$name/*/src/lib/*.$1\`; do echo \`basename -s .$1 $i\`-$version.$1; done`;
for i in `echo $table`; do
file=`basename -s -$version.$1 $i`;
dir=`basename -s -$version.$1 $file`;
echo $pname-$version/$name/$dir/src/lib/`basename -s -$version.$1 \`/bin/ls --color $pname-$version/$name/$dir/src/lib/$file.$1\``
done;
done;
TODOa) Copy the script in an file named "lp.sh".b) Run : chmod u+x lp.sh for to obtain the right to executing the script. c) Run : emacs `lp.sh ads && lp.sh adb` for to open all sources files of your project. - you can try CTRL+z to return to the shell and compile your project with "make -C PROJECT_NAME-VERSION all". FinalizationYou can run :- make -C PROJECT_NAME-VERSION clean - make -C PROJECT_NAME-VERSION all - make -C PROJECT_NAME-VERSION mrproper - make -C PROJECT_NAME-VERSION enlight-source - make -C PROJECT_NAME-VERSION arch to obtain the new gzipped tar archive. - make -C PROJECT_NAME-VERSION prepare to make new directories listed in file Project.lst - make -C PROJECT_NAME-VERSION project to make new file for all subdirectories Return to step c) File product
binaryThe executable file is placed in binTODOmake Ada_Empty directory with the mkdir command : mkdir Ada_EmptyChange a directory with cd command : cd Ada_Empty unarchive Ada_Empty-6.4.0.tgz with the tar command : tar -x -v -z -f Ada_Empty-6.4.0.tgz Create your project with mainstart.sh command : .bin/mainstart.sh PROJECT_NAME VERSION Authorsmanu : en cas de difficulté, vous pouvez me contacter à prehander à gmail.com End of document |