Anonymous
public text v1 · immutable#!/bin/bash
# import-to-anjuta.sh
if [ "$#" -ne "2" ]
then
echo "Usage: `basename $0` [option] filename"
echo
echo "Options: e - export file from anjuta"
echo " i - import file to anjuta"
exit
fi
if [ "$1" != "e" ] || [ "$1" != "i" ]
then
echo "Wrong option argument."
exit
fi
if [ "$1" = "i" ]
then
cat $2 > ~/Projects/foobar-cpp/src/main.cpp
fi
exit