Enlightenment CVS committal Author : morlenxus Project : e17 Module : apps/e
Dir : e17/apps/e Modified Files: eap_to_desktop Log Message: Now it should be clear how to use it... =================================================================== RCS file: /cvs/e/e17/apps/e/eap_to_desktop,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- eap_to_desktop 24 Sep 2006 14:55:52 -0000 1.4 +++ eap_to_desktop 5 Oct 2006 08:34:37 -0000 1.5 @@ -8,7 +8,11 @@ # Don't use this on module.eaps, as the icon ends up in the wrong place. WD=`pwd` -FILENAME=`basename $@ .eap` + +# small hack to avoid people using *.eap and don't know what to do... +if [ ! "$i" == "*.eap" ]; then + FILENAME=`basename '$1' .eap` +fi if [ -e "$FILENAME.eap" ]; then rm -fr /tmp/convert.eap/$FILENAME @@ -83,5 +87,7 @@ cd $WD >/dev/null rm -fr /tmp/convert.eap/$FILENAME else - echo "Not a .eap file." + echo -e "\nExample:" + echo "cd ~/.e/e/applications/all/" + echo -e "$0 firefox.eap\n" fi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs