Changeset 9890 for extensions/jiwigo/trunk/install
- Timestamp:
- Mar 26, 2011, 8:48:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/jiwigo/trunk/install/create_executables.sh
r7007 r9890 2 2 ## this script generates executables for jiwigo 3 3 ## to use it, you have to download the "work" directory 4 ## here : http://www. le-guevel.com/jiwigo/downloads/work.tar.gz4 ## here : http://www.jiwigo.com/downloads/work.tar.gz 5 5 ## you just have to change work_path to indicate the path to "work" 6 6 ## and "project_path" to the path of the project. … … 8 8 ## the mvn command is writter in the install file of the project : install/install.txt 9 9 ## all the generated files will be moved to the "generation" directory. 10 work_path='/home/mael/Documents/Jiwigo/travail' 10 ## the package dpkg-dev must be installed 11 work_path='/home/mael/Documents/jiwigo/work' 11 12 project_path='/home/mael/workspace/jiwigo' 12 13 target_path=$project_path/target 14 15 13 16 14 17 ############################################################################################### … … 16 19 ############################################################################################### 17 20 21 22 echo '##### building deb... #####' 23 cd $work_path 24 25 18 26 #Calculate size and version to complete debian's control file 19 27 size=`du -cs jiwigo` 20 28 size=`echo $size | cut -d ' ' -f 1` 21 29 version=`find $target_path -type f -name \*with-dependencies.jar | xargs -I file echo file | cut -d '-' -f 2` 22 cp $work_path/ control$work_path/temp30 cp $work_path/templates/control_template $work_path/temp 23 31 echo Version: $version >> $work_path/temp 24 32 echo Installed-Size: $size >> $work_path/temp … … 57 65 ############################################################################################### 58 66 67 echo '##### building exe... #####' 68 cd $work_path 69 work_path_for_sed="$(echo $work_path | sed 's/\//\\\//g')" 70 sed 's/#jar_location/'$work_path_for_sed'\/jiwigo\/usr\/share\/jiwigo\/jiwigo.jar/g' templates/launch4j_template.xml > launch4j_tmp.xml 71 sed 's/#exe_location/'$work_path_for_sed'\/jiwigo.exe/g' launch4j_tmp.xml > launch4j.xml 72 rm launch4j_tmp.xml 59 73 $work_path/launch4j/launch4j $work_path/launch4j.xml 74 rm launch4j.xml 75 60 76 61 77 ############################################################################################### … … 63 79 ############################################################################################### 64 80 81 echo '##### completing generation folder... #####' 65 82 rm $work_path/generation/* 66 cp$work_path/jiwigo.exe $work_path/generation/83 mv $work_path/jiwigo.exe $work_path/generation/ 67 84 cp $work_path/depot/jiwigo.deb $work_path/generation/ 68 85 cp $work_path/jiwigo/usr/share/jiwigo/jiwigo.jar $work_path/generation/ 69 tar -zcf $work_path/generation/jiwigo-src.tar.gz $project_path/src/* 86 cd $project_path/ 87 tar -zcf $work_path/generation/jiwigo-src.tar.gz --exclude '.*' src pom.xml install 88 echo '##### Done #####'
Note: See TracChangeset
for help on using the changeset viewer.